[pypy-svn] r68478 - pypy/branch/prevent-silly-unrolling/pypy/rpython

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Oct 15 10:39:06 CEST 2009


Author: cfbolz
Date: Thu Oct 15 10:39:05 2009
New Revision: 68478

Modified:
   pypy/branch/prevent-silly-unrolling/pypy/rpython/normalizecalls.py
Log:
also fix 68477 on the branch


Modified: pypy/branch/prevent-silly-unrolling/pypy/rpython/normalizecalls.py
==============================================================================
--- pypy/branch/prevent-silly-unrolling/pypy/rpython/normalizecalls.py	(original)
+++ pypy/branch/prevent-silly-unrolling/pypy/rpython/normalizecalls.py	Thu Oct 15 10:39:05 2009
@@ -10,6 +10,7 @@
 from pypy.rpython.error import TyperError
 from pypy.rpython.rmodel import getgcflavor
 from pypy.rlib.objectmodel import instantiate, ComputedIntSymbolic
+from pypy.interpreter.argument import Signature
 
 def normalize_call_familes(annotator):
     for callfamily in annotator.bookkeeper.pbc_maximal_call_families.infos():
@@ -119,8 +120,8 @@
                     newdefaults = newdefaults[i:]
                     break
             graph.defaults = tuple(newdefaults)
-            graph.signature = (tuple([argnames[j] for j in argorder]), 
-                                   None, None)
+            graph.signature = Signature([argnames[j] for j in argorder], 
+                                        None, None)
             # finished
             checkgraph(graph)
             annotator.annotated[newblock] = annotator.annotated[oldblock]



More information about the Pypy-commit mailing list