diff options
author | Takashi Kokubun <[email protected]> | 2023-02-08 14:19:09 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-05 22:11:20 -0800 |
commit | 64074ca4dfa7cc12e5966e6e763b2794bd97aecc (patch) | |
tree | 0fe907fdf1a1de4604b851213e60322e2f6b5b14 /lib/ruby_vm/mjit/insn_compiler.rb | |
parent | 365cda16b5029a152076d96e349c7eb611a08ccf (diff) |
Refactor recv_opnd
Diffstat (limited to 'lib/ruby_vm/mjit/insn_compiler.rb')
-rw-r--r-- | lib/ruby_vm/mjit/insn_compiler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ruby_vm/mjit/insn_compiler.rb b/lib/ruby_vm/mjit/insn_compiler.rb index 2f4d520635..8f1586efef 100644 --- a/lib/ruby_vm/mjit/insn_compiler.rb +++ b/lib/ruby_vm/mjit/insn_compiler.rb @@ -947,7 +947,7 @@ module RubyVM::MJIT comptime_recv_klass = C.rb_class_of(comptime_recv) # Guard the receiver class (part of vm_search_method_fastpath) - recv_opnd = [SP, C.VALUE.size * (ctx.sp_offset - 1 - recv_index)] + recv_opnd = ctx.stack_opnd(recv_index) megamorphic_exit = counted_exit(side_exit, :send_klass_megamorphic) if jit_guard_known_class(jit, ctx, asm, comptime_recv_klass, recv_opnd, comptime_recv, megamorphic_exit) == CantCompile return CantCompile |