mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
fix alignment
This commit is contained in:
parent
d0174d99c6
commit
0fdcdd267f
3 changed files with 7 additions and 9 deletions
|
@ -238,14 +238,12 @@ yjit_save_regs(codeblock_t* cb)
|
|||
push(cb, REG_CFP);
|
||||
push(cb, REG_EC);
|
||||
push(cb, REG_SP);
|
||||
push(cb, REG_SP); // Maintain 16-byte RSP alignment
|
||||
}
|
||||
|
||||
// Restore YJIT registers after a C call
|
||||
static void
|
||||
yjit_load_regs(codeblock_t* cb)
|
||||
{
|
||||
pop(cb, REG_SP); // Maintain 16-byte RSP alignment
|
||||
pop(cb, REG_SP);
|
||||
pop(cb, REG_EC);
|
||||
pop(cb, REG_CFP);
|
||||
|
@ -2717,11 +2715,9 @@ gen_send_cfunc(jitstate_t *jit, ctx_t *ctx, const struct rb_callinfo *ci, const
|
|||
// Pop the C function arguments from the stack (in the caller)
|
||||
ctx_stack_pop(ctx, argc + 1);
|
||||
|
||||
if (block) {
|
||||
// Write interpreter SP into CFP.
|
||||
// Needed in case the callee yields to the block.
|
||||
jit_save_sp(jit, ctx);
|
||||
}
|
||||
// Write interpreter SP into CFP.
|
||||
// Needed in case the callee yields to the block.
|
||||
jit_save_sp(jit, ctx);
|
||||
|
||||
// Save YJIT registers
|
||||
yjit_save_regs(cb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue