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

arigo at codespeak.net arigo at codespeak.net
Mon Feb 25 21:53:02 CET 2008


Author: arigo
Date: Mon Feb 25 21:52:54 2008
New Revision: 51864

Modified:
   pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py
Log:
dump.py is a bit fragile: register_redvar() should
be called exactly after all arguments for the current
operation have been emitted, and before the next
operation or label starts...


Modified: pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py	(original)
+++ pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py	Mon Feb 25 21:52:54 2008
@@ -705,8 +705,8 @@
         else:
             XXX
 
-        self.emit(label(("after indirect call", op)))
         self.register_redvar(op.result)
+        self.emit(label(("after indirect call", op)))
 
     def handle_oopspec_call(self, op, withexc):
         from pypy.jit.timeshifter.oop import Index



More information about the Pypy-commit mailing list