Author: hager <[email protected]>
Branch: ppc-jit-backend
Changeset: r51442:d0d21bbde762
Date: 2012-01-18 13:43 +0100
http://bitbucket.org/pypy/pypy/changeset/d0d21bbde762/
Log: adjust size parameter in _check_im_arg and check_im_box
diff --git a/pypy/jit/backend/ppc/ppcgen/helper/regalloc.py
b/pypy/jit/backend/ppc/ppcgen/helper/regalloc.py
--- a/pypy/jit/backend/ppc/ppcgen/helper/regalloc.py
+++ b/pypy/jit/backend/ppc/ppcgen/helper/regalloc.py
@@ -2,13 +2,14 @@
from pypy.rlib.objectmodel import we_are_translated
from pypy.jit.metainterp.history import Box
+IMM_SIZE = 2 ** 15 - 1
-def check_imm_box(arg, size=0xFF, allow_zero=True):
+def check_imm_box(arg, size=IMM_SIZE, allow_zero=True):
if isinstance(arg, ConstInt):
return _check_imm_arg(arg.getint(), size, allow_zero)
return False
-def _check_imm_arg(arg, size=0xFF, allow_zero=True):
+def _check_imm_arg(arg, size=IMM_SIZE, allow_zero=True):
#assert not isinstance(arg, ConstInt)
#if not we_are_translated():
# if not isinstance(arg, int):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit