refactor: 字符串值改用 JsString 指针表示,键与字面量改用 PermInterner

This commit is contained in:
爱特每羊队
2026-06-24 20:15:15 +08:00
parent 0de33f1a16
commit 466a0815ca
73 changed files with 768 additions and 860 deletions
@@ -21,10 +21,7 @@ fn eval_with_vm(source: &str) -> (Vm, Result<JsValue, String>) {
}
fn str_val(vm: &Vm, val: JsValue) -> String {
vm.kernel_core()
.string_forge()
.lookup(val.as_string_index())
.unwrap_or_default()
vm.lookup_str(val).unwrap_or_default()
}
#[test]