mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 18:51:13 +08:00
fix: CI 修复——emit_program 测试调用点补 repl_persist 参数 + clippy 告警清零 + 删空 bench_tests
This commit is contained in:
@@ -10,7 +10,7 @@ use oxide_bytecode::module::CompiledModule;
|
||||
fn compile_source(src: &str, regalloc: bool) -> Result<CompiledModule, String> {
|
||||
let allocator = oxide_parser::Allocator::default();
|
||||
let program = oxide_parser::parse(&allocator, src).expect("parse failed");
|
||||
let mut ir = oxide_emit::Emitter::new().emit_program(&program).expect("emit failed");
|
||||
let mut ir = oxide_emit::Emitter::new().emit_program(&program, false).expect("emit failed");
|
||||
oxide_dce::dce(&mut ir);
|
||||
if regalloc {
|
||||
let cfg = oxide_cfg::build_cfg(&ir);
|
||||
|
||||
Reference in New Issue
Block a user