[pypy-svn] r63625 - pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Sat Apr 4 20:11:47 CEST 2009


Author: fijal
Date: Sat Apr  4 20:11:47 2009
New Revision: 63625

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/optimize.py
Log:
some translation fixes


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/optimize.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/optimize.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/optimize.py	Sat Apr  4 20:11:47 2009
@@ -887,9 +887,11 @@
                 box = self.prepare_rebuild_ops(node, rebuild_ops, memo)
                 if (parentnode.cls and
                     isinstance(parentnode.cls.source, FixedList)):
+                    cls = parentnode.cls.source
+                    assert isinstance(cls, FixedList)
                     rebuild_ops.append(ResOperation(rop.SETARRAYITEM_GC,
                       [parentnode.source, descr, box], None,
-                      parentnode.cls.source.arraydescr))
+                      cls.arraydescr))
                 else:
                     rebuild_ops.append(ResOperation(rop.SETFIELD_GC,
                       [parentnode.source, box], None, descr))



More information about the Pypy-commit mailing list