[pypy-commit] pypy ppc-jit-backend: fix wrong initialisation of StackLocation in regalloc_push/regalloc_pop
hager
noreply at buildbot.pypy.org
Tue Jan 10 12:37:53 CET 2012
Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r51199:e1dea1c15227
Date: 2012-01-10 12:37 +0100
http://bitbucket.org/pypy/pypy/changeset/e1dea1c15227/
Log: fix wrong initialisation of StackLocation in
regalloc_push/regalloc_pop
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
@@ -39,6 +39,7 @@
from pypy.rpython.annlowlevel import llhelper
from pypy.rlib.objectmodel import we_are_translated
from pypy.rpython.lltypesystem.lloperation import llop
+from pypy.jit.backend.ppc.ppcgen.locations import StackLocation
memcpy_fn = rffi.llexternal('memcpy', [llmemory.Address, llmemory.Address,
rffi.SIZE_T], lltype.Void,
@@ -757,7 +758,7 @@
assert 0, "not implemented yet"
# XXX this code has to be verified
assert not self.stack_in_use
- target = StackLocation(self.ENCODING_AREA) # write to force index field
+ target = StackLocation(self.ENCODING_AREA // WORD) # write to ENCODING AREA
self.regalloc_mov(loc, target)
self.stack_in_use = True
elif loc.is_reg():
@@ -782,7 +783,7 @@
assert 0, "not implemented yet"
# XXX this code has to be verified
assert self.stack_in_use
- from_loc = StackLocation(self.ENCODING_AREA)
+ from_loc = StackLocation(self.ENCODING_AREA // WORD) # read from ENCODING AREA
self.regalloc_mov(from_loc, loc)
self.stack_in_use = False
elif loc.is_reg():
More information about the pypy-commit
mailing list