[pypy-commit] pypy ppc-backend-2: Set width for StackLocation.

edelsohn noreply at buildbot.pypy.org
Fri Jun 1 20:37:45 CEST 2012


Author: edelsohn
Branch: ppc-backend-2
Changeset: r55260:f7f3719072f0
Date: 2012-06-01 14:33 -0400
http://bitbucket.org/pypy/pypy/changeset/f7f3719072f0/

Log:	Set width for StackLocation.

diff --git a/pypy/jit/backend/ppc/locations.py b/pypy/jit/backend/ppc/locations.py
--- a/pypy/jit/backend/ppc/locations.py
+++ b/pypy/jit/backend/ppc/locations.py
@@ -111,6 +111,10 @@
     _immutable_ = True
 
     def __init__(self, position, num_words=1, type=INT):
+        if type == FLOAT:
+            self.width = FWORD
+        else:
+            self.width = WORD
         self.position = position
         self.type = type
         self.value = get_spp_offset(position)


More information about the pypy-commit mailing list