This commit is contained in:
Max Bernstein 2025-02-06 12:13:43 -05:00 committed by Takashi Kokubun
parent db14f4a16b
commit d091d6ea94
Notes: git 2025-04-18 13:49:47 +00:00

View file

@ -209,6 +209,12 @@ pub fn iseq_to_ssa(iseq: *const rb_iseq_t) {
}
YARVINSN_pop => { state.pop(); }
YARVINSN_dup => { state.push(state.top()); }
YARVINSN_swap => {
let right = state.pop();
let left = state.pop();
state.push(right);
state.push(left);
}
YARVINSN_leave => {
result.push_insn(block, Insn::Return { val: state.pop() });
}