perf: upvalue 读取缓存 callee 切片指针省解引用链

This commit is contained in:
2026-09-26 20:30:53 +00:00
parent bf19cf112b
commit 717960a9e8
7 changed files with 59 additions and 19 deletions
+2
View File
@@ -317,6 +317,8 @@ impl Vm {
strict: sub_is_strict,
continuation,
});
// 压帧后 callee 换为被调函数:失效 upvalue 切片缓存。
self.upvalue_cache = None;
self.pc = 0;
self.bytecode = sub_bytecode;