[pypy-svn] pypy jit-short_from_state: translation fixes

hakanardo commits-noreply at bitbucket.org
Mon Apr 25 10:37:33 CEST 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-short_from_state
Changeset: r43551:a4048937b8c6
Date: 2011-04-25 10:36 +0200
http://bitbucket.org/pypy/pypy/changeset/a4048937b8c6/

Log:	translation fixes

diff --git a/pypy/jit/metainterp/optimizeopt/unroll.py b/pypy/jit/metainterp/optimizeopt/unroll.py
--- a/pypy/jit/metainterp/optimizeopt/unroll.py
+++ b/pypy/jit/metainterp/optimizeopt/unroll.py
@@ -214,8 +214,10 @@
                     # a lot of tests to be fixed...
                     loop.preamble.operations = short[:]
 
+                # FIXME: combine with snapshot loop above
                 short_resumedescr = start_resumedescr.clone_if_mutable()
-                self.inliner.inline_descr_inplace(short_resumedescr)
+                assert isinstance(short_resumedescr, ResumeGuardDescr)                
+                self.inliner.inline_descr_inplace(short_resumedescr)                
                 snapshot = short_resumedescr.rd_snapshot
                 while snapshot:
                     snapshot.boxes = [self.getvalue(b).get_key_box()


More information about the Pypy-commit mailing list