Author: edelsohn
Branch: ppc-jit-backend
Changeset: r56065:f0bdfcce7b1d
Date: 2012-07-13 07:41 -0400
http://bitbucket.org/pypy/pypy/changeset/f0bdfcce7b1d/

Log:    Add offsets to as_key for FPRegisterLocation and StackLocation.
        Remove as_key for ImmediateLocation.

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
@@ -63,7 +63,7 @@
         return True
 
     def as_key(self):
-        return self.value
+        return self.value + 100
 
 class ImmLocation(AssemblerLocation):
     _immutable_ = True
@@ -82,9 +82,6 @@
     def is_imm(self):
         return True
 
-    def as_key(self):
-        return self.value + 40
-
 class ConstFloatLoc(AssemblerLocation):
     """This class represents an imm float value which is stored in memory at
     the address stored in the field value"""
@@ -132,7 +129,7 @@
         return True
 
     def as_key(self):
-        return -self.position
+        return -self.position + 10000
 
 def imm(val):
     return ImmLocation(val)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to