Repository navigation
Commit 4f2b39d
committed
Batch 1 python#2: emitGetYieldFromIter PARTIAL→STUB
Per supervisor L2565 + theologian L2569 ACK. Reduces C++ stub from
9 lines to 5 lines (now ≤8, qualifies as STUB).
Strategy: move PY_VERSION_HEX cinderx coroType extraction from C++ stub
into C body via existing cinderx_get_module_state_coro_type_c bridge
(originally added at builder.cpp:4640+ for emitGetAwaitable). The bridge
is already C-callable; C body now fetches inline + passes NULL pre-3.12
via in-C #if PY_VERSION_HEX guard.
C body grew by 8 lines (extern decl + version-conditional fetch);
C++ stub shrank by 4 lines (PY_VERSION_HEX block removed).
Verification: cmake --build target jit/phoenix_jit clean (BUILD_EXIT=0).
Pure-C++ count unchanged (still 0); PARTIAL count drops 10→9.1 parent a82d02c commit 4f2b39d
2 files changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4302 | 4302 | | |
4303 | 4303 | | |
4304 | 4304 | | |
4305 | | - | |
| 4305 | + | |
4306 | 4306 | | |
4307 | 4307 | | |
4308 | | - | |
4309 | | - | |
4310 | | - | |
4311 | | - | |
4312 | 4308 | | |
4313 | 4309 | | |
4314 | 4310 | | |
4315 | | - | |
4316 | 4311 | | |
4317 | 4312 | | |
4318 | 4313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4334 | 4334 | | |
4335 | 4335 | | |
4336 | 4336 | | |
| 4337 | + | |
| 4338 | + | |
4337 | 4339 | | |
4338 | 4340 | | |
4339 | 4341 | | |
4340 | 4342 | | |
4341 | 4343 | | |
4342 | | - | |
4343 | 4344 | | |
4344 | 4345 | | |
4345 | 4346 | | |
4346 | 4347 | | |
4347 | 4348 | | |
4348 | 4349 | | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
| 4357 | + | |
4349 | 4358 | | |
4350 | 4359 | | |
4351 | 4360 | | |
| |||
0 commit comments