summaryrefslogtreecommitdiff
path: root/Python/peephole.c
AgeCommit message (Collapse)AuthorLines
2016-05-26Issue #27076: Doc, comment and test function name spelling fixesMartin Panter-1/+1
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2015-02-16Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka-3/+5
overflows. Added few missed PyErr_NoMemory().
2012-11-05#5057: the peepholer no longer optimizes subscription on unicode literals ↵Ezio Melotti-20/+7
(e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds.
2012-07-20Fix whitespaceRaymond Hettinger-20/+16
2012-05-20Issue #8767: Restore building with --disable-unicode.Martin v. Löwis-0/+2
Original patch by Stefano Taschini.
2011-04-15Issue #5057: fix a bug in the peepholer that led to non-portable pyc files ↵Ezio Melotti-0/+18
between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. u"\U00012345"[0]).
2010-05-09Untabify C files. Will watch buildbots.Antoine Pitrou-552/+552
2009-06-29Fix error handling in PyCode_Optimize, by Alexander Schremmer at EuroPython ↵Georg Brandl-6/+9
sprint.
2009-05-26teach the peepholer about SETUP_WITHBenjamin Peterson-0/+3
2009-02-28Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} withJeffrey Yasskin-35/+61
POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing a POP_TOP on each conditional and sometimes allows the peephole optimizer to skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly.
2008-06-09This reverts r63675 based on the discussion in this thread:Gregory P. Smith-8/+8
http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
2008-05-26Renamed PyString to PyBytesChristian Heimes-8/+8
2008-03-25Try to fix a bunch of compiler warnings on Win64.Neal Norwitz-2/+2
2008-02-25Fix indentationNeal Norwitz-1/+1
2007-06-09Use macro version of GET_SIZE to avoid Coverity warning (#150) about a ↵Neal Norwitz-1/+1
possible error.
2007-03-02Fix embarrassing typo and fix constantification of NoneRaymond Hettinger-6/+10
2006-10-14Update the peephole optimizer to remove more dead code (jumps after returns)Neal Norwitz-4/+15
and inline jumps to returns.
2006-08-21Move peephole optimizer to separate file.Jeremy Hylton-0/+615