Commits

Anonymous committed f0bdfcc

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

Comments (0)

Files changed (1)

pypy/jit/backend/ppc/locations.py

         return True
 
     def as_key(self):
-        return self.value
+        return self.value + 100
 
 class ImmLocation(AssemblerLocation):
     _immutable_ = True
     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"""
         return True
 
     def as_key(self):
-        return -self.position
+        return -self.position + 10000
 
 def imm(val):
     return ImmLocation(val)