mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
fix: 子模块全局扁平化根治逃逸闭包上下文错位
This commit is contained in:
@@ -58,7 +58,9 @@ impl Compiler {
|
||||
oxide_regalloc::alloc(&mut ir, &live2)?; // 无可行染色 → RangeError 上抛
|
||||
}
|
||||
crate::compiler_debug!("compile: done, {} instructions", ir.insts.len());
|
||||
lower(&ir)
|
||||
let mut module = lower(&ir)?;
|
||||
crate::flatten::flatten_submodules(&mut module);
|
||||
Ok(module)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user