[pypy-svn] r60890 - pypy/branch/oo-jit/pypy/jit/codegen/i386
fijal at codespeak.net
fijal at codespeak.net
Sun Jan 11 14:04:30 CET 2009
Author: fijal
Date: Sun Jan 11 14:04:28 2009
New Revision: 60890
Modified:
pypy/branch/oo-jit/pypy/jit/codegen/i386/ri386.py
Log:
A tiny fix for prebuilt imms
Modified: pypy/branch/oo-jit/pypy/jit/codegen/i386/ri386.py
==============================================================================
--- pypy/branch/oo-jit/pypy/jit/codegen/i386/ri386.py (original)
+++ pypy/branch/oo-jit/pypy/jit/codegen/i386/ri386.py Sun Jan 11 14:04:28 2009
@@ -1,5 +1,5 @@
from pypy.rlib.rarithmetic import intmask
-
+from pypy.rlib.objectmodel import ComputedIntSymbolic
class OPERAND(object):
_attrs_ = []
@@ -244,6 +244,9 @@
rel32 = REL32
def imm(value):
+ if isinstance(value, ComputedIntSymbolic):
+ value = value.compute_fn()
+ assert isinstance(value, int)
if single_byte(value):
return imm8(value)
else:
More information about the Pypy-commit
mailing list