Commit 301d58b
Address review: remove _PyUop_Uncached from is_terminator
is_terminator() is only called before stack_allocate, where opcodes
are always base opcodes. Use the raw opcode directly with an assert.
In sanity_check (which sees replicated opcodes post-stack_allocate),
inline the terminator check using the already-computed base_opcode.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent fa87839 commit 301d58b
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
| 604 | + | |
| 605 | + | |
608 | 606 | | |
609 | 607 | | |
610 | 608 | | |
| |||
1348 | 1346 | | |
1349 | 1347 | | |
1350 | 1348 | | |
1351 | | - | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
1352 | 1353 | | |
1353 | 1354 | | |
1354 | 1355 | | |
| |||
0 commit comments