Lines Matching refs:allocator_data

328 SLJIT_API_FUNC_ATTRIBUTE struct sljit_compiler* sljit_create_compiler(void *allocator_data)  in sljit_create_compiler()  argument
330 …er *compiler = (struct sljit_compiler*)SLJIT_MALLOC(sizeof(struct sljit_compiler), allocator_data); in sljit_create_compiler()
352 compiler->allocator_data = allocator_data; in sljit_create_compiler()
353 compiler->buf = (struct sljit_memory_fragment*)SLJIT_MALLOC(BUF_SIZE, allocator_data); in sljit_create_compiler()
354 compiler->abuf = (struct sljit_memory_fragment*)SLJIT_MALLOC(ABUF_SIZE, allocator_data); in sljit_create_compiler()
358 SLJIT_FREE(compiler->buf, allocator_data); in sljit_create_compiler()
360 SLJIT_FREE(compiler->abuf, allocator_data); in sljit_create_compiler()
361 SLJIT_FREE(compiler, allocator_data); in sljit_create_compiler()
382 + CPOOL_SIZE * sizeof(sljit_ub), allocator_data); in sljit_create_compiler()
384 SLJIT_FREE(compiler->buf, allocator_data); in sljit_create_compiler()
385 SLJIT_FREE(compiler->abuf, allocator_data); in sljit_create_compiler()
386 SLJIT_FREE(compiler, allocator_data); in sljit_create_compiler()
415 void *allocator_data = compiler->allocator_data; in sljit_free_compiler() local
416 SLJIT_UNUSED_ARG(allocator_data); in sljit_free_compiler()
422 SLJIT_FREE(curr, allocator_data); in sljit_free_compiler()
429 SLJIT_FREE(curr, allocator_data); in sljit_free_compiler()
433 SLJIT_FREE(compiler->cpool, allocator_data); in sljit_free_compiler()
435 SLJIT_FREE(compiler, allocator_data); in sljit_free_compiler()
497 new_frag = (struct sljit_memory_fragment*)SLJIT_MALLOC(BUF_SIZE, compiler->allocator_data); in ensure_buf()
516 new_frag = (struct sljit_memory_fragment*)SLJIT_MALLOC(ABUF_SIZE, compiler->allocator_data); in ensure_abuf()