1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use jit_prepare_routine_call

This commit is contained in:
John Hawthorn 2021-08-27 09:11:55 -07:00 committed by Alan Wu
parent 69a2531249
commit e527912fe0

View file

@ -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);