Commit 7971941
committed
Phase 3 Batch 6: temps_ Class B-kept closure (R-single ATOMIC)
Rename hir_builder_temps_alloc_stack to
hir_builder_state_temps_alloc_stack_cpp, aligning with the state-bridge
_cpp suffix convention established in Batches 2/4/5. Decl moved from
the legacy extern "C" block in builder.h to builder_state_c.h
alongside other state bridges. 71 C-side caller sites in
builder_emit_c.c renamed in lockstep (mechanical sed-style;
line-count preserved).
Class B-kept disposition for temps_ (TempAllocator) now CLOSED:
- AllocateStack side: hir_builder_state_temps_alloc_stack_cpp bridge
(renamed) + 71 C-side callers in builder_emit_c.c
- AllocateNonStack + GetOrAllocateStack: stay C++-direct (zero
C-side callers verified pre-Step-A by generalist 00:51:54Z +
theologian 00:53:06Z); per as-needed discipline.
Phase 3 §5 forcing-decision now COMPLETE across all 5 Class B members:
- exception_table_ CLOSED via Batch 2 (push + size + entry + find)
- block_map_ CLOSED via Batch 4 (blocks_lookup_cpp)
- pending_b2_blocks_ DELETED via Batch 3 (dead-state, post-W26 refactor)
- static_method_stack_ CLOSED via Batch 5 (pop_cpp rename)
- temps_ CLOSED via Batch 6 (alloc_stack_cpp rename)
Post-this-commit, theologian will amend spec §5 to declare
"Class B-kept is FINAL disposition for HirBuilder state" per pythia
python#94 (3) cathedral-scaffold concern + supervisor 23:59:54Z + 00:00:42Z
closure-amendment commitment.
Numstat (vs HEAD 782d56d):
Python/jit/hir/builder.cpp +1 -1 (extern "C" decl rename)
Python/jit/hir/builder.h +1 -2 (delete top-of-file
extern; rename friend)
Python/jit/hir/builder_emit_c.c +73 -73 (mechanical sed: 1
extern + 71 callers
+ 1 doc-comment)
Python/jit/hir/builder_state_c.h +14 -0 (NEW decl with §5
closure history doc)
scripts/w45_bridge_drift_falsifier.sh +1 -0 (1 new fixture)
TOTAL: NET +14L (forecast +10L; +4L variance from larger §5 closure
history doc-comment in builder_state_c.h — substantive explanatory
content, not surface-bloat).
W45 fixture: 1 new (state_temps_alloc_stack_cpp) added per shepard
22:46:33Z same-commit discipline. Dry-run: 15/15 fixtures stage
cleanly.
Pre-commit compile-check: testkeeper 00:56:59Z BUILD_EXIT=0,
3-test sanity green (partial_conversions + W22 + W44).
W44 gate: PASS.
§3.5 BUILD MODE required this batch (touched-files heuristic per
supervisor 00:39:20Z amendment — all 4 builder*.{cpp,h,c} files in
scope). To be exercised in testkeeper STRICT VERIFY post-commit.
Authorization: theologian 00:53:06Z (R-single ATOMIC GO + +10L
forecast confirmed; 73-site mechanical rename mitigated by
sed-discipline + per-bench floor + §3.5 BUILD MODE catch any
unintended runtime change) + supervisor 00:53:18Z (Step B GO).1 parent 782d56d commit 7971941
5 files changed
Lines changed: 90 additions & 76 deletions
File tree
- Python/jit/hir
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3163 | 3163 | | |
3164 | 3164 | | |
3165 | 3165 | | |
3166 | | - | |
| 3166 | + | |
3167 | 3167 | | |
3168 | 3168 | | |
3169 | 3169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
182 | | - | |
| 181 | + | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
| |||
0 commit comments