[pypy-svn] pypy jit-short-preamble: more faking

hakanardo commits-noreply at bitbucket.org
Fri Jan 21 17:57:54 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-short-preamble
Changeset: r41169:2566b8ba506f
Date: 2011-01-21 17:54 +0100
http://bitbucket.org/pypy/pypy/changeset/2566b8ba506f/

Log:	more faking

diff --git a/pypy/jit/metainterp/test/test_optimizeopt.py b/pypy/jit/metainterp/test/test_optimizeopt.py
--- a/pypy/jit/metainterp/test/test_optimizeopt.py
+++ b/pypy/jit/metainterp/test/test_optimizeopt.py
@@ -176,10 +176,12 @@
             metainterp_sd.virtualref_info = self.vrefinfo
         if hasattr(self, 'callinfocollection'):
             metainterp_sd.callinfocollection = self.callinfocollection
-        class FakeDescr(AbstractDescr):
+        class FakeDescr(compile.ResumeGuardDescr):
             class rd_snapshot:
                 class prev:
+                    prev = None
                     boxes = []
+                boxes = []
             def clone_if_mutable(self):
                 return self
         loop.preamble.start_resumedescr = FakeDescr()


More information about the Pypy-commit mailing list