summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-04-22 06:49:11 +0000
committerRaymond Hettinger <python@rcn.com>2003-04-22 06:49:11 +0000
commit559061965b3f79aa08fdece81bd40e93353dc390 (patch)
treeae5ec9f415b04bc130cd76fe7cf2fc0437bcbe6a /Python/pythonrun.c
parent6eabb997182e86ccf04b3196ceb282b0e40bde46 (diff)
downloadcpython-559061965b3f79aa08fdece81bd40e93353dc390.tar.gz
Improved the bytecode optimizer.
* Can now test for basic blocks. * Optimize inverted comparisions. * Optimize unary_not followed by a conditional jump. * Added a new opcode, NOP, to keep code size constant. * Applied NOP to previous transformations where appropriate. Note, the NOP would not be necessary if other functions were added to re-target jump addresses and update the co_lnotab mapping. That would yield slightly faster and cleaner bytecode at the expense of optimizer simplicity and of keeping it decoupled from the line-numbering structure.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions