diff options
| author | Max Bernstein <max.bernstein@shopify.com> | 2025-02-07 09:40:43 -0500 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-04-18 21:52:57 +0900 |
| commit | 9910fba282dfc19214d8a34b5f62c1e11d8a73ac (patch) | |
| tree | 5bbe6fcc68cfdf77183744671263e119e8a376b9 | |
| parent | ea98a5ae39087edd18a1225f3fe4614dfefe4fe6 (diff) | |
More jump targets
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13131
| -rw-r--r-- | zjit/src/ir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zjit/src/ir.rs b/zjit/src/ir.rs index 6b8a4124d0..25f9d485cd 100644 --- a/zjit/src/ir.rs +++ b/zjit/src/ir.rs @@ -280,7 +280,7 @@ fn compute_jump_targets(iseq: *const rb_iseq_t) -> Vec<u32> { .unwrap(); insn_idx += insn_len(opcode as usize); match opcode { - YARVINSN_branchunless => { + YARVINSN_branchunless | YARVINSN_jump | YARVINSN_branchif | YARVINSN_branchnil => { let offset = get_arg(pc, 0).as_i64(); jump_targets.push(insn_idx_at_offset(insn_idx, offset)); } |
