Lines Matching refs:sljit_uw
58 …(sljit_uw*)(((sljit_uw)(ptr) + (CONST_POOL_ALIGNMENT * sizeof(sljit_uw)) - 1) & ~((CONST_POOL_ALIG…
60 (((max_diff) / (sljit_s32)sizeof(sljit_uw)) - (CONST_POOL_ALIGNMENT - 1))
142 sljit_uw* inst; in push_cpool()
143 sljit_uw* cpool_ptr; in push_cpool()
144 sljit_uw* cpool_end; in push_cpool()
152 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool()
158 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool()
167 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool()
177 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst) in push_inst()
179 sljit_uw* ptr; in push_inst()
184 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_inst()
191 static sljit_s32 push_inst_with_literal(struct sljit_compiler *compiler, sljit_uw inst, sljit_uw li… in push_inst_with_literal()
193 sljit_uw* ptr; in push_inst_with_literal()
194 sljit_uw cpool_index = CPOOL_SIZE; in push_inst_with_literal()
195 sljit_uw* cpool_ptr; in push_inst_with_literal()
196 sljit_uw* cpool_end; in push_inst_with_literal()
229 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_inst_with_literal()
241 …s32 push_inst_with_unique_literal(struct sljit_compiler *compiler, sljit_uw inst, sljit_uw literal) in push_inst_with_unique_literal()
243 sljit_uw* ptr; in push_inst_with_unique_literal()
248 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_inst_with_unique_literal()
278 static sljit_uw patch_pc_relative_loads(sljit_uw *last_pc_patch, sljit_uw *code_ptr, sljit_uw* cons… in patch_pc_relative_loads()
280 sljit_uw diff; in patch_pc_relative_loads()
281 sljit_uw ind; in patch_pc_relative_loads()
282 sljit_uw counter = 0; in patch_pc_relative_loads()
283 sljit_uw* clear_const_pool = const_pool; in patch_pc_relative_loads()
284 sljit_uw* clear_const_pool_end = const_pool + cpool_size; in patch_pc_relative_loads()
291 *clear_const_pool++ = (sljit_uw)(-1); in patch_pc_relative_loads()
330 …piler, struct future_patch **first_patch, sljit_uw cpool_current_index, sljit_uw *cpool_start_addr… in resolve_const_pool_index()
348 if ((sljit_uw)curr_patch->index == cpool_current_index) { in resolve_const_pool_index()
363 if ((sljit_uw)value > cpool_current_index) { in resolve_const_pool_index()
385 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst) in push_inst()
387 sljit_uw* ptr; in push_inst()
389 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_inst()
404 …IT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_uw *code_ptr, sljit_uw *code, … in detect_jump_type()
461 static SLJIT_INLINE void inline_set_jump_addr(sljit_uw jump_ptr, sljit_sw executable_offset, sljit_… in inline_set_jump_addr()
464 sljit_uw *ptr = (sljit_uw *)jump_ptr; in inline_set_jump_addr()
465 sljit_uw *inst = (sljit_uw *)ptr[0]; in inline_set_jump_addr()
466 sljit_uw mov_pc = ptr[1]; in inline_set_jump_addr()
475 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
482 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
497 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
503 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
511 sljit_uw *inst = (sljit_uw*)jump_ptr; in inline_set_jump_addr()
516 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
522 static sljit_uw get_imm(sljit_uw imm);
524 static SLJIT_INLINE void inline_set_const(sljit_uw addr, sljit_sw executable_offset, sljit_sw new_c… in inline_set_const()
527 sljit_uw *ptr = (sljit_uw*)addr; in inline_set_const()
528 sljit_uw *inst = (sljit_uw*)ptr[0]; in inline_set_const()
529 sljit_uw ldr_literal = ptr[1]; in inline_set_const()
530 sljit_uw src2; in inline_set_const()
536 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
546 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
560 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
566 sljit_uw *inst = (sljit_uw*)addr; in inline_set_const()
571 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
580 sljit_uw *code; in sljit_generate_code()
581 sljit_uw *code_ptr; in sljit_generate_code()
582 sljit_uw *buf_ptr; in sljit_generate_code()
583 sljit_uw *buf_end; in sljit_generate_code()
584 sljit_uw size; in sljit_generate_code()
585 sljit_uw word_count; in sljit_generate_code()
586 sljit_uw next_addr; in sljit_generate_code()
590 sljit_uw cpool_size; in sljit_generate_code()
591 sljit_uw cpool_skip_alignment; in sljit_generate_code()
592 sljit_uw cpool_current_index; in sljit_generate_code()
593 sljit_uw *cpool_start_address; in sljit_generate_code()
594 sljit_uw *last_pc_patch; in sljit_generate_code()
615 code = (sljit_uw*)SLJIT_MALLOC_EXEC(size * sizeof(sljit_uw)); in sljit_generate_code()
639 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code, executable_offset); in sljit_generate_code()
644 buf_ptr = (sljit_uw*)buf->memory; in sljit_generate_code()
666 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
689 jump->addr = (sljit_uw)code_ptr; in sljit_generate_code()
691 jump->addr = (sljit_uw)(code_ptr - 2); in sljit_generate_code()
699 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr + 1, executable_offset); in sljit_generate_code()
705 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
707 const_->addr = (sljit_uw)(code_ptr - 1); in sljit_generate_code()
713 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
772 buf_ptr = (sljit_uw *)jump->addr; in sljit_generate_code()
788 jump->addr = (sljit_uw)code_ptr; in sljit_generate_code()
789 code_ptr[0] = (sljit_uw)buf_ptr; in sljit_generate_code()
791 …inline_set_jump_addr((sljit_uw)code_ptr, executable_offset, (jump->flags & JUMP_LABEL) ? jump->u.l… in sljit_generate_code()
794 …inline_set_jump_addr((sljit_uw)buf_ptr, executable_offset, (jump->flags & JUMP_LABEL) ? jump->u.la… in sljit_generate_code()
807 …inline_set_jump_addr((sljit_uw)buf_ptr, executable_offset, (jump->flags & JUMP_LABEL) ? jump->u.la… in sljit_generate_code()
816 buf_ptr = (sljit_uw*)const_->addr; in sljit_generate_code()
817 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
819 code_ptr[0] = (sljit_uw)buf_ptr; in sljit_generate_code()
826 inline_set_const((sljit_uw)code_ptr, executable_offset, *buf_ptr, 0); in sljit_generate_code()
836 buf_ptr = (sljit_uw*)put_label->addr; in sljit_generate_code()
853 compiler->executable_size = (code_ptr - code) * sizeof(sljit_uw); in sljit_generate_code()
855 code = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(code, executable_offset); in sljit_generate_code()
856 code_ptr = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
907 static const sljit_uw data_transfer_insts[16] = {
947 sljit_uw push; in sljit_emit_enter()
1003 sljit_uw pop; in sljit_emit_return()
1188 static sljit_uw get_imm(sljit_uw imm) in get_imm()
1226 static sljit_s32 generate_int(struct sljit_compiler *compiler, sljit_s32 reg, sljit_uw imm, sljit_s… in generate_int()
1228 sljit_uw mask; in generate_int()
1229 sljit_uw imm1; in generate_int()
1230 sljit_uw imm2; in generate_int()
1337 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 reg, sljit_uw imm) in load_immediate()
1339 sljit_uw tmp; in load_immediate()
1373 sljit_uw imm, offset_reg; in emit_op_mem()
1374 sljit_uw is_type1_transfer = IS_TYPE1_TRANSFER(flags); in emit_op_mem()
1834 return push_inst(compiler, *(sljit_uw*)instruction); in sljit_emit_op_custom()
1850 sljit_uw imm; in emit_fop_mem()
2082 static sljit_uw get_cc(sljit_s32 type) in get_cc()
2511 sljit_uw cc, ins; in sljit_emit_op_flags()
2551 sljit_uw cc, tmp; in sljit_emit_cmov()
2570 tmp = (sljit_uw) srcw; in sljit_emit_cmov()
2589 sljit_uw is_type1_transfer, inst; in sljit_emit_mem()
2742 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr()
2747 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()