Commit f4674b6
committed
Bytecode parity - slice augassign, async comp inline
- Augmented assignment with two-part slices uses BINARY_SLICE/STORE_SLICE
- Inline async comprehensions (remove await/async guards)
- Inlined comprehension cleanup jump uses JumpNoInterrupt
- Class firstlineno uses first decorator line when decorated
- Recurse into nested functions for static attribute collection
- Fold unary positive complex constants (+0.0j)
- Add deoptimize_borrow_for_folded_nonliteral_exprs pass
- Add inline_single_predecessor_artificial_expr_exit_blocks pass
- Skip shared artificial expr-stmt exit blocks in small-block inlining
- Mark folded boolop tail as folded_from_nonliteral_expr1 parent 47068d7 commit f4674b6
10 files changed
Lines changed: 838 additions & 139 deletions
File tree
- Lib/test
- test_inspect
- crates
- codegen/src
- vm/src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
512 | | - | |
513 | 511 | | |
514 | 512 | | |
515 | 513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
999 | 999 | | |
1000 | 1000 | | |
1001 | 1001 | | |
1002 | | - | |
1003 | 1002 | | |
1004 | 1003 | | |
1005 | 1004 | | |
| |||
1193 | 1192 | | |
1194 | 1193 | | |
1195 | 1194 | | |
1196 | | - | |
1197 | 1195 | | |
1198 | 1196 | | |
1199 | 1197 | | |
| |||
2495 | 2493 | | |
2496 | 2494 | | |
2497 | 2495 | | |
2498 | | - | |
2499 | 2496 | | |
2500 | 2497 | | |
2501 | 2498 | | |
| |||
2579 | 2576 | | |
2580 | 2577 | | |
2581 | 2578 | | |
2582 | | - | |
2583 | 2579 | | |
2584 | 2580 | | |
2585 | 2581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
1165 | 1164 | | |
1166 | 1165 | | |
1167 | 1166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | 202 | | |
204 | 203 | | |
205 | 204 | | |
| |||
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | | - | |
218 | 216 | | |
219 | 217 | | |
220 | 218 | | |
| |||
634 | 632 | | |
635 | 633 | | |
636 | 634 | | |
637 | | - | |
638 | 635 | | |
639 | 636 | | |
640 | 637 | | |
| |||
0 commit comments