Fix a test_rubyoptions failure

This commit is contained in:
Takashi Kokubun 2023-04-03 08:44:16 -07:00
parent 46e93ef53d
commit 3cb5e7558d
2 changed files with 0 additions and 21 deletions

View File

@ -402,24 +402,6 @@ module RubyVM::RJIT
end
return best_version
versions.find do |block|
dst = block.ctx
# Can only lookup the first version in the chain
if dst.chain_depth != 0
next false
end
# Blocks with depth > 0 always produce new versions
# Sidechains cannot overlap
if src.chain_depth != 0
next false
end
src.stack_size == dst.stack_size &&
src.sp_offset == dst.sp_offset
end
end
# @param [RubyVM::RJIT::Block] block

View File

@ -2990,9 +2990,6 @@ module RubyVM::RJIT
return false
end
# Generate a side exit
side_exit = side_exit(jit, ctx)
# Guard that the concat argument is a string
asm.mov(:rax, ctx.stack_opnd(0))
guard_object_is_string(jit, ctx, asm, :rax, :rcx, StackOpnd[0])