pjh123
|
3169e8f2f9
|
perf: run 签名改 &Arc<CompiledModule>,顶层模块跨 run 共享——collect_flat_modules 顶层改 Arc::clone 消除逐 run 常量池深拷贝,全调用点 Arc 包装迁移
|
2026-09-11 22:19:13 +00:00 |
|
pjh123
|
fe8892079e
|
chore: 全仓 rustfmt 格式化归拢
|
2026-08-16 12:50:36 +08:00 |
|
pjh123
|
c052f5a619
|
feat: Function.prototype[Symbol.hasInstance] 绑定与 bound 函数构造语义
@@hasInstance 按 OrdinaryHasInstance 实现(非可调用 this 返回 false、
prototype 非对象抛 TypeError、bound 链递归到最内层 target);
new boundFn() 解包 [[BoundTargetFunction]] 链后转发构造:绑定实参前置、
新对象原型取 target.prototype、new.target 替换为最内层 target。
|
2026-08-15 22:40:45 +08:00 |
|
pjh123
|
cec7d04b86
|
fix: Function.prototype.apply 解除实参上限,native 大实参集走 spill 溢出区
apply 曾把实参数组静默截断到 55 个(寄存器窗口限制),导致
String.fromCodePoint.apply(null, codePoints) 这类大参数集调用只取前 55 个。
改为直接物化全部实参经 TailCall 下发:字节码目标走帧参数区(spill 栈)任意
个数;native 目标新增 spill 溢出区通道,寄存器窗口(253)之外的实参转存
spill 栈(GC 根、嵌套安全),builtin 经 VmHost::native_arg_count/native_arg_at
读取,String.fromCodePoint 迁移为新接口。大实参集不再静默截断。
|
2026-08-15 20:31:32 +08:00 |
|
pjh123
|
33db6dad9c
|
test: 数值断言容忍 int 表示,类私有字段 for-in 用例补公有字段
|
2026-08-14 06:14:38 +08:00 |
|
pjh123
|
31e28a03a6
|
docs: 补充注释与格式化
|
2026-08-06 23:10:27 +08:00 |
|
pjh123
|
ddffa8504e
|
refactor: 字符串值改用 JsString 指针表示,键与字面量改用 PermInterner
|
2026-06-24 20:15:15 +08:00 |
|
pjh123
|
111c61d4d7
|
style: 自动格式化
|
2026-06-14 17:21:49 +08:00 |
|
pjh123
|
246ad72540
|
refactor: 拆分 Kernel 中可变 Session 与不可变 Core
|
2026-06-14 12:58:09 +08:00 |
|
pjh123
|
f07c05315b
|
fix: 修复 call_function_sync 子VM释放导致的 release 崩溃
|
2026-06-10 17:38:19 +08:00 |
|
pjh123
|
06c313e802
|
fix: 绑定 Function 和 Object prototype harness helper
|
2026-06-09 19:31:46 +08:00 |
|
pjh123
|
a6982bdf56
|
fix: 修复 Function call/apply/bind 调用非原生函数问题
|
2026-06-09 19:12:14 +08:00 |
|
pjh123
|
ff6853face
|
feat: 注入 harness 并补齐关键全局内建
|
2026-06-09 17:08:10 +08:00 |
|
pjh123
|
f77499e5cd
|
style: 减少自动格式化换行
|
2026-06-09 00:53:46 +08:00 |
|
pjh123
|
343d5ffb5f
|
fix: 修复测试悬空引用与 this 误转字符串问题
|
2026-06-09 00:40:01 +08:00 |
|
pjh123
|
b0c6532e2c
|
feat: 支持 to_string 与错误栈
|
2026-06-08 14:52:44 +08:00 |
|
pjh123
|
094675d0bc
|
feat: 支持内建函数调用并修复初始化与绑定问题
|
2026-06-07 11:32:25 +08:00 |
|