summaryrefslogtreecommitdiff
path: root/yjit_codegen.c
diff options
context:
space:
mode:
Diffstat (limited to 'yjit_codegen.c')
-rw-r--r--yjit_codegen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c
index e79e716794..8558e20f34 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -1098,8 +1098,7 @@ gen_putstring(jitstate_t* jit, ctx_t* ctx)
VALUE put_val = jit_get_arg(jit, 0);
// Save the PC and SP because the callee will allocate
- jit_save_pc(jit, REG0);
- jit_save_sp(jit, ctx);
+ jit_prepare_routine_call(jit, ctx, REG0);
mov(cb, C_ARG_REGS[0], REG_EC);
jit_mov_gc_ptr(jit, cb, C_ARG_REGS[1], put_val);