Author: Antonio Cuni <[email protected]>
Branch: virtual-raw-mallocs
Changeset: r59609:6127f8136f57
Date: 2012-12-28 17:15 +0100
http://bitbucket.org/pypy/pypy/changeset/6127f8136f57/

Log:    implement bh_new_raw_buffer for ll cpus: this makes x86 virtualref
        tests passing

diff --git a/pypy/jit/backend/llsupport/llmodel.py 
b/pypy/jit/backend/llsupport/llmodel.py
--- a/pypy/jit/backend/llsupport/llmodel.py
+++ b/pypy/jit/backend/llsupport/llmodel.py
@@ -595,6 +595,9 @@
             as_array[self.vtable_offset/WORD] = vtable
         return res
 
+    def bh_new_raw_buffer(self, size):
+        return lltype.malloc(rffi.CCHARP.TO, size, flavor='raw')
+
     def bh_classof(self, struct):
         struct = lltype.cast_opaque_ptr(rclass.OBJECTPTR, struct)
         result_adr = llmemory.cast_ptr_to_adr(struct.typeptr)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to