[pypy-commit] pypy virtual-dicts: fix translation

alex_gaynor noreply at buildbot.pypy.org
Tue Oct 25 03:35:47 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
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


More information about the pypy-commit mailing list