diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2023-10-05 16:40:27 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2023-10-05 16:40:27 -0400 |
commit | 07a7c4bdaf27b80a8d791032986539d5188804c6 (patch) | |
tree | bf3600658175ba2403047981e2f90ed8ba4f69bb /yjit | |
parent | 41a6e4bdf9738e2cf1ea356422a429efeeb5a8f0 (diff) |
YJIT: Remove duplicate cfp->iseq accessor
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/bindgen/src/main.rs | 1 | ||||
-rw-r--r-- | yjit/src/core.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index db93672a3d..c87dc6fb21 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -307,7 +307,6 @@ fn main() { .allowlist_function("rb_yjit_iseq_builtin_attrs") .allowlist_function("rb_yjit_builtin_function") .allowlist_function("rb_set_cfp_(pc|sp)") - .allowlist_function("rb_cfp_get_iseq") .allowlist_function("rb_yjit_multi_ractor_p") .allowlist_function("rb_c_method_tracing_currently_enabled") .allowlist_function("rb_full_cfunc_return") diff --git a/yjit/src/core.rs b/yjit/src/core.rs index d2329455d0..dca228dc44 100644 --- a/yjit/src/core.rs +++ b/yjit/src/core.rs @@ -2518,7 +2518,7 @@ fn branch_stub_hit_body(branch_ptr: *const c_void, target_idx: u32, ec: EcPtr) - let cfp = get_ec_cfp(ec); let original_interp_sp = get_cfp_sp(cfp); - let running_iseq = rb_cfp_get_iseq(cfp); + let running_iseq = get_cfp_iseq(cfp); let reconned_pc = rb_iseq_pc_at_idx(running_iseq, target_blockid.idx.into()); let reconned_sp = original_interp_sp.offset(target_ctx.sp_offset.into()); // Unlike in the interpreter, our `leave` doesn't write to the caller's |