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
+1 -1
View File
@@ -1646,7 +1646,7 @@ mod tests {
// NEW 帧契约:构造结果寄存器与 constructed_this 随帧携带
assert_eq!(frame.construct_result_reg, Some(0), "构造结果写回 regs[0]");
assert!(
frame.constructed_this.is_some_and(|v| v.is_object()),
frame.has_constructed_this && frame.constructed_this.is_object(),
"基类构造路径 constructed_this 应为新对象"
);
assert!(!frame.is_derived_constructor, "普通函数非 derived 构造器");