Author: David Schneider <[email protected]>
Branch: arm-backend-2
Changeset: r51787:1f07ea8076c9
Date: 2012-01-26 10:20 +0100
http://bitbucket.org/pypy/pypy/changeset/1f07ea8076c9/
Log: add asserts
diff --git a/pypy/jit/backend/arm/helper/regalloc.py
b/pypy/jit/backend/arm/helper/regalloc.py
--- a/pypy/jit/backend/arm/helper/regalloc.py
+++ b/pypy/jit/backend/arm/helper/regalloc.py
@@ -90,6 +90,8 @@
assert fcond is not None
a0 = op.getarg(0)
a1 = op.getarg(1)
+ assert isinstance(a0, Box)
+ assert isinstance(a1, Box)
arg1 = self.rm.make_sure_var_in_reg(a0, selected_reg=r.r0)
arg2 = self.rm.make_sure_var_in_reg(a1, selected_reg=r.r1)
assert arg1 == r.r0
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit