[pypy-svn] r66164 - pypy/branch/pyjitpl5/pypy/jit/backend/x86

arigo at codespeak.net arigo at codespeak.net
Fri Jul 10 13:38:21 CEST 2009


Author: arigo
Date: Fri Jul 10 13:38:18 2009
New Revision: 66164

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py
Log:
Fix: in some situations (e.g. test_zrpy_virtualizable:test_external_read)
the list is not compatible with the list stored in 'shape' (known-empty
list versus list of booleans).  Could be really fixed, I guess, but it's
a bit of a mess.



Modified: pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py	Fri Jul 10 13:38:18 2009
@@ -233,7 +233,9 @@
     
     def _get_loop_for_call(self, args, calldescr, ptr):
         if calldescr.call_loop is not None:
-            assert calldescr.shape == ([arg.type == history.PTR for arg in args[1:]], ptr)
+            if not we_are_translated():
+                assert (calldescr.shape ==
+                        ([arg.type == history.PTR for arg in args[1:]], ptr))
             return calldescr.call_loop
         args = [arg.clonebox() for arg in args]
         result = self._new_box(ptr)



More information about the Pypy-commit mailing list