feat: 新增 IR 层常量传播与折叠 pass

This commit is contained in:
2026-10-12 14:43:58 +00:00
parent b7b6d43d05
commit 66e240ad00
10 changed files with 1044 additions and 21 deletions
+18
View File
@@ -0,0 +1,18 @@
[package]
name = "oxide_fold"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
description = "OxideJS - forward constant propagation and constant folding pass over IR"
[dependencies]
oxide_ir = { path = "../oxide_ir" }
oxide_bytecode = { path = "../oxide_bytecode" }
oxide_runtime_api = { path = "../oxide_runtime_api" }
oxide_types = { path = "../oxide_types" }
oxide_log = { path = "../oxide_log" }
num-bigint = "0.4"
[lints]
workspace = true