Lines Matching refs:size

486 static void* ensure_buf(struct sljit_compiler *compiler, sljit_uw size)  in ensure_buf()  argument
491 SLJIT_ASSERT(size <= 256); in ensure_buf()
492 …if (compiler->buf->used_size + size <= (BUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_fr… in ensure_buf()
494 compiler->buf->used_size += size; in ensure_buf()
501 new_frag->used_size = size; in ensure_buf()
505 static void* ensure_abuf(struct sljit_compiler *compiler, sljit_uw size) in ensure_abuf() argument
510 SLJIT_ASSERT(size <= 256); in ensure_abuf()
511 …if (compiler->abuf->used_size + size <= (ABUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_… in ensure_abuf()
513 compiler->abuf->used_size += size; in ensure_abuf()
520 new_frag->used_size = size; in ensure_abuf()
524 SLJIT_API_FUNC_ATTRIBUTE void* sljit_alloc_memory(struct sljit_compiler *compiler, sljit_si size) in sljit_alloc_memory() argument
529 if (size <= 0 || size > 128) in sljit_alloc_memory()
531 size = (size + 7) & ~7; in sljit_alloc_memory()
533 if (size <= 0 || size > 64) in sljit_alloc_memory()
535 size = (size + 3) & ~3; in sljit_alloc_memory()
537 return ensure_abuf(compiler, size); in sljit_alloc_memory()
593 label->size = compiler->size; in set_label()
615 const_->addr = compiler->size; in set_const()
914 CHECK_ARGUMENT(compiler->size > 0); in check_sljit_generate_code()
1131 void *instruction, sljit_si size) in check_sljit_emit_op_custom() argument
1142 CHECK_ARGUMENT(size > 0 && size < 16); in check_sljit_emit_op_custom()
1144 CHECK_ARGUMENT((size == 2 && (((sljit_sw)instruction) & 0x1) == 0) in check_sljit_emit_op_custom()
1145 || (size == 4 && (((sljit_sw)instruction) & 0x3) == 0)); in check_sljit_emit_op_custom()
1147 CHECK_ARGUMENT(size == 4 && (((sljit_sw)instruction) & 0x3) == 0); in check_sljit_emit_op_custom()
1154 for (i = 0; i < size; i++) in check_sljit_emit_op_custom()
1726 SLJIT_API_FUNC_ATTRIBUTE void* sljit_alloc_memory(struct sljit_compiler *compiler, sljit_si size) in sljit_alloc_memory() argument
1729 SLJIT_UNUSED_ARG(size); in sljit_alloc_memory()
1862 void *instruction, sljit_si size) in sljit_emit_op_custom() argument
1866 SLJIT_UNUSED_ARG(size); in sljit_emit_op_custom()