[pypy-svn] r64119 - pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86
fijal at codespeak.net
fijal at codespeak.net
Wed Apr 15 21:36:10 CEST 2009
Author: fijal
Date: Wed Apr 15 21:36:10 2009
New Revision: 64119
Modified:
pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py
Log:
generalize checks
Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py (original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py Wed Apr 15 21:36:10 2009
@@ -640,7 +640,7 @@
@staticmethod
def cast_int_to_adr(x):
- assert x == 0 or x > (1<<20)
+ assert x == 0 or x > (1<<20) or x < (-1<<20)
if we_are_translated():
return rffi.cast(llmemory.Address, x)
else:
@@ -651,7 +651,7 @@
return rffi.cast(lltype.Signed, x)
def cast_int_to_gcref(self, x):
- assert x == 0 or x > (1<<20)
+ assert x == 0 or x > (1<<20) or x < (-1<<20)
return rffi.cast(llmemory.GCREF, x)
# ---------------------------- tests ------------------------
More information about the Pypy-commit
mailing list