Commit Graph

97 Commits

Author SHA1 Message Date
pjh123 62991cfa4b feat: 新增 Symbol.species well-known symbol 绑定(Symbol.species 解析/键槽/内建对象) 2026-08-12 12:50:53 +08:00
pjh123 c287708ddc feat: 补 entries/keys/findLastIndex/toSorted/toReversed/toSpliced/with 2026-08-12 03:42:42 +08:00
pjh123 aa51d57660 feat: BigInt 构造器 ToPrimitive 语义、toString(radix)、asIntN/asUintN 2026-08-12 02:23:27 +08:00
pjh123 66712e05a5 feat: Temporal PlainDateTime 基础实现 2026-08-11 21:32:15 +08:00
pjh123 90a162d39a feat: Temporal Instant 时区转换 2026-08-11 20:54:25 +08:00
pjh123 b9686e000d feat: Temporal 时长差值与纯日期差值 2026-08-11 12:38:31 +08:00
pjh123 078688070d feat: 实现最小 BigInt 子集(字面量/算术/比较/构造器,Temporal 前置) 2026-08-10 23:02:31 +08:00
pjh123 924b8fd4e0 feat: Temporal 最小子集(Temporal.Now/Instant/PlainDate/PlainTime) 2026-08-10 18:18:39 +08:00
pjh123 a5a910a24e feat: for-await-of + Symbol.asyncIterator + AsyncFromSyncIterator 2026-08-10 03:21:37 +08:00
pjh123 cd1bc206a5 fix: symbol 作属性键独立编码,不再塌缩为空串 2026-08-09 16:09:49 +08:00
pjh123 2bebd822d0 feat: TypedArray 第一批解锁(%TypedArray% 构造器、原型访问器、of/from、bind 绑参、harness) 2026-08-09 12:26:31 +08:00
pjh123 6c79dbb21c feat: class 私有成员语义(字段/方法/访问器 + brand 检查 + 契约修复) 2026-08-09 11:08:36 +08:00
pjh123 826d9fd0a2 feat: RegExp.prototype 实现 Symbol.match/replace/search/split/matchAll 2026-08-08 22:33:32 +08:00
pjh123 71c9f78338 feat: 补 String.fromCodePoint/codePointAt/isWellFormed/toWellFormed 2026-08-08 20:05:49 +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 31e28a03a6 docs: 补充注释与格式化 2026-08-06 23:10:27 +08:00
pjh123 263fd255b6 docs: 添加 Rustdoc 注释 2026-08-05 21:46:47 +08:00
pjh123 2f7fe3cedf fix: 修复不符合 JS 语义约束的错误行为测试 2026-08-05 15:44:22 +08:00
pjh123 168ef93079 perf: Shape 加 depth 字段 + positions 反向索引,lookup_position 首次写入缓存后 O(1) 2026-06-30 23:28:35 +08:00
pjh123 9f3e353f56 style: 自动格式化 2026-06-30 15:11:11 +08:00
pjh123 da75f3a214 perf: 字符串拼接用 push_to_string 消去中间分配, GC阈值 8M→32M
- oxide_runtime_api 新增 push_to_string: 直接将 JsValue 写入 String buffer
- dispatch_add / dispatch_compound_add 复用 Vm::string_buf, 每次concat从4次分配降到1次
- vm_support 新增 new_string_owned 接受 String 转移所有权
- kernel session_gc_threshold 8MB→32MB 减少频繁 GC
- build.sh: make clean 清跨平台 .obj 残留

