[pypy-svn] r74928 - pypy/branch/blackhole-improvement/pypy/jit/codewriter

arigo at codespeak.net arigo at codespeak.net
Sun May 30 19:26:21 CEST 2010


Author: arigo
Date: Sun May 30 19:26:19 2010
New Revision: 74928

Modified:
   pypy/branch/blackhole-improvement/pypy/jit/codewriter/assembler.py
Log:
Don't force the symbolics; it appears to still be too early.


Modified: pypy/branch/blackhole-improvement/pypy/jit/codewriter/assembler.py
==============================================================================
--- pypy/branch/blackhole-improvement/pypy/jit/codewriter/assembler.py	(original)
+++ pypy/branch/blackhole-improvement/pypy/jit/codewriter/assembler.py	Sun May 30 19:26:19 2010
@@ -70,11 +70,9 @@
                     TYPE = llmemory.Address
                 if TYPE == llmemory.Address:
                     value = llmemory.cast_adr_to_int(value)
-                else:
+                elif not isinstance(value, ComputedIntSymbolic):
                     value = lltype.cast_primitive(lltype.Signed, value)
-                    if isinstance(value, ComputedIntSymbolic):
-                        value = value.compute_fn()
-                    if allow_short and -128 <= value <= 127:  # xxx symbolic
+                    if allow_short and -128 <= value <= 127:
                         # emit the constant as a small integer
                         self.code.append(chr(value & 0xFF))
                         return True



More information about the Pypy-commit mailing list