[pypy-commit] pypy ppc-jit-backend: check var.type in make_sure_var_in_reg

hager noreply at buildbot.pypy.org
Tue Jan 17 10:53:32 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r51384:909126039943
Date: 2012-01-17 10:51 +0100
http://bitbucket.org/pypy/pypy/changeset/909126039943/

Log:	check var.type in make_sure_var_in_reg

diff --git a/pypy/jit/backend/ppc/ppcgen/regalloc.py b/pypy/jit/backend/ppc/ppcgen/regalloc.py
--- a/pypy/jit/backend/ppc/ppcgen/regalloc.py
+++ b/pypy/jit/backend/ppc/ppcgen/regalloc.py
@@ -306,8 +306,11 @@
 
     def make_sure_var_in_reg(self, var, forbidden_vars=[],
                              selected_reg=None, need_lower_byte=False):
-        return self.rm.make_sure_var_in_reg(var, forbidden_vars,
-                selected_reg, need_lower_byte)
+        if var.type == FLOAT:
+            assert 0, "not implemented yet"
+        else:
+            return self.rm.make_sure_var_in_reg(var, forbidden_vars,
+                    selected_reg, need_lower_byte)
 
     def _sync_var(self, v):
         if v.type == FLOAT:


More information about the pypy-commit mailing list