perf: CallFrame 构造 this 判别位并入 bool 组省 8 字节

This commit is contained in:
2026-10-13 08:18:34 +00:00
parent 07d72c00de
commit e154b12126
11 changed files with 71 additions and 36 deletions
+5 -1
View File
@@ -819,7 +819,11 @@ impl Vm {
if let Some(frame) = self.frames.pop() {
self.cell_stack.pop();
let construct_result_reg = frame.construct_result_reg;
let constructed_this = frame.constructed_this;
let constructed_this = if frame.has_constructed_this {
Some(frame.constructed_this)
} else {
None
};
let is_derived_constructor = frame.is_derived_constructor;
let super_called = frame.super_called;
let continuation = frame.continuation;