[pypy-svn] r52078 - pypy/branch/jit-refactoring/pypy/jit/rainbow

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Mar 3 00:24:46 CET 2008


Author: cfbolz
Date: Mon Mar  3 00:24:44 2008
New Revision: 52078

Modified:
   pypy/branch/jit-refactoring/pypy/jit/rainbow/portal.py
Log:
use recloseblocks instead of setting the exits manually


Modified: pypy/branch/jit-refactoring/pypy/jit/rainbow/portal.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/rainbow/portal.py	(original)
+++ pypy/branch/jit-refactoring/pypy/jit/rainbow/portal.py	Mon Mar  3 00:24:44 2008
@@ -107,7 +107,8 @@
         block.operations[:] = [
             flowmodel.SpaceOperation("direct_call", args, result)]
         block.exitswitch = None
-        block.exits = [flowmodel.Link([result], self.origportalgraph.returnblock)]
+        block.recloseblock(
+            flowmodel.Link([result], self.origportalgraph.returnblock))
         self.origportalgraph.exceptblock = None
 
     def getportalargdesc(self, lowleveltype):



More information about the Pypy-commit mailing list