polfg
717b3d7d9c
Fix SWAP_A as a real stack swap (chained comparisons, starred unpack)
...
SWAP_A was modelled only as tuple-unpack construction, corrupting the stack
for the 3.11 chained-comparison idiom (SWAP n; COPY n). Implement it as a
genuine stack swap via FastStack::swap.
Harness: +17 files (decompilation target: 212→224, stdlib corpus 13->18), 0 regressions.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 11:43:44 +02:00
Michael Hansen
e64ea4bdec
Merge branch 'master' into new-opcodes
2025-07-02 07:56:28 -07:00
Sahil Jain
3afcfbc6a7
Fix compilation error
2025-07-01 14:01:05 +05:30
Sahil Jain
5fe61462a2
Support COPY opcde
2025-07-01 09:25:49 +05:30
Sahil Jain
a93fd14672
Add new loop tests
2025-07-01 09:22:57 +05:30
Nenad Čaklović
46affe279c
Support for conditonal expression (if-expression)
2022-03-29 12:30:06 +02:00
Michael Hansen
96b5dd1d02
Modernize and simplify FastStack with a vector.
2019-10-09 15:39:37 -07:00
Michael Hansen
b9dd99d518
Don't create special objects for NULL, just use NULL directly.
...
Also move null check into PycRef for nullable references.
2017-07-05 16:36:04 -07:00
Michael Hansen
fb785b5dc8
Slightly more consistent formatting
2011-09-18 23:55:27 -07:00
Darryl Pogue
ed1fefc205
Resize the stack if necessary when pushing.
...
This fixes a bunch of valgrind warnings and crashes.
2011-09-18 21:02:10 -07:00
Darryl Pogue
3be27b5c96
Add slices and prepare for more try/except stuff.
2011-01-04 13:52:15 -08:00
Darryl Pogue
f129c2cc63
Thanks to Yootay and branan for figuring out why FastStack crashed.
2010-12-30 22:35:16 -08:00
Darryl Pogue
b25baeaf4f
Try to clean up the FastStack issues.
2010-12-30 16:48:59 -08:00
Darryl Pogue
c6962d9f48
Fixes for Python 2.6
2010-12-18 22:18:32 -08:00
Michael Hansen
b89ae8b2ac
A little bit of code support now
2009-07-26 10:07:13 +00:00