@@ -3790,7 +3790,7 @@ impl Function {
37903790 continue;
37913791 }
37923792 };
3793- let ci = unsafe { get_call_data_ci( cd) }; // info about the call site
3793+ let ci = unsafe { (* cd).ci }; // info about the call site
37943794
37953795 let flags = unsafe { rb_vm_ci_flag(ci) };
37963796
@@ -4152,7 +4152,7 @@ impl Function {
41524152 continue;
41534153 }
41544154
4155- let ci = unsafe { get_call_data_ci( cd) };
4155+ let ci = unsafe { (* cd).ci };
41564156 let flags = unsafe { rb_vm_ci_flag(ci) };
41574157 assert!(flags & VM_CALL_FCALL != 0);
41584158
@@ -7998,7 +7998,7 @@ fn add_iseq_to_hir(
79987998 // Check if #new resolves to rb_class_new_instance_pass_kw.
79997999 // TODO: Guard on a profiled class and add a patch point for #new redefinition
80008000 let argc = crate::profile::num_arguments_on_stack(cd);
8001- let ci = unsafe { get_call_data_ci( cd) };
8001+ let ci = unsafe { (* cd).ci };
80028002 let flags = unsafe { rb_vm_ci_flag(ci) };
80038003 assert_eq!(flags & VM_CALL_ARGS_BLOCKARG, 0);
80048004 let val = state.stack_topn(argc)?;
@@ -8469,7 +8469,7 @@ fn add_iseq_to_hir(
84698469 YARVINSN_opt_neq => {
84708470 // NB: opt_neq has two cd; get_arg(0) is for eq and get_arg(1) is for neq
84718471 let cd: *const rb_call_data = get_arg(pc, 1).as_ptr();
8472- let call_info = unsafe { rb_get_call_data_ci( cd) };
8472+ let call_info = unsafe { (* cd).ci };
84738473 let flags = unsafe { rb_vm_ci_flag(call_info) };
84748474 if let Err(call_type) = unhandled_call_type(flags) {
84758475 // Can't handle the call type; side-exit into the interpreter
@@ -8568,7 +8568,7 @@ fn add_iseq_to_hir(
85688568 YARVINSN_opt_regexpmatch2 |
85698569 YARVINSN_opt_send_without_block => {
85708570 let cd: *const rb_call_data = get_arg(pc, 0).as_ptr();
8571- let call_info = unsafe { rb_get_call_data_ci( cd) };
8571+ let call_info = unsafe { (* cd).ci };
85728572 let flags = unsafe { rb_vm_ci_flag(call_info) };
85738573 if let Err(call_type) = unhandled_call_type(flags) {
85748574 // Can't handle tailcall; side-exit into the interpreter
@@ -8662,7 +8662,7 @@ fn add_iseq_to_hir(
86628662 YARVINSN_send => {
86638663 let cd: *const rb_call_data = get_arg(pc, 0).as_ptr();
86648664 let blockiseq: IseqPtr = get_arg(pc, 1).as_iseq();
8665- let call_info = unsafe { rb_get_call_data_ci( cd) };
8665+ let call_info = unsafe { (* cd).ci };
86668666 let flags = unsafe { rb_vm_ci_flag(call_info) };
86678667 if let Err(call_type) = unhandled_call_type(flags) {
86688668 // Can't handle tailcall; side-exit into the interpreter
@@ -8716,7 +8716,7 @@ fn add_iseq_to_hir(
87168716 YARVINSN_sendforward => {
87178717 let cd: *const rb_call_data = get_arg(pc, 0).as_ptr();
87188718 let blockiseq: IseqPtr = get_arg(pc, 1).as_iseq();
8719- let call_info = unsafe { rb_get_call_data_ci( cd) };
8719+ let call_info = unsafe { (* cd).ci };
87208720 let flags = unsafe { rb_vm_ci_flag(call_info) };
87218721 let forwarding = (flags & VM_CALL_FORWARDING) != 0;
87228722 if let Err(call_type) = unhandled_call_type(flags) {
@@ -8761,7 +8761,7 @@ fn add_iseq_to_hir(
87618761 }
87628762 YARVINSN_invokesuper => {
87638763 let cd: *const rb_call_data = get_arg(pc, 0).as_ptr();
8764- let call_info = unsafe { rb_get_call_data_ci( cd) };
8764+ let call_info = unsafe { (* cd).ci };
87658765 let flags = unsafe { rb_vm_ci_flag(call_info) };
87668766 if let Err(call_type) = unhandled_call_type(flags) {
87678767 // Can't handle tailcall; side-exit into the interpreter
@@ -8807,7 +8807,7 @@ fn add_iseq_to_hir(
88078807 YARVINSN_invokesuperforward => {
88088808 let cd: *const rb_call_data = get_arg(pc, 0).as_ptr();
88098809 let blockiseq: IseqPtr = get_arg(pc, 1).as_iseq();
8810- let call_info = unsafe { rb_get_call_data_ci( cd) };
8810+ let call_info = unsafe { (* cd).ci };
88118811 let flags = unsafe { rb_vm_ci_flag(call_info) };
88128812 let forwarding = (flags & VM_CALL_FORWARDING) != 0;
88138813 if let Err(call_type) = unhandled_call_type(flags) {
@@ -8853,7 +8853,7 @@ fn add_iseq_to_hir(
88538853 }
88548854 YARVINSN_invokeblock => {
88558855 let cd: *const rb_call_data = get_arg(pc, 0).as_ptr();
8856- let call_info = unsafe { rb_get_call_data_ci( cd) };
8856+ let call_info = unsafe { (* cd).ci };
88578857 let flags = unsafe { rb_vm_ci_flag(call_info) };
88588858 if let Err(call_type) = unhandled_call_type(flags) {
88598859 // Can't handle tailcall; side-exit into the interpreter
0 commit comments