Skip to content

Commit

Permalink
RJIT: Scope down send_iseq_complex_has_block exit
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Mar 26, 2023
1 parent 1396b83 commit a624a5d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/ruby_vm/rjit/insn_compiler.rb
Expand Up @@ -4858,8 +4858,12 @@ def jit_setup_parameters_complex(jit, ctx, asm, flags, argc, iseq, arg_setup_typ
end

if iseq.body.param.flags.has_block
asm.incr_counter(:send_iseq_complex_has_block)
return CantCompile
if iseq.body.local_iseq.to_i == iseq.to_i
# Do nothing
else
asm.incr_counter(:send_iseq_complex_has_block)
return CantCompile
end
end

return opt_pc
Expand Down

0 comments on commit a624a5d

Please sign in to comment.