Commit Graph

29 Commits

Author SHA1 Message Date
pjh123 31e28a03a6 docs: 补充注释与格式化 2026-08-06 23:10:27 +08:00
pjh123 263fd255b6 docs: 添加 Rustdoc 注释 2026-08-05 21:46:47 +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 b18654fe5f feat: Symbol.hasInstance 支持 instanceof 双路径分派 2026-06-27 22:53:04 +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 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 2d166cbfa5 fix: 修复全局边界安全与内存稳定性问题 2026-06-22 19:43:00 +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 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 551695bfad refactor: 扁平化对象属性存储并优化常量池与 IC 热路径 2026-06-13 23:59:47 +08:00
pjh123 1a7a5b2cbc feat: 添加 Kernel 与 VM 分层结构化日志 2026-06-13 18:59:41 +08:00
pjh123 f77499e5cd style: 减少自动格式化换行 2026-06-09 00:53:46 +08:00
pjh123 997e64ff61 fix: 将 VM 步数上限改为 KernelConfig 可配置项 2026-06-08 21:46:08 +08:00
pjh123 ab1a9b7a3c feat: 支持 Infinity 常量 2026-06-07 23:11:26 +08:00
pjh123 92bf2e68fb fix: 配置限制递归层数解决死循环问题 2026-06-07 19:27:48 +08:00
pjh123 f725d81b36 refactor: 哈希表存储属性以支持无上限属性个数 2026-06-07 15:25:47 +08:00
pjh123 439b61e359 feat: 搭建原生函数基础设施 2026-06-07 01:07:45 +08:00
pjh123 efbecd62ca refactor: StringForge 规范化类型命名 2026-06-05 23:24:07 +08:00
pjh123 7b862023a7 refactor: 将基础类型定义放在单独 crate 以解决循环依赖 2026-06-05 22:50:06 +08:00
pjh123 fecdd981f9 feat: 添加全局 VM 池与 RAII 泄漏保护 2026-06-05 22:25:22 +08:00
pjh123 20469c175c feat: 实现全局单例缓存管理内核 2026-06-05 22:15:59 +08:00