mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-27 04:01:11 +08:00
perf: upvalue 读取缓存 callee 切片指针省解引用链
This commit is contained in:
@@ -317,6 +317,8 @@ impl Vm {
|
||||
strict: sub_is_strict,
|
||||
continuation,
|
||||
});
|
||||
// 压帧后 callee 换为被调函数:失效 upvalue 切片缓存。
|
||||
self.upvalue_cache = None;
|
||||
|
||||
self.pc = 0;
|
||||
self.bytecode = sub_bytecode;
|
||||
|
||||
Reference in New Issue
Block a user