chore(dbg): 形参注册与 pre-scan 之间补 p1c 探针(TEMP)
add_var 三次全过(esz=56),崩点在其后。p1c 夹出 L700-763(状态保存)与 L765-775(pre-scan)两段。
This commit is contained in:
1 parent
07ff906338
commit
054dcf0a0b
1 file changed
+2
-1
@@ -760,7 +760,8 @@ novirtual class FuncGenDef(CallGenBase.CallGenBase):
|
||||
GenApi.clear_scope_names(trans)
|
||||
# Reset the in-chain nonlocal heap prebuild flag (built once per function; multiple nested function definitions
|
||||
# share one heap, preventing repeated malloc + double VarEntry redirection).
|
||||
trans._nl_chain_done = 0
|
||||
trans._nl_chain_done = 0
|
||||
VLogger.info("TR.p1c.state.saved", "TR")
|
||||
|
||||
# Pre-scan the body: 1) Global/Nonlocal declarations first (Python semantics: they apply to the whole function
|
||||
# scope regardless of position, so register before any assignment); 2) AnnAssign to create local allocas early.
|
||||
|
||||
Reference in new issue
Block a user