Author: Ivan Sichmann Freitas <[email protected]>
Branch: ppc-updated-backend
Changeset: r71677:5ad3b78714d1
Date: 2014-05-21 13:40 +0000
http://bitbucket.org/pypy/pypy/changeset/5ad3b78714d1/

Log:    Revert signal change in StackLocation

diff --git a/rpython/jit/backend/ppc/locations.py 
b/rpython/jit/backend/ppc/locations.py
--- a/rpython/jit/backend/ppc/locations.py
+++ b/rpython/jit/backend/ppc/locations.py
@@ -137,16 +137,16 @@
         return True
 
     def as_key(self):
-        return self.position + 10000
+        return -self.position + 10000
 
 def imm(val):
     return ImmLocation(val)
 
 def get_spp_offset(pos):
     if pos < 0:
-        return pos * WORD
+        return -pos * WORD
     else:
-        return (pos + 1) * WORD
+        return -(pos + 1) * WORD
 
 def get_fp_offset(base_ofs, position):
     return base_ofs + position
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to