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

Deletate to opt_send_without_block for opt_ltlt (#33)

This commit is contained in:
Maxime Chevalier-Boisvert 2021-05-10 15:32:43 -04:00 committed by Alan Wu
parent 0c3842d154
commit ce928473d0

View file

@ -1592,6 +1592,13 @@ gen_opt_mod(jitstate_t* jit, ctx_t* ctx)
return YJIT_KEEP_COMPILING;
}
static codegen_status_t
gen_opt_ltlt(jitstate_t* jit, ctx_t* ctx)
{
// Delegate to send, call the ltlt method
return gen_opt_send_without_block(jit, ctx);
}
void
gen_branchif_branch(codeblock_t* cb, uint8_t* target0, uint8_t* target1, uint8_t shape)
{
@ -2575,6 +2582,7 @@ yjit_init_codegen(void)
yjit_reg_op(BIN(opt_minus), gen_opt_minus);
yjit_reg_op(BIN(opt_plus), gen_opt_plus);
yjit_reg_op(BIN(opt_mod), gen_opt_mod);
yjit_reg_op(BIN(opt_ltlt), gen_opt_ltlt);
yjit_reg_op(BIN(opt_getinlinecache), gen_opt_getinlinecache);
yjit_reg_op(BIN(branchif), gen_branchif);
yjit_reg_op(BIN(branchunless), gen_branchunless);