Commit 782d56d
committed
Phase 3 Batch 5: static_method_stack_ Class B-kept closure (P-strict)
Rename hir_builder_static_method_stack_pop_c to
hir_builder_state_static_method_stack_pop_cpp, aligning with the
state-bridge _cpp suffix convention established in Batch 2 (Phase 3
exception_table_) and Batch 4 (block_map_). Decl moved from the legacy
extern "C" block in builder.h to builder_state_c.h alongside other
state bridges.
Class B-kept disposition for static_method_stack_ (jit::Stack<Register*>)
now 100% closed:
- Pop side: hir_builder_state_static_method_stack_pop_cpp bridge (renamed)
+ 1 C-side caller in builder_emit_c.c (emitInvokeMethod static-typed
branch)
- Push side: stays C++-direct from C++ method context
(builder.cpp:3449); no C-side push-caller materialized, push_cpp
bridge deferred per as-needed discipline (theologian 00:28:34Z +
supervisor 00:28:51Z, Batch 4 precedent).
ZERO new bridges (pure rename). NO opaque pointer added to
PhxHirBuilderState (Class B-kept per Batch 4 precedent: bridge available,
struct doc-comment notes "in spirit"; subsequent Phase 3 closure
amendment per pythia python#94 (3) will explicitly declare keep-bias as
final HirBuilder state disposition).
Numstat (vs HEAD eb3cdf3):
Python/jit/hir/builder.cpp +1 -1 (extern "C" decl rename)
Python/jit/hir/builder.h +1 -2 (delete legacy extern;
rename friend)
Python/jit/hir/builder_emit_c.c +3 -3 (extern + 1 caller +
1 doc-comment rename)
Python/jit/hir/builder_state_c.h +9 -0 (NEW decl with state-
bridge naming + history)
scripts/w45_bridge_drift_falsifier.sh +1 -0 (1 new fixture)
TOTAL: NET +9L (forecast +10L; -1L variance, ~10%, under threshold).
W45 fixture: 1 new (state_static_method_stack_pop_cpp) added per
shepard 22:46:33Z same-commit discipline. Dry-run: 14/14 fixtures
stage cleanly.
Pre-commit compile-check: testkeeper 00:33:26Z BUILD_EXIT=0,
3-test sanity green (partial_conversions + W22 + W44).
W44 gate: PASS.
Authorization: theologian 00:28:34Z (P-strict over P-pre-emptive
per as-needed consistency) + supervisor 00:28:51Z (DISPOSITION GO
P-strict).1 parent eb3cdf3 commit 782d56d
5 files changed
Lines changed: 15 additions & 6 deletions
File tree
- Python/jit/hir
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3494 | 3494 | | |
3495 | 3495 | | |
3496 | 3496 | | |
3497 | | - | |
| 3497 | + | |
3498 | 3498 | | |
3499 | 3499 | | |
3500 | 3500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
193 | | - | |
| 192 | + | |
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2549 | 2549 | | |
2550 | 2550 | | |
2551 | 2551 | | |
2552 | | - | |
| 2552 | + | |
2553 | 2553 | | |
2554 | 2554 | | |
2555 | 2555 | | |
| |||
2558 | 2558 | | |
2559 | 2559 | | |
2560 | 2560 | | |
2561 | | - | |
| 2561 | + | |
2562 | 2562 | | |
2563 | 2563 | | |
2564 | 2564 | | |
| |||
2589 | 2589 | | |
2590 | 2590 | | |
2591 | 2591 | | |
2592 | | - | |
| 2592 | + | |
2593 | 2593 | | |
2594 | 2594 | | |
2595 | 2595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
101 | 110 | | |
102 | 111 | | |
103 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
0 commit comments