Commits

Antonio Cuni  committed 6127f81

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

  • Participants
  • Parent commits 446b99d
  • Branches virtual-raw-mallocs

Comments (0)

Files changed (1)

File pypy/jit/backend/llsupport/llmodel.py

             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)