[pypy-svn] r69975 - pypy/branch/listcopyop/pypy/rpython/memory/gctransform

fijal at codespeak.net fijal at codespeak.net
Tue Dec 8 11:46:54 CET 2009


Author: fijal
Date: Tue Dec  8 11:46:53 2009
New Revision: 69975

Modified:
   pypy/branch/listcopyop/pypy/rpython/memory/gctransform/framework.py
Log:
fix signatures


Modified: pypy/branch/listcopyop/pypy/rpython/memory/gctransform/framework.py
==============================================================================
--- pypy/branch/listcopyop/pypy/rpython/memory/gctransform/framework.py	(original)
+++ pypy/branch/listcopyop/pypy/rpython/memory/gctransform/framework.py	Tue Dec  8 11:46:53 2009
@@ -294,8 +294,7 @@
 
         if hasattr(GCClass, 'arraycopy_writebarrier'):
             self.arraycopy_wb_p = getfn(GCClass.arraycopy_writebarrier.im_func,
-                    [s_gc] + [annmodel.SomeAddress()] * 2 +
-                     [annmodel.SomeInteger()] * 3, annmodel.SomeBool())
+                    [s_gc] + [annmodel.SomeAddress()] * 2, annmodel.s_None)
 
         # in some GCs we can inline the common case of
         # malloc_fixedsize(typeid, size, True, False, False)
@@ -790,7 +789,7 @@
                                 resulttype=llmemory.Address)
         dest_addr = hop.genop('cast_ptr_to_adr', [op.args[1]],
                                 resulttype=llmemory.Address)
-        hop.genop('direct_call', [self.arraycopy_ptr, self.c_const_gc,
+        hop.genop('direct_call', [self.arraycopy_wb_p, self.c_const_gc,
                                   source_addr, dest_addr])
 
     def gct_weakref_create(self, hop):



More information about the Pypy-commit mailing list