mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 03:01:12 +08:00
feat: 异常与 return 穿越释放资源,dispose_count 门控
This commit is contained in:
@@ -64,7 +64,7 @@ fn spill_unspill_roundtrip() {
|
||||
#[test]
|
||||
fn frame_boundary_parent_spill_survives_call() {
|
||||
let child = int_module(
|
||||
vec![Inst::load_const(Operand::Reg(3), 0), Inst::ret(Operand::Reg(3), 0, 0)],
|
||||
vec![Inst::load_const(Operand::Reg(3), 0), Inst::ret(Operand::Reg(3), 0, 0, 0)],
|
||||
99,
|
||||
4,
|
||||
Vec::new(),
|
||||
@@ -89,7 +89,7 @@ fn nested_call_both_spill() {
|
||||
vec![
|
||||
Inst::load_const(Operand::Reg(3), 0),
|
||||
Inst::inst_spill(Operand::Reg(3), 0),
|
||||
Inst::ret(Operand::Reg(3), 0, 0),
|
||||
Inst::ret(Operand::Reg(3), 0, 0, 0),
|
||||
],
|
||||
99,
|
||||
4,
|
||||
|
||||
Reference in New Issue
Block a user