[pypy-svn] r69482 - pypy/branch/shorter-guard-path/pypy/jit/backend/x86
arigo at codespeak.net
arigo at codespeak.net
Fri Nov 20 19:37:59 CET 2009
Author: arigo
Date: Fri Nov 20 19:37:59 2009
New Revision: 69482
Modified:
pypy/branch/shorter-guard-path/pypy/jit/backend/x86/assembler.py
Log:
Translation fix.
Modified: pypy/branch/shorter-guard-path/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/shorter-guard-path/pypy/jit/backend/x86/assembler.py (original)
+++ pypy/branch/shorter-guard-path/pypy/jit/backend/x86/assembler.py Fri Nov 20 19:37:59 2009
@@ -819,10 +819,11 @@
else:
raise AssertionError("bogus kind")
loc = locs[i]
- if isinstance(loc, REG):
- n = loc.op
- else:
+ if isinstance(loc, MODRM):
n = self.DESCR_FROMSTACK + loc.position
+ else:
+ assert isinstance(loc, REG)
+ n = loc.op
n = kind + 4*n
while n > 0x7F:
mc.writechr((n & 0x7F) | 0x80)
More information about the Pypy-commit
mailing list