Lines Matching refs:buf

353 	compiler->buf = (struct sljit_memory_fragment*)SLJIT_MALLOC(BUF_SIZE, allocator_data);  in sljit_create_compiler()
356 if (!compiler->buf || !compiler->abuf) { in sljit_create_compiler()
357 if (compiler->buf) in sljit_create_compiler()
358 SLJIT_FREE(compiler->buf, allocator_data); in sljit_create_compiler()
365 compiler->buf->next = NULL; in sljit_create_compiler()
366 compiler->buf->used_size = 0; in sljit_create_compiler()
384 SLJIT_FREE(compiler->buf, allocator_data); in sljit_create_compiler()
413 struct sljit_memory_fragment *buf; in sljit_free_compiler() local
418 buf = compiler->buf; in sljit_free_compiler()
419 while (buf) { in sljit_free_compiler()
420 curr = buf; in sljit_free_compiler()
421 buf = buf->next; in sljit_free_compiler()
425 buf = compiler->abuf; in sljit_free_compiler()
426 while (buf) { in sljit_free_compiler()
427 curr = buf; in sljit_free_compiler()
428 buf = buf->next; in sljit_free_compiler()
492 …if (compiler->buf->used_size + size <= (BUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_fr… in ensure_buf()
493 ret = compiler->buf->memory + compiler->buf->used_size; in ensure_buf()
494 compiler->buf->used_size += size; in ensure_buf()
499 new_frag->next = compiler->buf; in ensure_buf()
500 compiler->buf = new_frag; in ensure_buf()
542 struct sljit_memory_fragment *buf = compiler->buf; in reverse_buf() local
547 tmp = buf->next; in reverse_buf()
548 buf->next = prev; in reverse_buf()
549 prev = buf; in reverse_buf()
550 buf = tmp; in reverse_buf()
551 } while (buf != NULL); in reverse_buf()
553 compiler->buf = prev; in reverse_buf()