Author: Ivan Sichmann Freitas <ivansichfrei...@gmail.com>
Branch: ppc-updated-backend
Changeset: r73087:35d3261abaab
Date: 2014-08-27 17:03 -0300
http://bitbucket.org/pypy/pypy/changeset/35d3261abaab/

Log:    Add method is_float to locations

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
@@ -34,6 +34,9 @@
     def is_imm_float(self):
         return False
 
+    def is_float(self):
+        return False
+
     def as_key(self):
         raise NotImplementedError
 
@@ -55,7 +58,7 @@
 
 class FPRegisterLocation(RegisterLocation):
     _immutable_ = True
-    type = FLOAT 
+    type = FLOAT
     width = FWORD
 
     def __repr__(self):
@@ -67,6 +70,9 @@
     def is_fp_reg(self):
         return True
 
+    def is_float(self):
+        return True
+
     def as_key(self):
         return self.value + 100
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to