Home
last modified time | relevance | path

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

/third_party/pcre2/pcre2/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 …]
DsljitLir.c370 SLJIT_API_FUNC_ATTRIBUTE struct sljit_compiler* sljit_create_compiler(void *allocator_data, void *e… in sljit_create_compiler() argument
372 …er *compiler = (struct sljit_compiler*)SLJIT_MALLOC(sizeof(struct sljit_compiler), allocator_data); in sljit_create_compiler()
394 compiler->allocator_data = allocator_data; in sljit_create_compiler()
396 compiler->buf = (struct sljit_memory_fragment*)SLJIT_MALLOC(BUF_SIZE, allocator_data); in sljit_create_compiler()
397 compiler->abuf = (struct sljit_memory_fragment*)SLJIT_MALLOC(ABUF_SIZE, allocator_data); in sljit_create_compiler()
401 SLJIT_FREE(compiler->buf, allocator_data); in sljit_create_compiler()
403 SLJIT_FREE(compiler->abuf, allocator_data); in sljit_create_compiler()
404 SLJIT_FREE(compiler, allocator_data); in sljit_create_compiler()
425 + CPOOL_SIZE * sizeof(sljit_u8), allocator_data); in sljit_create_compiler()
427 SLJIT_FREE(compiler->buf, allocator_data); in sljit_create_compiler()
[all …]
DsljitLir.h421 void *allocator_data; member
538 SLJIT_API_FUNC_ATTRIBUTE struct sljit_compiler* sljit_create_compiler(void *allocator_data, void *e…
1486 …ack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_data);
1487 …I_FUNC_ATTRIBUTE void SLJIT_FUNC sljit_free_stack(struct sljit_stack *stack, void *allocator_data);
DsljitConfigInternal.h240 #define SLJIT_MALLOC(size, allocator_data) malloc(size) argument
244 #define SLJIT_FREE(ptr, allocator_data) free(ptr) argument
DsljitNativeARM_32.c363 SLJIT_FREE(curr_patch, compiler->allocator_data); in resolve_const_pool_index()
373 …_patch = (struct future_patch*)SLJIT_MALLOC(sizeof(struct future_patch), compiler->allocator_data); in resolve_const_pool_index()
378 SLJIT_FREE(curr_patch, compiler->allocator_data); in resolve_const_pool_index()
/third_party/pcre2/pcre2/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.c64 #define SLJIT_MALLOC(size, allocator_data) pcre2_jit_malloc(size, allocator_data) argument
65 #define SLJIT_FREE(ptr, allocator_data) pcre2_jit_free(ptr, allocator_data) argument
67 static void * pcre2_jit_malloc(size_t size, void *allocator_data) in pcre2_jit_malloc() argument
69 pcre2_memctl *allocator = ((pcre2_memctl*)allocator_data); in pcre2_jit_malloc()
73 static void pcre2_jit_free(void *ptr, void *allocator_data) in pcre2_jit_free() argument
75 pcre2_memctl *allocator = ((pcre2_memctl*)allocator_data); in pcre2_jit_free()
3174 result = (sljit_uw *)SLJIT_MALLOC(size + sizeof(sljit_uw), compiler->allocator_data); in allocate_read_only_data()
13699 void *allocator_data = &re->memctl; in jit_compile() local
13813 common->optimized_cbracket = (sljit_u8 *)SLJIT_MALLOC(re->top_bracket + 1, allocator_data); in jit_compile()
13829 SLJIT_FREE(common->optimized_cbracket, allocator_data); in jit_compile()
[all …]
/third_party/ffmpeg/libavcodec/
Dlibdav1d.c114 p->allocator_data = buf; in libdav1d_picture_allocator()
121 AVBufferRef *buf = p->allocator_data; in libdav1d_picture_release()
261 av_assert0(p->data[0] && p->allocator_data); in libdav1d_receive_frame()
264 frame->buf[0] = av_buffer_ref(p->allocator_data); in libdav1d_receive_frame()