[pypy-svn] r74105 - pypy/branch/blackhole-improvement/pypy/jit/codewriter

arigo at codespeak.net arigo at codespeak.net
Tue Apr 27 11:40:59 CEST 2010


Author: arigo
Date: Tue Apr 27 11:40:58 2010
New Revision: 74105

Modified:
   pypy/branch/blackhole-improvement/pypy/jit/codewriter/flatten.py
Log:
Uh?  Here I really meant "== ()", and not just "is some empty container".


Modified: pypy/branch/blackhole-improvement/pypy/jit/codewriter/flatten.py
==============================================================================
--- pypy/branch/blackhole-improvement/pypy/jit/codewriter/flatten.py	(original)
+++ pypy/branch/blackhole-improvement/pypy/jit/codewriter/flatten.py	Tue Apr 27 11:40:58 2010
@@ -172,9 +172,10 @@
             self.make_link(block.exits[0])
             self.emitline(Label(block.exits[0]))
             for link in block.exits[1:]:
-                if (link.exitcase is Exception and (not link.target.operations)
+                if (link.exitcase is Exception and link.target.operations == ()
                     and len(link.target.inputargs) == 2):
-                    # default exit-by-exception block
+                    # default exit-by-exception block, if the link is going
+                    # directly to the except block.
                     self.emitline("reraise")
                 else:
                     self.emitline('goto_if_exception_mismatch',



More information about the Pypy-commit mailing list