Author: Antonio Cuni <[email protected]> Branch: fast_cffi_list_init Changeset: r67316:4a5a1fe77f06 Date: 2013-10-11 15:02 +0200 http://bitbucket.org/pypy/pypy/changeset/4a5a1fe77f06/
Log: merge heads diff --git a/rpython/rlib/rarray.py b/rpython/rlib/rarray.py --- a/rpython/rlib/rarray.py +++ b/rpython/rlib/rarray.py @@ -1,6 +1,7 @@ from rpython.annotator import model as annmodel from rpython.annotator.listdef import ListDef from rpython.rlib.objectmodel import specialize +from rpython.rlib import jit from rpython.rtyper.lltypesystem import lltype, llmemory from rpython.rtyper.extregistry import ExtRegistryEntry from rpython.tool.pairtype import pair @@ -48,6 +49,7 @@ get_raw_buf._always_inline_ = True [email protected]_look_inside def ll_copy_list_to_raw_array(ll_list, dst_ptr): # this code is delicate: we must ensure that there are no GC operations # around the call to raw_memcopy @@ -61,6 +63,7 @@ # end of no-GC section [email protected]_look_inside def ll_populate_list_from_raw_array(ll_list, src_ptr, length): ITEM = lltype.typeOf(src_ptr).TO.OF size = llmemory.sizeof(ITEM) * length _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
