feat(compiler): Compiler 增加 enable_dce 字段与 with_dce 开关(D-10)

- unit struct 改带字段 struct,new() 默认开启 DCE
- compile 在 emit 与 lower 之间插入 oxide_dce::dce(nested 不递归 D-03)
- Cargo.toml 追加 oxide_dce path 依赖;dev 环经 resolver v2 解析通过
This commit is contained in:
爱特每羊队
2026-08-06 11:45:26 +08:00
parent 319610ec7b
commit bbba23b93a
2 changed files with 18 additions and 6 deletions
+1
View File
@@ -10,6 +10,7 @@ description = "OxideJS - AST to bytecode compiler"
oxide_bytecode = { path = "../oxide_bytecode" }
oxide_parser = { path = "../oxide_parser" }
oxide_log = { path = "../oxide_log" }
oxide_dce = { path = "../oxide_dce" }
oxide_ir.workspace = true
oxide_emit.workspace = true
serde.workspace = true