Repository navigation
Commit 967bf83
committed
W27b python#3: emitBuildCheckedList → C body + delegation stub
BUILD_CHECKED_LIST (Static Python) opcode handler. Per W27b Step A scope.
C body: hir_builder_emit_build_checked_list_c (~25 lines). Pops descr +
list_size from const_arg tuple, queries preloader type+py_type via
existing bridges, emits make_checked_list_reg, fills operands right-to-left
from stack.
Includes added: cinderx/StaticPython/checked_list.h (Ci_CheckedList_TypeCheck).
Header verified C-safe: Ci_CHECKED_LIST_H guard (unique), no Py_OPCODE_H
collision (theologian L2515 caveat satisfied).
C primitives used: hir_builder_preloader_type + hir_builder_preloader_py_type
+ hir_c_create_make_checked_list_reg + hir_c_set_operand
+ hir_builder_temps_alloc_stack (all existing).
C++ HIRBuilder::emitBuildCheckedList → 3-line delegation stub.
Verification: cmake --build target jit/phoenix_jit clean (BUILD_EXIT=0).1 parent 0c2f903 commit 967bf83
2 files changed
Lines changed: 35 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4258 | 4258 | | |
4259 | 4259 | | |
4260 | 4260 | | |
| 4261 | + | |
| 4262 | + | |
| 4263 | + | |
4261 | 4264 | | |
4262 | 4265 | | |
4263 | 4266 | | |
4264 | | - | |
4265 | | - | |
4266 | | - | |
4267 | | - | |
4268 | | - | |
4269 | | - | |
4270 | | - | |
4271 | | - | |
4272 | | - | |
4273 | | - | |
4274 | | - | |
4275 | | - | |
4276 | | - | |
4277 | | - | |
4278 | | - | |
4279 | | - | |
4280 | | - | |
| 4267 | + | |
4281 | 4268 | | |
4282 | 4269 | | |
4283 | 4270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
3963 | 3965 | | |
3964 | 3966 | | |
3965 | 3967 | | |
| 3968 | + | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
| 3986 | + | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
| 3991 | + | |
| 3992 | + | |
| 3993 | + | |
| 3994 | + | |
| 3995 | + | |
| 3996 | + | |
3966 | 3997 | | |
0 commit comments