[pypy-commit] pypy ppc-jit-backend: Different backchain sizes depending on the architecture

hager noreply at buildbot.pypy.org
Fri Nov 11 13:26:38 CET 2011


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r49300:0cc8549b1466
Date: 2011-11-11 13:16 +0100
http://bitbucket.org/pypy/pypy/changeset/0cc8549b1466/

Log:	Different backchain sizes depending on the architecture

diff --git a/pypy/jit/backend/ppc/ppcgen/arch.py b/pypy/jit/backend/ppc/ppcgen/arch.py
--- a/pypy/jit/backend/ppc/ppcgen/arch.py
+++ b/pypy/jit/backend/ppc/ppcgen/arch.py
@@ -6,15 +6,14 @@
 if sys.maxint == (2**31 - 1):
     WORD = 4
     IS_PPC_32 = True
-    IS_PPC_64 = False
+    BACKCHAIN_SIZE = 2 * WORD
 else:
     WORD = 8
     IS_PPC_32 = False
-    IS_PPC_64 = True
+    BACKCHAIN_SIZE = 3 * WORD
 
+IS_PPC_64 = not IS_PPC_32
 MY_COPY_OF_REGS = 0
 
 GPR_SAVE_AREA   = len(NONVOLATILES) * WORD
 MAX_REG_PARAMS = 8
-
-BACKCHAIN_SIZE = 3 * WORD


More information about the pypy-commit mailing list