diff options
author | John Hawthorn <[email protected]> | 2021-08-27 09:11:55 -0700 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:39 -0400 |
commit | e527912fe0188f8dc614bdbef25bfdb724fea9ed (patch) | |
tree | 8ca6a6ba2ef79ec6dc667cf76f746e9dbb73473d /yjit_codegen.c | |
parent | 69a2531249f17cb3a3bf0fde85256d5a20324344 (diff) |
Use jit_prepare_routine_call
Diffstat (limited to 'yjit_codegen.c')
-rw-r--r-- | yjit_codegen.c | 3 |
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); |