[pypy-svn] r32564 - pypy/dist/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Thu Sep 21 15:10:29 CEST 2006


Author: arigo
Date: Thu Sep 21 15:10:27 2006
New Revision: 32564

Modified:
   pypy/dist/pypy/annotation/specialize.py
Log:
A specialization 'argvalue(2, 3, 4)' to specialize on multiple arguments.
Not used yet.


Modified: pypy/dist/pypy/annotation/specialize.py
==============================================================================
--- pypy/dist/pypy/annotation/specialize.py	(original)
+++ pypy/dist/pypy/annotation/specialize.py	Thu Sep 21 15:10:27 2006
@@ -373,8 +373,8 @@
 ##    return funcdesc.cachedgraph(s1_type, alt_name='memo_%s' % funcdesc.name, 
 ##                                         builder=builder)
 
-def specialize_argvalue(funcdesc, args_s, i):
-    key = args_s[i].const
+def specialize_argvalue(funcdesc, args_s, *argindices):
+    key = tuple([args_s[i].const for i in argindices])
     return funcdesc.cachedgraph(key)
 
 def specialize_argtype(funcdesc, args_s, i):



More information about the Pypy-commit mailing list