fix(emit): 顶层模块 param_layout.base 改 0 防父槽误判 + regalloc/VM 诊断日志

This commit is contained in:
爱特每羊队
2026-08-07 17:13:57 +08:00
parent 70536e3e2f
commit accc677769
4 changed files with 43 additions and 3 deletions
+7
View File
@@ -836,6 +836,13 @@ impl Vm {
let global = self.session.global_object();
if let Some(pos) = self.kernel_core.shape_forge().lookup_position(global.shape_id(), si) {
self.regs[*reg as usize] = global.get_prop_at(pos);
} else {
vm_debug!(
"push_frame: builtin '{}' reg={} NOT on global object (stays {})",
name,
reg,
self.regs[*reg as usize]
);
}
}