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
+4 -3
View File
@@ -191,8 +191,8 @@ impl SuspendedFrame {
f(frame.saved_new_target);
f(frame.callee);
f(frame.arguments_obj);
if let Some(ct) = frame.constructed_this {
f(ct);
if frame.has_constructed_this {
f(frame.constructed_this);
}
}
for v in &self.spill_stack {
@@ -307,7 +307,8 @@ mod tests {
callee: tag,
arguments_obj: JsValue::undefined(),
construct_result_reg: None,
constructed_this: Some(tag),
constructed_this: tag,
has_constructed_this: true,
is_derived_constructor: false,
super_called: false,
strict: false,