We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd10097 commit 7df6f49Copy full SHA for 7df6f49
1 file changed
zjit/src/codegen.rs
@@ -445,11 +445,14 @@ fn gen_lookup_method(
445
method_id: ID,
446
state: &FrameState,
447
) -> Option<lir::Opnd> {
448
+ asm_comment!(asm, "get the class of the receiver with rb_obj_class");
449
+ let class = asm.ccall(rb_obj_class as *const u8, vec![recv]);
450
// TODO(max): Figure out if we need to do anything here to save state to CFP
451
let method_opnd = Opnd::UImm(method_id.0.into());
452
+ asm_comment!(asm, "call rb_callable_method_entry");
453
let result = asm.ccall(
454
rb_callable_method_entry as *const u8,
- vec![recv, method_opnd],
455
+ vec![class, method_opnd],
456
);
457
asm.test(result, result);
458
asm.jz(Target::SideExit(state.clone()));
0 commit comments