[pypy-svn] r70769 - pypy/branch/direct-assembler-call/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Fri Jan 22 12:06:24 CET 2010


Author: fijal
Date: Fri Jan 22 12:06:23 2010
New Revision: 70769

Modified:
   pypy/branch/direct-assembler-call/pypy/jit/metainterp/pyjitpl.py
Log:
yet another harmless assertion


Modified: pypy/branch/direct-assembler-call/pypy/jit/metainterp/pyjitpl.py
==============================================================================
--- pypy/branch/direct-assembler-call/pypy/jit/metainterp/pyjitpl.py	(original)
+++ pypy/branch/direct-assembler-call/pypy/jit/metainterp/pyjitpl.py	Fri Jan 22 12:06:23 2010
@@ -676,11 +676,14 @@
             call_position = len(self.metainterp.history.operations)
         res = self.do_residual_call(varargs, descr=calldescr, exc=True)
         # XXX fix the call position, <UGLY!>
+        found = False
         while True:
             op = self.metainterp.history.operations[call_position]
             if op.opnum == rop.CALL or op.opnum == rop.CALL_MAY_FORCE:
+                found = True
                 break
             call_position += 1
+        assert found
         # </UGLY!>
         if token is not None:
             # this will substitute the residual call with assembler call



More information about the Pypy-commit mailing list