diff options
| author | Max Bernstein <max.bernstein@shopify.com> | 2025-02-07 09:43:36 -0500 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-04-18 21:52:57 +0900 |
| commit | fdb4e24d562b1cd9611e24dcac8293e9727eedba (patch) | |
| tree | 1fca25419f340333331ada8a708963d841b7e3bd /zjit | |
| parent | 9910fba282dfc19214d8a34b5f62c1e11d8a73ac (diff) | |
Split block after leave
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13131
Diffstat (limited to 'zjit')
| -rw-r--r-- | zjit/src/ir.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zjit/src/ir.rs b/zjit/src/ir.rs index 25f9d485cd..a7dabd80bd 100644 --- a/zjit/src/ir.rs +++ b/zjit/src/ir.rs @@ -284,6 +284,7 @@ fn compute_jump_targets(iseq: *const rb_iseq_t) -> Vec<u32> { let offset = get_arg(pc, 0).as_i64(); jump_targets.push(insn_idx_at_offset(insn_idx, offset)); } + YARVINSN_leave => { jump_targets.push(insn_idx); } _ => eprintln!("zjit: compute_jump_targets: unknown opcode `{}'", insn_name(opcode as usize)), } } |