(cherry picked from commit ad7b044a5a24b23819d783c5419d3e33f936dfc5)
2026-06-30 12:42:57 +08:00
pjh123 22aae05749 fix: Function .length/.name 补 writable:false、enumerable:false 描述符属性 2026-06-30 12:42:57 +08:00
pjh123 fab4b2d237 perf: indexOf/includes/lastIndexOf 支持 ArrayLike,补 .name/.length 属性
- Array indexOf/includes/lastIndexOf:ArrayLike 接收者 + fromIndex + SameValueZero
- Function.prototype 方法补 .length 属性,经 bind_method_static 绑定
- Error 对象补 .name 属性,经 create_kind_error 生成
- 构造器函数补 .name 与 .length,经 make_pair / bind_constructor! 绑定
2026-06-30 12:42:57 +08:00
pjh123 b18654fe5f feat: Symbol.hasInstance 支持 instanceof 双路径分派 2026-06-27 22:53:04 +08:00
pjh123 365b0e58f6 fix: Error原型属性、规范toString、V8风格stack trace 2026-06-27 20:13:17 +08:00
pjh123 0b3668d91a fix: 修复 String 原型方法边界条件 2026-06-27 19:45:18 +08:00
pjh123 2da5e2f820 feat: 注册 Symbol.toPrimitive well-known symbol 2026-06-27 10:30:25 +08:00
pjh123 fc59505116 feat: 为内核构造、BuiltinWorld 初始化、ShapeForge/StringForge/CodeForge 添加结构化日志 2026-06-26 21:09:36 +08:00
pjh123 e4abfd7599 refactor: 迁出日志宏,移除直接依赖 2026-06-26 18:53:48 +08:00
pjh123 f0f7cbc91c refactor: 将 BuiltinSnapshot 重构为数组并引入 BuiltinId 枚举 2026-06-26 16:27:49 +08:00
pjh123 149daa6e4f feat: 为 ShapeForge 添加 shape_id 溢出 guard 及 HashMap 回退 2026-06-26 16:16:17 +08:00
pjh123 ddffa8504e refactor: 字符串值改用 JsString 指针表示,键与字面量改用 PermInterner 2026-06-24 20:15:15 +08:00
pjh123 bb4ce39e50 feat: CodeForge 改用有界 Mutex<LruCache>,KernelConfig 新增 max_cached_modules 2026-06-24 16:17:40 +08:00
pjh123 1815958b11 refactor: 清理未使用符号,合并bind_constructor宏,统一init/rebind绑定列表,bind_number改为表驱动 2026-06-24 12:12:44 +08:00
pjh123 be87e4e21b refactor: 拆分 bytecode/cache crate 并模块化 counter 2026-06-23 17:06:39 +08:00
pjh123 2d166cbfa5 fix: 修复全局边界安全与内存稳定性问题 2026-06-22 19:43:00 +08:00
pjh123 f7834df245 fix: 修复数组回调与原始值属性访问 2026-06-17 12:59:11 +08:00
pjh123 6a99209af8 fix: 修复 Map/Set GC 追踪与 CodeForge 缓存键 2026-06-17 09:38:48 +08:00
pjh123 a074636619 feat: 支持 class 私有字段与品牌检查 2026-06-17 08:56:58 +08:00
pjh123 862e8585f8 feat: 添加 session arena 标记清扫 GC 2026-06-16 23:09:36 +08:00
pjh123 fec34de2a5 feat: 添加 BuiltinWorld 选择性重建 2026-06-15 21:11:53 +08:00
pjh123 976482ee30 feat: 添加 BuiltinSnapshot 脏检测 2026-06-15 21:02:33 +08:00
pjh123 391566ba5b feat: 实现for-of与解构赋值 2026-06-14 23:45:12 +08:00
pjh123 c173dac0c1 feat: 添加 TypedArray 全局构造器 2026-06-14 19:57:11 +08:00
pjh123 00074f2270 feat: 添加 DataView 全局构造器 2026-06-14 19:07:06 +08:00
pjh123 b8f40b6251 feat: 添加 ArrayBuffer 全局构造器 2026-06-14 18:49:03 +08:00
pjh123 111c61d4d7 style: 自动格式化 2026-06-14 17:21:49 +08:00
pjh123 8a8a6e055c feat: 绑定全局 escape/unescape 与缺失全局桩函数 2026-06-14 17:21:38 +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