pjh123
|
089179daab
|
refactor: 函数 strict 标志入 IR/编译/缓存链(零行为地基)
|
2026-08-16 16:46:33 +08:00 |
|
pjh123
|
fe8892079e
|
chore: 全仓 rustfmt 格式化归拢
|
2026-08-16 12:50:36 +08:00 |
|
pjh123
|
d9acda7417
|
perf: 字节码调用压帧窗口按调用点存活上界拷贝减少整窗搬移
RegAlloc 改写后补第三次 liveness,为每条 CALL/NEW/SUPER_CALL 计算调用点
存活上界(最大存活物理槽号 + 1,254/255 由帧单独保存不计入),编码进
ext 高 8 位(nargs 低 8 位不变)。三处手写压帧窗口 = min(调用方活动寄存
器, 存活上界),restore_frame 按窗口回拷;CallFrame 新增
caller_active_reg_limit 保存调用方真实活动上限,恢复时不随截断窗口缩水。
生成器/异步函数体调用点保持全量窗口。spread 调用与运行时发起压帧
(accessor/内联)走全量路径不受影响。
|
2026-08-15 09:56:22 +08:00 |
|
pjh123
|
54b6955f6b
|
perf: IC 多态化 4 槽缓存(FIFO 滚动写回)消除多态场景 miss 重解析
每条 IC 指令扩展字 3→8(4 槽 × [shape_id|proto_depth, slot]),命中槽 0
单态快路径零额外成本,槽 1..3 懒解码遍历,miss 写回 FIFO 滚动(新条目进
槽 0、最老丢弃)。修复原型链 IC 深度解析多走一步与 prop_forge 模板不匹配
不写回两个使缓存恒失效的问题。ic_cache 基准命中率 34.8%→78.9%,
耗时 -29%;单态 prop_access 因扩展字布局膨胀有 ~20% 取指回归(后续
side-table 方案可根除)。
|
2026-08-15 06:40:19 +08:00 |
|
pjh123
|
5061ad7a44
|
fix: 计算成员复合赋值保规范求值序
|
2026-08-14 11:41:50 +08:00 |
|
pjh123
|
6a39bccc94
|
perf: 常量字符串键计算成员折叠走 IC 静态路径
|
2026-08-14 10:20:32 +08:00 |
|
pjh123
|
cc3c04216e
|
test: 类编译断言更新为新属性描述符字节码布局
|
2026-08-14 05:45:46 +08:00 |
|
pjh123
|
0d9004f8e2
|
perf: 对象字面量批量构造键序预建 shape
|
2026-08-14 04:47:15 +08:00 |
|
pjh123
|
df23fdff39
|
feat: compiler/test262 runner 接线 + 模块顶层 this 绑定
- Compiler::compile_module:Emitter::emit_program_module → 统一 IR 管线(DCE/regalloc/lower/flatten)
- CompiledModule.is_es_module:VM run 时模块顶层 this=undefined(脚本仍为全局对象)
- 全局注册 __moduleLinkGet
- test262 runner:Test262ModuleLoader(相对路径解析 + import attributes 判定 json/text/bytes),is_module 走 compile_module
|
2026-08-12 17:37:33 +08:00 |
|
pjh123
|
33dae0a8c2
|
fix: 闭包捕获对象键与循环变量绑定
|
2026-08-11 14:17:45 +08:00 |
|
pjh123
|
8a53bfb584
|
feat: 编译管线/类型层 crate 补全多级日志宏 + 关键路径日志
|
2026-08-10 17:56:28 +08:00 |
|
pjh123
|
8163a5d25e
|
perf: 子模块树改 Arc 共享,run() 免深拷贝模块树
|
2026-08-10 17:23:29 +08:00 |
|
pjh123
|
7efb26bc96
|
perf: 函数调用 bytecode 改 Arc 共享(O(1) 帧切换 + IC 写时复制)
|
2026-08-10 15:08:51 +08:00 |
|
pjh123
|
7942269be8
|
fix: 结构哈希补全全部变体(消除 code cache 确定性碰撞)
|
2026-08-10 11:49:50 +08:00 |
|
pjh123
|
6c79dbb21c
|
feat: class 私有成员语义(字段/方法/访问器 + brand 检查 + 契约修复)
|
2026-08-09 11:08:36 +08:00 |
|
pjh123
|
d759338fd5
|
fix: 全量单测修复(flatten 健壮性 + 测试链路补 flatten + 断言对齐规范)
|
2026-08-08 16:03:24 +08:00 |
|
pjh123
|
6c29515624
|
feat: 对象字面量 spread({...obj} 展开可枚举自有属性)
|
2026-08-08 11:24:09 +08:00 |
|
pjh123
|
ab979dc47b
|
feat: 调用实参 spread(f(...args) / new F(...args) / super(...args))
|
2026-08-08 10:33:16 +08:00 |
|
pjh123
|
fd94ff6931
|
fix: 子模块全局扁平化根治逃逸闭包上下文错位
|
2026-08-07 10:49:15 +08:00 |
|
pjh123
|
31e28a03a6
|
docs: 补充注释与格式化
|
2026-08-06 23:10:27 +08:00 |
|
pjh123
|
d3385bc838
|
feat: 管线接入 liveness/精确DCE/RegAlloc + --no-regalloc flag(D-17/D-18)
|
2026-08-06 17:56:55 +08:00 |
|
pjh123
|
8952c1eccd
|
test: 迁移 lowering 测试到 oxide_ir(测试随实现落位)
|
2026-08-06 14:11:54 +08:00 |
|
pjh123
|
27b7f28726
|
test: compile_multiple_stmts 锚按 D-11 放宽为存在性断言
DCE 默认开启删除死 '1; 2' 链的 LOAD_CONST,仅剩顶层值 '3'。
精确计数断言 load_count >= 3 实测失败,放宽为 any(LOAD_CONST)。
|
2026-08-06 12:16:51 +08:00 |
|
pjh123
|
d1bfae2723
|
feat: 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 解析通过
|
2026-08-06 11:45:26 +08:00 |
|
pjh123
|
263fd255b6
|
docs: 添加 Rustdoc 注释
|
2026-08-05 21:46:47 +08:00 |
|
pjh123
|
7c8f19f61a
|
refactor: 拆分 oxide_emit 为独立 emit pass crate(依赖倒置)
|
2026-08-05 20:13:18 +08:00 |
|
pjh123
|
4f670eb7fd
|
refactor: 拆分 oxide_ir 为独立 crate
|
2026-08-05 19:34:44 +08:00 |
|
pjh123
|
3ae2eeee42
|
refactor: 拆分闭包分析与预扫描模块,拆分函数体编译子步骤
|
2026-08-05 19:29:02 +08:00 |
|
pjh123
|
050f75c952
|
fix: 完善闭包捕获(cell 索引稳定、参数遮蔽、函数/类名捕获、b 槽立即数)
|
2026-08-05 19:19:29 +08:00 |
|
pjh123
|
179960ed75
|
fix: 重写闭包捕获分析为 AST 级,修复 MAKE_CELL 时序
|
2026-08-05 18:41:48 +08:00 |
|
pjh123
|
0028a1787e
|
chore: 清理过时 dead_code 标注与空代码块
|
2026-08-05 18:26:46 +08:00 |
|
pjh123
|
1171c53ff6
|
test: 补 IR 结构测试
|
2026-08-05 18:03:21 +08:00 |
|
pjh123
|
90f932680d
|
test: 补薄弱域字节码断言测试
|
2026-08-05 18:01:42 +08:00 |
|
pjh123
|
76e650ce82
|
refactor: 抽取 assemble_ir 共用出口组装
|
2026-08-05 17:55:32 +08:00 |
|
pjh123
|
f34f791b9a
|
refactor: 原子切换 emit 产出符号化 IR
|
2026-08-05 17:52:42 +08:00 |
|
pjh123
|
ef3cd65eb6
|
feat: 实现 IRFunction 到字节码的 lowering 转换
|
2026-08-05 17:24:35 +08:00 |
|
pjh123
|
e9e1ad8acd
|
feat: 新增 Operand/Inst/IRFunction 类型系统与构造 API
|
2026-08-05 17:17:51 +08:00 |
|
pjh123
|
c250f5cb2b
|
fix: 修复编译阶段缺失的预注册顶层 var 名步骤
|
2026-08-05 15:21:00 +08:00 |
|
pjh123
|
dce335e766
|
fix: 逐个按顺序处理 field 与 block 以符合 JS 类元素源码顺序语义
|
2026-08-05 15:04:44 +08:00 |
|
pjh123
|
94576d60c5
|
fix: 编译阶段预扫描 builtin 避免寄存器分配问题
|
2026-08-05 13:28:51 +08:00 |
|
pjh123
|
77d11fb18c
|
refactor: 单趟编译收尾
|
2026-08-05 10:27:30 +08:00 |
|
pjh123
|
489fe5e6bb
|
refactor: 移除 class 计数辅助
|
2026-08-05 10:27:29 +08:00 |
|
pjh123
|
76fb0b5b88
|
refactor: 移除表达式计数辅助
|
2026-08-05 10:27:29 +08:00 |
|
pjh123
|
c4ea84bda1
|
refactor: 移除迭代计数辅助
|
2026-08-05 10:27:29 +08:00 |
|
pjh123
|
fd978b7ef8
|
refactor: 移除语句跳转计数辅助
|
2026-08-05 10:27:28 +08:00 |
|
pjh123
|
dfc14cfce9
|
refactor: 移除简单表达式计数辅助
|
2026-08-05 10:27:28 +08:00 |
|
pjh123
|
198bb7d428
|
refactor: 移除语句计数辅助
|
2026-08-05 10:27:28 +08:00 |
|
pjh123
|
c4ea281985
|
refactor: 模块编译改单趟完成
|
2026-08-05 00:49:13 +08:00 |
|
pjh123
|
b043c0272b
|
refactor: 逻辑赋值跳转改经 fixup 解析
|
2026-08-05 00:42:02 +08:00 |
|
pjh123
|
3bbdc3f562
|
refactor: 可选链跳转改经 fixup 延迟发射
|
2026-08-05 00:38:11 +08:00 |
|