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

alex_gaynor noreply at buildbot.pypy.org
Tue Oct 25 00:36:55 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: virtual-dicts
Changeset: r48398:365af1bb7686
Date: 2011-10-24 18:34 -0400
http://bitbucket.org/pypy/pypy/changeset/365af1bb7686/

Log:	semantic fix

diff --git a/pypy/jit/metainterp/optimizeopt/virtualize.py b/pypy/jit/metainterp/optimizeopt/virtualize.py
--- a/pypy/jit/metainterp/optimizeopt/virtualize.py
+++ b/pypy/jit/metainterp/optimizeopt/virtualize.py
@@ -303,13 +303,15 @@
     def get_args_for_fail(self, modifier):
         if self.box is None and not modifier.already_seen_virtual(self.keybox):
             itemboxes = []
+            values = []
             for items in self._items:
                 descrs = items.keys()
                 sort_descrs(descrs)
                 for descr in descrs:
-                    itemboxes.append(items[descr])
+                    itemboxes.append(items[descr].get_key_box())
+                    values.append(items[descr])
             modifier.register_virtual_fields(self.keybox, itemboxes)
-            for item in itemboxes:
+            for item in values:
                 item.get_args_for_fail(modifier)
 
 


More information about the pypy-commit mailing list