Skip to content

Commit

Permalink
Deletate to opt_send_without_block for opt_ltlt (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb authored May 10, 2021
1 parent a54edba commit 86b1baf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions yjit_codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,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)
{
Expand Down Expand Up @@ -2574,6 +2581,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);
Expand Down

0 comments on commit 86b1baf

Please sign in to comment.