mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 05:55:46 +02:00
RJIT: Scope down send_iseq_complex_has_block exit
This commit is contained in:
parent
1396b83153
commit
a624a5d709
1 changed files with 6 additions and 2 deletions
|
@ -4858,8 +4858,12 @@ module RubyVM::RJIT
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue