Home
last modified time | relevance | path

Searched refs:allocator_data (Results 1 – 13 of 13) sorted by relevance

/external/pcre/src/sljit/
DsljitUtils.c175 …tack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_data) in sljit_allocate_stack() argument
180 SLJIT_UNUSED_ARG(allocator_data); in sljit_allocate_stack()
185 stack = (struct sljit_stack*)SLJIT_MALLOC(sizeof(struct sljit_stack), allocator_data); in sljit_allocate_stack()
189 ptr = SLJIT_MALLOC(max_size, allocator_data); in sljit_allocate_stack()
191 SLJIT_FREE(stack, allocator_data); in sljit_allocate_stack()
202 …PI_FUNC_ATTRIBUTE void SLJIT_FUNC sljit_free_stack(struct sljit_stack *stack, void *allocator_data) in sljit_free_stack() argument
204 SLJIT_UNUSED_ARG(allocator_data); in sljit_free_stack()
205 SLJIT_FREE((void*)stack->min_start, allocator_data); in sljit_free_stack()
206 SLJIT_FREE(stack, allocator_data); in sljit_free_stack()
221 …PI_FUNC_ATTRIBUTE void SLJIT_FUNC sljit_free_stack(struct sljit_stack *stack, void *allocator_data) in sljit_free_stack() argument
[all …]
DsljitSerialize.c172 result = (sljit_u8*)SLJIT_MALLOC(serialized_size, compiler->allocator_data); in sljit_serialize_compiler()
289 sljit_s32 options, void *allocator_data) in sljit_deserialize_compiler() argument
322 compiler = sljit_create_compiler(allocator_data); in sljit_deserialize_compiler()
387 buf = (struct sljit_memory_fragment*)SLJIT_MALLOC(BUF_SIZE, allocator_data); in sljit_deserialize_compiler()
409 …t = (struct sljit_label **)SLJIT_MALLOC(label_count * sizeof(struct sljit_label*), allocator_data); in sljit_deserialize_compiler()
470 SLJIT_FREE(label_list, allocator_data); in sljit_deserialize_compiler()
514 SLJIT_FREE(label_list, allocator_data); in sljit_deserialize_compiler()
DsljitLir.c457 SLJIT_API_FUNC_ATTRIBUTE struct sljit_compiler* sljit_create_compiler(void *allocator_data) in sljit_create_compiler() argument
459 …er *compiler = (struct sljit_compiler*)SLJIT_MALLOC(sizeof(struct sljit_compiler), allocator_data); in sljit_create_compiler()
482 compiler->allocator_data = allocator_data; in sljit_create_compiler()
483 compiler->buf = (struct sljit_memory_fragment*)SLJIT_MALLOC(BUF_SIZE, allocator_data); in sljit_create_compiler()
484 compiler->abuf = (struct sljit_memory_fragment*)SLJIT_MALLOC(ABUF_SIZE, allocator_data); in sljit_create_compiler()
488 SLJIT_FREE(compiler->buf, allocator_data); in sljit_create_compiler()
490 SLJIT_FREE(compiler->abuf, allocator_data); in sljit_create_compiler()
491 SLJIT_FREE(compiler, allocator_data); in sljit_create_compiler()
512 + CPOOL_SIZE * sizeof(sljit_u8), allocator_data); in sljit_create_compiler()
514 SLJIT_FREE(compiler->buf, allocator_data); in sljit_create_compiler()
[all …]
DsljitLir.h471 void *allocator_data; member
597 SLJIT_API_FUNC_ATTRIBUTE struct sljit_compiler* sljit_create_compiler(void *allocator_data);
629 …t_compiler_get_allocator_data(struct sljit_compiler *compiler) { return compiler->allocator_data; } in sljit_compiler_get_allocator_data()
2359 sljit_s32 options, void *allocator_data);
2413 …ack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_data);
2414 …I_FUNC_ATTRIBUTE void SLJIT_FUNC sljit_free_stack(struct sljit_stack *stack, void *allocator_data);
DsljitConfigInternal.h139 #define SLJIT_MALLOC(size, allocator_data) (malloc(size)) argument
143 #define SLJIT_FREE(ptr, allocator_data) (free(ptr)) argument
DsljitNativeARM_32.c426 SLJIT_FREE(curr_patch, compiler->allocator_data); in resolve_const_pool_index()
436 …_patch = (struct future_patch*)SLJIT_MALLOC(sizeof(struct future_patch), compiler->allocator_data); in resolve_const_pool_index()
441 SLJIT_FREE(curr_patch, compiler->allocator_data); in resolve_const_pool_index()
/external/pcre/src/
Dpcre2_jit_misc.c53 PRIV(jit_free_rodata)(void *current, void *allocator_data) in PRIV()
57 (void)allocator_data; in PRIV()
61 SLJIT_UNUSED_ARG(allocator_data); in PRIV()
66 SLJIT_FREE(current, allocator_data); in PRIV()
86 void *allocator_data = memctl; in PRIV()
93 PRIV(jit_free_rodata)(functions->read_only_data_heads[i], allocator_data); in PRIV()
96 SLJIT_FREE(functions, allocator_data); in PRIV()
Dpcre2_jit_compile.c70 #define SLJIT_MALLOC(size, allocator_data) pcre2_jit_malloc(size, allocator_data) argument
71 #define SLJIT_FREE(ptr, allocator_data) pcre2_jit_free(ptr, allocator_data) argument
73 static void * pcre2_jit_malloc(size_t size, void *allocator_data) in pcre2_jit_malloc() argument
75 pcre2_memctl *allocator = ((pcre2_memctl*)allocator_data); in pcre2_jit_malloc()
79 static void pcre2_jit_free(void *ptr, void *allocator_data) in pcre2_jit_free() argument
81 pcre2_memctl *allocator = ((pcre2_memctl*)allocator_data); in pcre2_jit_free()
3294 result = (sljit_uw *)SLJIT_MALLOC(size + sizeof(sljit_uw), compiler->allocator_data); in allocate_read_only_data()
14152 void *allocator_data = &re->memctl; in jit_compile() local
14266 common->optimized_cbracket = (sljit_u8 *)SLJIT_MALLOC(re->top_bracket + 1, allocator_data); in jit_compile()
14282 SLJIT_FREE(common->optimized_cbracket, allocator_data); in jit_compile()
[all …]
/external/google-fruit/include/fruit/impl/data_structures/
Dfixed_size_allocator.defn.h101 inline FixedSizeAllocator::FixedSizeAllocator(const FixedSizeAllocatorData& allocator_data) in FixedSizeAllocator() argument
102 : on_destruction(allocator_data.num_types_to_destroy) { in FixedSizeAllocator()
104 storage_begin = new char[allocator_data.total_size + 1]; in FixedSizeAllocator()
107 remaining_types = allocator_data.types; in FixedSizeAllocator()
Dfixed_size_allocator.h92 explicit FixedSizeAllocator(const FixedSizeAllocatorData& allocator_data);
/external/libdav1d/include/dav1d/
Dpicture.h104 void *allocator_data; ///< pointer managed by the allocator member
/external/libdav1d/tools/
Ddav1d.c170 p->allocator_data = buf; in picture_alloc()
182 free(p->allocator_data); in picture_release()
/external/libdav1d/src/
Dpicture.c75 p->allocator_data = buf; in dav1d_default_picture_alloc()
86 dav1d_mem_pool_push(cookie, p->allocator_data); in dav1d_default_picture_release()