Author: Armin Rigo <[email protected]>
Branch: portable-threadlocal
Changeset: r74742:a80d4cea2d6e
Date: 2014-11-27 00:17 +0100
http://bitbucket.org/pypy/pypy/changeset/a80d4cea2d6e/

Log:    document as_key() and add one for RawSPStackLocation, needed now

diff --git a/rpython/jit/backend/arm/locations.py 
b/rpython/jit/backend/arm/locations.py
--- a/rpython/jit/backend/arm/locations.py
+++ b/rpython/jit/backend/arm/locations.py
@@ -46,7 +46,7 @@
     def is_core_reg(self):
         return True
 
-    def as_key(self):
+    def as_key(self):       # 0 <= as_key <= 15
         return self.value
 
 
@@ -64,7 +64,7 @@
     def is_vfp_reg(self):
         return True
 
-    def as_key(self):
+    def as_key(self):            # 20 <= as_key <= 35
         return self.value + 20
 
     def is_float(self):
@@ -115,8 +115,8 @@
     def is_imm_float(self):
         return True
 
-    def as_key(self):
-        return self.value
+    def as_key(self):          # a real address + 1
+        return self.value | 1
 
     def is_float(self):
         return True
@@ -148,7 +148,7 @@
     def is_stack(self):
         return True
 
-    def as_key(self):
+    def as_key(self):                # an aligned word + 10000
         return self.position + 10000
 
     def is_float(self):
@@ -174,6 +174,9 @@
     def is_float(self):
         return self.type == FLOAT
 
+    def as_key(self):            # a word >= 1000, and < 1000 + size of SP 
frame
+        return self.value + 1000
+
 
 def imm(i):
     return ImmLocation(i)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to