Skip to content

Commit 07a7c4b

Browse files
committed
YJIT: Remove duplicate cfp->iseq accessor
1 parent 41a6e4b commit 07a7c4b

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

yjit.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -798,13 +798,6 @@ rb_set_cfp_sp(struct rb_control_frame_struct *cfp, VALUE *sp)
798798
cfp->sp = sp;
799799
}
800800

801-
rb_iseq_t *
802-
rb_cfp_get_iseq(struct rb_control_frame_struct *cfp)
803-
{
804-
// TODO(alan) could assert frame type here to make sure that it's a ruby frame with an iseq.
805-
return (rb_iseq_t*)cfp->iseq;
806-
}
807-
808801
VALUE
809802
rb_get_cfp_self(struct rb_control_frame_struct *cfp)
810803
{

yjit/bindgen/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ fn main() {
307307
.allowlist_function("rb_yjit_iseq_builtin_attrs")
308308
.allowlist_function("rb_yjit_builtin_function")
309309
.allowlist_function("rb_set_cfp_(pc|sp)")
310-
.allowlist_function("rb_cfp_get_iseq")
311310
.allowlist_function("rb_yjit_multi_ractor_p")
312311
.allowlist_function("rb_c_method_tracing_currently_enabled")
313312
.allowlist_function("rb_full_cfunc_return")

yjit/src/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2518,7 +2518,7 @@ fn branch_stub_hit_body(branch_ptr: *const c_void, target_idx: u32, ec: EcPtr) -
25182518
let cfp = get_ec_cfp(ec);
25192519
let original_interp_sp = get_cfp_sp(cfp);
25202520

2521-
let running_iseq = rb_cfp_get_iseq(cfp);
2521+
let running_iseq = get_cfp_iseq(cfp);
25222522
let reconned_pc = rb_iseq_pc_at_idx(running_iseq, target_blockid.idx.into());
25232523
let reconned_sp = original_interp_sp.offset(target_ctx.sp_offset.into());
25242524
// Unlike in the interpreter, our `leave` doesn't write to the caller's

0 commit comments

Comments
 (0)