[pypy-svn] r67934 - pypy/branch/refactor-x86/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Mon Sep 28 16:06:23 CEST 2009


Author: fijal
Date: Mon Sep 28 16:06:21 2009
New Revision: 67934

Modified:
   pypy/branch/refactor-x86/pypy/jit/backend/x86/regalloc.py
Log:
Use register manager here. armin, please write a comment why
it's a hack


Modified: pypy/branch/refactor-x86/pypy/jit/backend/x86/regalloc.py
==============================================================================
--- pypy/branch/refactor-x86/pypy/jit/backend/x86/regalloc.py	(original)
+++ pypy/branch/refactor-x86/pypy/jit/backend/x86/regalloc.py	Mon Sep 28 16:06:21 2009
@@ -428,9 +428,9 @@
         arglocs = [self.loc(arg) for arg in op.args]
         # add eax, ecx and edx as extra "arguments" to ensure they are
         # saved and restored.
-        for v, reg in self.reg_bindings.items():
+        for v, reg in self.rm.reg_bindings.items():
             if ((reg is eax or reg is ecx or reg is edx)
-                and self.longevity[v][1] > self.position
+                and self.rm.longevity[v][1] > self.rm.position
                 and reg not in arglocs[3:]):
                 arglocs.append(reg)
         self.PerformDiscard(op, arglocs)



More information about the Pypy-commit mailing list