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

antocuni at codespeak.net antocuni at codespeak.net
Fri Oct 8 12:07:00 CEST 2010


Author: antocuni
Date: Fri Oct  8 12:06:59 2010
New Revision: 77714

Modified:
   pypy/branch/jitffi/pypy/rlib/clibffi.py
Log:
remove JIT-related experiments from clibffi. This should fix test_newgc and test_asmgcroot


Modified: pypy/branch/jitffi/pypy/rlib/clibffi.py
==============================================================================
--- pypy/branch/jitffi/pypy/rlib/clibffi.py	(original)
+++ pypy/branch/jitffi/pypy/rlib/clibffi.py	Fri Oct  8 12:06:59 2010
@@ -471,8 +471,6 @@
     ll_args = lltype.nullptr(rffi.VOIDPP.TO)
     ll_result = lltype.nullptr(rffi.VOIDP.TO)
 
-    _immutable_fields_ = ['funcsym', 'argtypes'] # XXX probably more
-
     def __init__(self, name, argtypes, restype, funcsym, flags=FUNCFLAG_CDECL,
                  keepalive=None):
         # initialize each one of pointers with null
@@ -511,11 +509,7 @@
         push_arg_as_ffiptr(self.argtypes[self.pushed_args], value,
                            self.ll_args[self.pushed_args])
         self.pushed_args += 1
-    # XXX this is bad, fix it somehow in the future, but specialize:argtype
-    # doesn't work correctly with mixing non-negative and normal integers
-    push_arg._annenforceargs_ = [None, int]
-    #push_arg._annspecialcase_ = 'specialize:argtype(1)'
-    #push_arg.oopspec = 'libffi_push_arg(self, value)'
+    push_arg._annspecialcase_ = 'specialize:argtype(1)'
 
     def _check_args(self):
         if self.pushed_args < self.argnum:
@@ -538,7 +532,6 @@
         check_fficall_result(ffires, self.flags)
         return res
     call._annspecialcase_ = 'specialize:arg(1)'
-    #call.oopspec = 'libffi_call(self, RES_TP)'
 
     def __del__(self):
         if self.ll_args:



More information about the Pypy-commit mailing list