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
+2 -1
View File
@@ -381,7 +381,8 @@ impl Vm {
callee,
arguments_obj: JsValue::undefined(),
construct_result_reg: construct.result_reg,
constructed_this: construct.constructed_this,
constructed_this: construct.constructed_this.unwrap_or(JsValue::undefined()),
has_constructed_this: construct.constructed_this.is_some(),
is_derived_constructor: obj.is_derived_constructor(),
super_called: false,
strict: sub_is_strict,