aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ruby_vm
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-04-03 08:44:16 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-04-03 08:44:16 -0700
commit3cb5e7558ddbaf9535a6937616fb9e8db13dbcbb (patch)
tree6b780c4f1784ffeea2157690a72ad701ab230efa /lib/ruby_vm
parent46e93ef53d66a73c1dbe317946dd4ac7d712bb1c (diff)
downloadruby-3cb5e7558ddbaf9535a6937616fb9e8db13dbcbb.tar.gz
Fix a test_rubyoptions failure
Diffstat (limited to 'lib/ruby_vm')
-rw-r--r--lib/ruby_vm/rjit/compiler.rb18
-rw-r--r--lib/ruby_vm/rjit/insn_compiler.rb3
2 files changed, 0 insertions, 21 deletions
diff --git a/lib/ruby_vm/rjit/compiler.rb b/lib/ruby_vm/rjit/compiler.rb
index 5eebef9a77..203c2658df 100644
--- a/lib/ruby_vm/rjit/compiler.rb
+++ b/lib/ruby_vm/rjit/compiler.rb
@@ -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
diff --git a/lib/ruby_vm/rjit/insn_compiler.rb b/lib/ruby_vm/rjit/insn_compiler.rb
index 1a0514e75a..f01fb684c7 100644
--- a/lib/ruby_vm/rjit/insn_compiler.rb
+++ b/lib/ruby_vm/rjit/insn_compiler.rb
@@ -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])