mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
RJIT: Convert opt_case_dispatch keys with #to_value
comptime_key is a Ruby object and the value is not valid in machine code. This PR also implements `CMP r/m64, imm32 (Mod 01: [reg]+disp8)` that is now needed for running mail.gem benchmark.
This commit is contained in:
parent
0c05551f58
commit
9a3c49ee5d
3 changed files with 20 additions and 7 deletions
|
@ -2099,7 +2099,7 @@ module RubyVM::RJIT
|
|||
end
|
||||
|
||||
# Check if the key is the same value
|
||||
asm.cmp(key_opnd, comptime_key)
|
||||
asm.cmp(key_opnd, to_value(comptime_key))
|
||||
side_exit = side_exit(jit, starting_context)
|
||||
jit_chain_guard(:jne, jit, starting_context, asm, side_exit)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue