Commit Graph

16 Commits

Author SHA1 Message Date
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 263fd255b6 docs: 添加 Rustdoc 注释 2026-08-05 21:46:47 +08:00
pjh123 dfdaeeaeaf fix: Number 静态方法 ToNumber 转换、格式化方法精度/边界修复、常量属性描述符 2026-06-27 22:46:48 +08:00
pjh123 f23d4e61b2 feat: 提取 oxide_builtins 独立 crate,泛型化 <H: VmHost> 2026-06-25 22:38:23 +08:00
pjh123 ddffa8504e refactor: 字符串值改用 JsString 指针表示,键与字面量改用 PermInterner 2026-06-24 20:15:15 +08:00
pjh123 1815958b11 refactor: 清理未使用符号,合并bind_constructor宏,统一init/rebind绑定列表,bind_number改为表驱动 2026-06-24 12:12:44 +08:00
pjh123 246ad72540 refactor: 拆分 Kernel 中可变 Session 与不可变 Core 2026-06-14 12:58:09 +08:00
pjh123 551695bfad refactor: 扁平化对象属性存储并优化常量池与 IC 热路径 2026-06-13 23:59:47 +08:00
pjh123 f07c05315b fix: 修复 call_function_sync 子VM释放导致的 release 崩溃 2026-06-10 17:38:19 +08:00
pjh123 4aaa62812a refactor: 统一调用调度并安全化 IC 缓存 2026-06-10 16:17:35 +08:00
pjh123 f77499e5cd style: 减少自动格式化换行 2026-06-09 00:53:46 +08:00
pjh123 0d5a26592b refactor: 表驱动化直接 builtin 绑定模块 2026-06-09 00:02:08 +08:00
pjh123 6e7f4ed440 refactor: 表驱动化 builtin 绑定与 Number 常量注册 2026-06-09 00:01:31 +08:00
pjh123 10a92c7c8a style: 自动格式化 2026-06-08 20:09:00 +08:00
pjh123 b0c6532e2c feat: 支持 to_string 与错误栈 2026-06-08 14:52:44 +08:00
pjh123 2ae9fab458 refactor: 拆分绑定函数与封装宏以简化模块实现 2026-06-08 07:37:46 +08:00