Author: Alex Gaynor <[email protected]>
Branch: virtual-dicts
Changeset: r48404:8cae4e3f42e9
Date: 2011-10-24 21:35 -0400
http://bitbucket.org/pypy/pypy/changeset/8cae4e3f42e9/
Log: fix translation
diff --git a/pypy/jit/metainterp/optimizeopt/virtualstate.py
b/pypy/jit/metainterp/optimizeopt/virtualstate.py
--- a/pypy/jit/metainterp/optimizeopt/virtualstate.py
+++ b/pypy/jit/metainterp/optimizeopt/virtualstate.py
@@ -77,6 +77,8 @@
bad[self] = True
bad[other] = True
return False
+
+ assert isinstance(other, AbstractVirtualStructStateInfo)
assert len(self.fielddescrs) == len(self.fieldstate)
assert len(other.fielddescrs) == len(other.fieldstate)
if len(self.fielddescrs) != len(other.fielddescrs):
@@ -212,6 +214,7 @@
bad[other] = True
return False
+ assert isinstance(other, VArrayStructStateInfo)
if len(self.fielddescrs) != len(other.fielddescrs):
bad[self] = True
bad[other] = True
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit