pjh123
|
5611d90ad0
|
feat: with 语句、成员位/移位复合赋值、CALL_NATIVE 无目标修复
with 语句:新增 emit 支持,with 体内自由标识符动态解析(对象属性优先,
回退外层),支持读/写/复合赋值/自增自减/delete/var 初始化动态化,
TO_OBJECT opcode 处理原始值对象,顶层 this 绑定全局对象。
复合赋值:新增 6 个 COMPOUND_MEMBER_BIT_* opcode 支持成员位/移位复合赋值,
修复 computed member 复合赋值覆盖 bug,with 内标识符复合赋值动态化。
CALL_NATIVE:实现全局 isNaN/isFinite 并绑定,用户覆盖 builtin 名时
回退通用调用路径而非报错,局部遮蔽 builtin 名走普通 CALL。
test262: with 34 pass(基线 0),compound-assignment 320 pass(基线 223)
|
2026-08-09 07:22:46 +08:00 |
|
pjh123
|
826d9fd0a2
|
feat: RegExp.prototype 实现 Symbol.match/replace/search/split/matchAll
|
2026-08-08 22:33:32 +08:00 |
|
pjh123
|
9e3be30fe8
|
fix: TypedArray 元素写入进 buffer + BYTES_PER_ELEMENT 属性
|
2026-08-08 21:41:33 +08:00 |
|
pjh123
|
32c0474959
|
fix: Number::toString 符合 ECMA-262(1e21 指数、radix RangeError、parseInt/Number 字符串解析)
|
2026-08-08 20:39:55 +08:00 |
|
pjh123
|
71c9f78338
|
feat: 补 String.fromCodePoint/codePointAt/isWellFormed/toWellFormed
|
2026-08-08 20:05:49 +08:00 |
|
pjh123
|
7a559978f0
|
feat: Set/Map 构造器接收可迭代实参 + size 访问器 + ES2024 set-methods
|
2026-08-08 18:01:00 +08:00 |
|
pjh123
|
d759338fd5
|
fix: 全量单测修复(flatten 健壮性 + 测试链路补 flatten + 断言对齐规范)
|
2026-08-08 16:03:24 +08:00 |
|
pjh123
|
0bc8c847b5
|
feat: 实现 Array.from 与 Array.of 静态方法
- Array.from:可迭代(迭代协议)与 array-like 双路径,支持 mapFn/thisArg,
构造器 this 支持(new C),CreateDataPropertyOrThrow 写入,IteratorClose
- Array.of:以参数为元素,this 构造器 + CreateDataProperty + Set length
- iterator.rs:get_iterator 改为 Option 返回,新增 try_make_iterator 与
peek_iterator_method(GetMethod 只读判定,不调用迭代器)
|
2026-08-08 13:13:08 +08:00 |
|
pjh123
|
cd214069cd
|
fix: try/finally 支持 break/continue/return 穿越 finally(completion 机制)
|
2026-08-08 12:38:25 +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
|
d186c4d9f2
|
feat: Function 构造器(动态编译字符串生成函数)
|
2026-08-08 03:07:26 +08:00 |
|
pjh123
|
0b68baa802
|
fix: delete 真正删除属性(shape 链重建 + 数组元素 hole 标记)
字节码 delete 原先只清值为 undefined,属性残留在 shape 链,hasOwnProperty/
keys/枚举仍可见。统一走共享 delete_own_property(与 Reflect.deleteProperty
一致):
- 命名属性经 shape 链重建移除,数组重建前保存并恢复元素区
- 数组下标元素标记为 hole(PropMetaEntry.hole),length 不变,
存在性检查(resolve_property/get_own_property_slot/ordinary_get/for-in)
判 hole,重赋值自动清除标记
- 不可配置属性统一返回 false(sloppy 语义,strict 抛错留待 emit 追踪严格模式)
- set_or_create_prop_value 数组下标键路由元素区,修复 delete 后重赋值误入
shape 链
test262 Object +212 PASS/-102 FAIL,Array +149 PASS/-60 FAIL,无回归。
|
2026-08-08 02:25:13 +08:00 |
|
pjh123
|
7e11a4d2b4
|
fix: defineProperty 内部错误不触发 unwind + enumerable/configurable 缺省回填
|
2026-08-08 01:18:21 +08:00 |
|
pjh123
|
88e11748ff
|
fix: Error 家族构造器可构造标志 + 数组回调异常透传原始对象
|
2026-08-08 00:19:05 +08:00 |
|
pjh123
|
bfcf132d73
|
feat: arguments 对象绑定(CREATE_ARGUMENTS + 帧实参 spill 区)
|
2026-08-08 00:01:22 +08:00 |
|
pjh123
|
bfc2312f6c
|
fix: 数组元素写入越过元素区时搬移属性区 + defineProperty 数组索引走元素区
|
2026-08-07 23:20:32 +08:00 |
|
pjh123
|
31542a2576
|
fix: 数组属性存储机制(array_prop_count 显式元素数 + shape 属性偏移 + IC/prop_forge 对齐)
|
2026-08-07 21:53:45 +08:00 |
|
pjh123
|
0df0c2cb98
|
fix: native 构造器可构造性标志(OBJ_TYPE_CONSTRUCTOR)+ Reflect.construct/new 校验
|
2026-08-07 20:44:04 +08:00 |
|
pjh123
|
20381f726b
|
fix: 正则字面量编译期语法校验(非法抛 SyntaxError)+ CREATE_REGEXP 保留错误类型
|
2026-08-07 20:02:11 +08:00 |
|
pjh123
|
9981086424
|
fix: SUPER_CALL 后构造实例 proto 设为 new.target.prototype(子类化内建)
|
2026-08-07 18:41:34 +08:00 |
|
pjh123
|
e6886eb1d0
|
feat: 实现整数索引读取与 for-of 迭代(get_iterator 支持)
|
2026-08-07 18:10:19 +08:00 |
|
pjh123
|
2b7b9afcc8
|
fix: REST_OBJECT 提前消费 ext 字防 ToObject 早返回后 pc 错位
|
2026-08-07 18:00:59 +08:00 |
|
pjh123
|
93942a1aa5
|
fix: REST_OBJECT 对原始类型 ToObject(number/boolean/symbol 空对象,string 索引字符)
|
2026-08-07 17:50:49 +08:00 |
|
pjh123
|
76b3bcf6eb
|
fix: 顶层模块 param_layout.base 改 0 防父槽误判 + regalloc/VM 诊断日志
|
2026-08-07 17:13:57 +08:00 |
|
pjh123
|
344a2a17e3
|
fix: 闭包捕获 let/const 的 cell 未初始化(TDZ)读取抛 ReferenceError
|
2026-08-07 16:19:35 +08:00 |
|
pjh123
|
192b697335
|
fix: 数组元素访问器属性触发 getter 并透传异常
|
2026-08-07 15:05:44 +08:00 |
|
pjh123
|
de67cc8eee
|
fix: 链式 upvalue 捕获支持多层嵌套函数引用深层变量
|
2026-08-07 14:56:51 +08:00 |
|
pjh123
|
710c8c8a2c
|
fix: 闭包 upvalue cell 占位稳定化修复错读调用方表
|
2026-08-07 14:38:47 +08:00 |
|
pjh123
|
61d39b6536
|
fix: Function.prototype.call 的 native 错误转 JS 异常可被捕获
|
2026-08-07 13:45:39 +08:00 |
|
pjh123
|
c0ea2d3eb1
|
fix: 函数 name 属性与 harness 重复 Test262Error 定义
|
2026-08-07 12:22:59 +08:00 |
|
pjh123
|
fd94ff6931
|
fix: 子模块全局扁平化根治逃逸闭包上下文错位
|
2026-08-07 10:49:15 +08:00 |
|
pjh123
|
98b07687f0
|
fix: CREATE_CLOSURE 越界改运行时错误防进程中断
|
2026-08-07 00:42:33 +08:00 |
|
pjh123
|
f10010869e
|
fix: new 构造入口补齐 sub_modules 上下文切换
|
2026-08-07 00:38:50 +08:00 |
|
pjh123
|
dd5607ce1a
|
fix: inline 回调支持 upvalue 闭包上下文
|
2026-08-07 00:23:35 +08:00 |
|
pjh123
|
710965b7f2
|
fix: new 构造 cell_stack 失衡与子模块 immutables 缓存失步
|
2026-08-07 00:15:09 +08:00 |
|
pjh123
|
31e28a03a6
|
docs: 补充注释与格式化
|
2026-08-06 23:10:27 +08:00 |
|
pjh123
|
fd267816f4
|
feat: 新增 MOV/SPILL/UNSPILL 执行语义 + spill 栈帧边界(D-06/D-07/D-08)
|
2026-08-06 16:51:01 +08:00 |
|
pjh123
|
5988696f5b
|
fix: const 声明 STORE_VAR 恒 b=0 致寄存器复用误抛
|
2026-08-06 16:03:09 +08:00 |
|
pjh123
|
bca499fc39
|
fix: Compiler 改带字段 struct 后 5 处 bench 用 new() 构造
04-03 将 Compiler 从 unit struct 改为带 enable_dce 字段后,
bench 里旧语法 'Compiler.compile(...)' 编译失败(clippy --all-targets
暴露,cargo test 不编 bench)。统一改 Compiler::new().compile(...)。
|
2026-08-06 12:17:13 +08:00 |
|
pjh123
|
261c62a37e
|
fix: 修复 date_to_json 测试时区敏感断言(UTC+8 下用显式 UTC 时间戳)
|
2026-08-06 01:05:56 +08:00 |
|
pjh123
|
263fd255b6
|
docs: 添加 Rustdoc 注释
|
2026-08-05 21:46:47 +08:00 |
|
pjh123
|
050f75c952
|
fix: 完善闭包捕获(cell 索引稳定、参数遮蔽、函数/类名捕获、b 槽立即数)
|
2026-08-05 19:19:29 +08:00 |
|
pjh123
|
2f7fe3cedf
|
fix: 修复不符合 JS 语义约束的错误行为测试
|
2026-08-05 15:44:22 +08:00 |
|
pjh123
|
435674d961
|
fix: 接通透传闭包值链路
|
2026-06-30 23:57:22 +08:00 |
|
pjh123
|
969eacb047
|
perf: IC hit/miss 路径 depth=0 快速路径内联,跳过 proto 遍历函数调用
|
2026-06-30 23:45:52 +08:00 |
|
pjh123
|
e18edeef6a
|
fix: 闭包值传递链路完善
|
2026-06-30 23:08:11 +08:00 |
|
pjh123
|
991e6040e5
|
fix: 修复闭包值传递链路
|
2026-06-30 22:52:25 +08:00 |
|
pjh123
|
77a52bf7e8
|
fix: 修复嵌套函数调用并接通闭包捕获链路
|
2026-06-30 21:52:18 +08:00 |
|
pjh123
|
9af91aada3
|
style: 自动格式化
|
2026-06-30 21:50:37 +08:00 |
|