From 64074ca4dfa7cc12e5966e6e763b2794bd97aecc Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 8 Feb 2023 14:19:09 -0800 Subject: Refactor recv_opnd --- lib/ruby_vm/mjit/insn_compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ruby_vm') 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 -- cgit v1.2.3