7 Commits

Author SHA1 Message Date
pjh123 4f9b6ab444 refactor: 动态编译改经 CompilerService 注入,oxide_vm 去编译器依赖 2026-10-08 05:51:58 +00:00
pjh123 3169e8f2f9 perf: run 签名改 &Arc<CompiledModule>,顶层模块跨 run 共享——collect_flat_modules 顶层改 Arc::clone 消除逐 run 常量池深拷贝,全调用点 Arc 包装迁移 2026-09-11 22:19:13 +00:00
pjh123 78976cad0c feat: 二元幂运算 opcode 支持 number 与 BigInt
- 新增 EXP opcode(0x94)与 emit 层 Exponential 分支,二元 a ** b 不再 compile error
- dispatch_exp 与 dispatch_compound_exp 共享 exp_result:IEEE-754 powf 快路径 +
  BigInt 幂(负/超 u32 指数 RangeError)+ 混合 BigInt/Number TypeError
- 复合 **= 补 BigInt 语义(此前走 f64 近似),与二元 ** 行为一致
2026-08-15 21:17:49 +08:00
pjh123 5fbc0ccda5 fix: f64 转字符串 ryu 路径负数改追加防破坏非空缓冲前缀 2026-08-15 17:35:27 +08:00
pjh123 d07dbf4537 feat: 支持位运算字节码与 ToInt32/ToUint32 2026-06-09 14:42:58 +08:00
pjh123 8c3f4aabe6 feat: 支持复合运算符 2026-06-06 20:20:05 +08:00
pjh123 ebb169a63b test: 拆分 VM 测试并新增多项测试 2026-06-06 15:41:28 +08:00