[pypy-svn] r63637 - pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Sat Apr 4 23:47:55 CEST 2009


Author: fijal
Date: Sat Apr  4 23:47:54 2009
New Revision: 63637

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py
Log:
"bugfix" for virtualizables - that's all wrong, but it's easy to fix


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py	Sat Apr  4 23:47:54 2009
@@ -527,6 +527,9 @@
         #                                                locs, stacklocs)
 
     def patch_jump(self, old_pos, new_pos, oldlocs, newlocs):
+        if len(oldlocs) != len(newlocs):
+            # virtualizable mess
+            return
         if not we_are_translated():
             assert str(oldlocs) == str(newlocs)
         mc = codebuf.InMemoryCodeBuilder(old_pos, MachineCodeStack.MC_SIZE)



More information about the Pypy-commit mailing list