[pypy-svn] r77283 - pypy/branch/jitffi/pypy/rlib

fijal at codespeak.net fijal at codespeak.net
Wed Sep 22 21:45:14 CEST 2010


Author: fijal
Date: Wed Sep 22 21:45:13 2010
New Revision: 77283

Modified:
   pypy/branch/jitffi/pypy/rlib/libffi.py
Log:
fix specialize and use a decorator


Modified: pypy/branch/jitffi/pypy/rlib/libffi.py
==============================================================================
--- pypy/branch/jitffi/pypy/rlib/libffi.py	(original)
+++ pypy/branch/jitffi/pypy/rlib/libffi.py	Wed Sep 22 21:45:13 2010
@@ -1,5 +1,6 @@
 
 from pypy.rlib.clibffi import *
+from pypy.rlib.objectmodel import specialize
 
 class AbstractArg(object):
     next = None
@@ -31,6 +32,7 @@
         # the future it will replace it completely
         self.funcptr = funcptr
 
+    @specialize.arg(2)
     def call(self, argchain, RESULT):
         # implementation detail
         arg = argchain
@@ -38,6 +40,5 @@
             arg.push(self.funcptr)
             arg = arg.next
         return self.funcptr.call(RESULT)
-    call._annspecialcase_ = 'specialize:arg(1)'
 
 



More information about the Pypy-commit mailing list