[pypy-svn] r64880 - pypy/branch/pyjitpl5/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Thu Apr 30 20:36:48 CEST 2009


Author: fijal
Date: Thu Apr 30 20:36:37 2009
New Revision: 64880

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/codewriter.py
Log:
write down a portal graph under other name. This way we have no PyFrame.dispatch
overwritten


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/codewriter.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/codewriter.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/codewriter.py	Thu Apr 30 20:36:37 2009
@@ -295,7 +295,11 @@
         else:
             print repr(self.bytecode)
             dir = udir.ensure("jitcodes", dir=1)
-            self.bytecode.dump(open(str(dir.join(self.bytecode.name)), "w"))
+            if self.portal:
+                name = "portal_runner"
+            else:
+                name = self.bytecode.name
+            self.bytecode.dump(open(str(dir.join(name)), "w"))
 
     def const_position(self, constvalue):
         """Generate a constant of the given value.



More information about the Pypy-commit mailing list