[pypy-svn] r64912 - pypy/branch/pyjitpl5/pypy/jit/backend/x86
fijal at codespeak.net
fijal at codespeak.net
Fri May 1 04:34:51 CEST 2009
Author: fijal
Date: Fri May 1 04:34:46 2009
New Revision: 64912
Modified:
pypy/branch/pyjitpl5/pypy/jit/backend/x86/assembler.py
Log:
also check when compiled
Modified: pypy/branch/pyjitpl5/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/x86/assembler.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/x86/assembler.py Fri May 1 04:34:46 2009
@@ -677,11 +677,18 @@
if len(oldlocs) != len(newlocs):
# virtualizable mess
return
- if not we_are_translated():
- assert str(oldlocs) == str(newlocs)
+ for i in range(len(oldlocs)):
+ oldloc = oldlocs[i]
+ newloc = newlocs[i]
+ if isinstance(newloc, MODRM):
+ assert isinstance(oldloc, MODRM)
+ assert newloc.position == oldloc.position
+ else:
+ assert newloc is oldloc
# newlocs should be sorted in acending order, excluding the regs
- locs = [loc.position for loc in newlocs if isinstance(loc, MODRM)]
- assert locs == sorted(locs)
+ if not we_are_translated():
+ locs = [loc.position for loc in newlocs if isinstance(loc, MODRM)]
+ assert locs == sorted(locs)
#
if newdepth != olddepth:
mc2 = self.mcstack.next_mc()
More information about the Pypy-commit
mailing list