From e527912fe0188f8dc614bdbef25bfdb724fea9ed Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Fri, 27 Aug 2021 09:11:55 -0700 Subject: Use jit_prepare_routine_call --- yjit_codegen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'yjit_codegen.c') 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); -- cgit v1.2.3