[pypy-commit] pypy virtual-dicts: better error

alex_gaynor noreply at buildbot.pypy.org
Mon Oct 24 23:17:54 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: virtual-dicts
Changeset: r48396:ae6a1aa152ae
Date: 2011-10-24 17:17 -0400
http://bitbucket.org/pypy/pypy/changeset/ae6a1aa152ae/

Log:	better error

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
@@ -300,6 +300,12 @@
                 op = ResOperation(rop.SETINTERIORFIELD_GC, [box, ConstInt(index), subbox], None, descr=descr)
                 optforce.emit_operation(op)
 
+    def get_args_for_fail(self, modifier):
+        if self.box is None and not modifier.already_seen_virtual(self.keybox):
+            # Need a way to store data as pairs of (index, descr), not just
+            # descr or index.
+            raise NotImplementedError
+
     def force_at_end_of_preamble(self, already_forced, optforce):
         if self in already_forced:
             return self


More information about the pypy-commit mailing list