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)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to