[pypy-commit] pypy ppc-jit-backend: use force index field as scratch field

hager noreply at buildbot.pypy.org
Wed Nov 30 21:13:17 CET 2011


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r50028:425b44c65d66
Date: 2011-11-30 21:12 +0100
http://bitbucket.org/pypy/pypy/changeset/425b44c65d66/

Log:	use force index field as scratch field

diff --git a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py b/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
--- a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
+++ b/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
@@ -916,7 +916,8 @@
                 assert 0, "not implemented yet"
             # XXX this code has to be verified
             assert not self.stack_in_use
-            self.regalloc_mov(loc, r.r0)
+            target = StackLocation(0) # write to force index field           
+            self.regalloc_mov(loc, target)
             self.stack_in_use = True
         elif loc.is_reg():
             self.mc.addi(r.SP.value, r.SP.value, -WORD) # decrease stack pointer
@@ -940,7 +941,8 @@
                 assert 0, "not implemented yet"
             # XXX this code has to be verified
             assert self.stack_in_use
-            self.regalloc_mov(r.r0, loc)
+            from_loc = StackLocation(0)
+            self.regalloc_mov(from_loc, loc)
             self.stack_in_use = False
         elif loc.is_reg():
             # pop value


More information about the pypy-commit mailing list