Lines Matching refs:sljit_uw

52 …(sljit_uw*)(((sljit_uw)(ptr) + (CONST_POOL_ALIGNMENT * sizeof(sljit_uw)) - 1) & ~((CONST_POOL_ALIG…
54 (((max_diff) / (sljit_s32)sizeof(sljit_uw)) - (CONST_POOL_ALIGNMENT - 1))
132 sljit_uw* inst; in push_cpool()
133 sljit_uw* cpool_ptr; in push_cpool()
134 sljit_uw* cpool_end; in push_cpool()
142 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool()
148 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool()
157 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool()
167 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst) in push_inst()
169 sljit_uw* ptr; in push_inst()
174 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_inst()
181 static sljit_s32 push_inst_with_literal(struct sljit_compiler *compiler, sljit_uw inst, sljit_uw li… in push_inst_with_literal()
183 sljit_uw* ptr; in push_inst_with_literal()
184 sljit_uw cpool_index = CPOOL_SIZE; in push_inst_with_literal()
185 sljit_uw* cpool_ptr; in push_inst_with_literal()
186 sljit_uw* cpool_end; in push_inst_with_literal()
219 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_inst_with_literal()
231 …s32 push_inst_with_unique_literal(struct sljit_compiler *compiler, sljit_uw inst, sljit_uw literal) in push_inst_with_unique_literal()
233 sljit_uw* ptr; in push_inst_with_unique_literal()
238 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_inst_with_unique_literal()
266 static sljit_uw patch_pc_relative_loads(sljit_uw *last_pc_patch, sljit_uw *code_ptr, sljit_uw* cons… in patch_pc_relative_loads()
268 sljit_uw diff; in patch_pc_relative_loads()
269 sljit_uw ind; in patch_pc_relative_loads()
270 sljit_uw counter = 0; in patch_pc_relative_loads()
271 sljit_uw* clear_const_pool = const_pool; in patch_pc_relative_loads()
272 sljit_uw* clear_const_pool_end = const_pool + cpool_size; in patch_pc_relative_loads()
279 *clear_const_pool++ = (sljit_uw)(-1); in patch_pc_relative_loads()
318 …piler, struct future_patch **first_patch, sljit_uw cpool_current_index, sljit_uw *cpool_start_addr… in resolve_const_pool_index()
336 if ((sljit_uw)curr_patch->index == cpool_current_index) { in resolve_const_pool_index()
351 if ((sljit_uw)value > cpool_current_index) { in resolve_const_pool_index()
373 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst) in push_inst()
375 sljit_uw* ptr; in push_inst()
377 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_inst()
392 …IT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_uw *code_ptr, sljit_uw *code, … in detect_jump_type()
449 static SLJIT_INLINE void inline_set_jump_addr(sljit_uw jump_ptr, sljit_sw executable_offset, sljit_… in inline_set_jump_addr()
452 sljit_uw *ptr = (sljit_uw *)jump_ptr; in inline_set_jump_addr()
453 sljit_uw *inst = (sljit_uw *)ptr[0]; in inline_set_jump_addr()
454 sljit_uw mov_pc = ptr[1]; in inline_set_jump_addr()
463 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
470 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
485 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
491 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
499 sljit_uw *inst = (sljit_uw*)jump_ptr; in inline_set_jump_addr()
504 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
510 static sljit_uw get_imm(sljit_uw imm);
512 static SLJIT_INLINE void inline_set_const(sljit_uw addr, sljit_sw executable_offset, sljit_sw new_c… in inline_set_const()
515 sljit_uw *ptr = (sljit_uw*)addr; in inline_set_const()
516 sljit_uw *inst = (sljit_uw*)ptr[0]; in inline_set_const()
517 sljit_uw ldr_literal = ptr[1]; in inline_set_const()
518 sljit_uw src2; in inline_set_const()
524 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
534 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
548 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
554 sljit_uw *inst = (sljit_uw*)addr; in inline_set_const()
559 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
568 sljit_uw *code; in sljit_generate_code()
569 sljit_uw *code_ptr; in sljit_generate_code()
570 sljit_uw *buf_ptr; in sljit_generate_code()
571 sljit_uw *buf_end; in sljit_generate_code()
572 sljit_uw size; in sljit_generate_code()
573 sljit_uw word_count; in sljit_generate_code()
577 sljit_uw cpool_size; in sljit_generate_code()
578 sljit_uw cpool_skip_alignment; in sljit_generate_code()
579 sljit_uw cpool_current_index; in sljit_generate_code()
580 sljit_uw *cpool_start_address; in sljit_generate_code()
581 sljit_uw *last_pc_patch; in sljit_generate_code()
601 code = (sljit_uw*)SLJIT_MALLOC_EXEC(size * sizeof(sljit_uw)); in sljit_generate_code()
623 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code, executable_offset); in sljit_generate_code()
628 buf_ptr = (sljit_uw*)buf->memory; in sljit_generate_code()
650 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
668 jump->addr = (sljit_uw)code_ptr; in sljit_generate_code()
670 jump->addr = (sljit_uw)(code_ptr - 2); in sljit_generate_code()
678 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr + 1, executable_offset); in sljit_generate_code()
684 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
686 const_->addr = (sljit_uw)(code_ptr - 1); in sljit_generate_code()
743 buf_ptr = (sljit_uw *)jump->addr; in sljit_generate_code()
759 jump->addr = (sljit_uw)code_ptr; in sljit_generate_code()
760 code_ptr[0] = (sljit_uw)buf_ptr; in sljit_generate_code()
762 …inline_set_jump_addr((sljit_uw)code_ptr, executable_offset, (jump->flags & JUMP_LABEL) ? jump->u.l… in sljit_generate_code()
765 …inline_set_jump_addr((sljit_uw)buf_ptr, executable_offset, (jump->flags & JUMP_LABEL) ? jump->u.la… in sljit_generate_code()
778 …inline_set_jump_addr((sljit_uw)buf_ptr, executable_offset, (jump->flags & JUMP_LABEL) ? jump->u.la… in sljit_generate_code()
787 buf_ptr = (sljit_uw*)const_->addr; in sljit_generate_code()
788 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
790 code_ptr[0] = (sljit_uw)buf_ptr; in sljit_generate_code()
797 inline_set_const((sljit_uw)code_ptr, executable_offset, *buf_ptr, 0); in sljit_generate_code()
808 compiler->executable_size = (code_ptr - code) * sizeof(sljit_uw); in sljit_generate_code()
810 code = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(code, executable_offset); in sljit_generate_code()
811 code_ptr = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
862 static const sljit_uw data_transfer_insts[16] = {
906 sljit_uw push; in sljit_emit_enter()
960 sljit_uw pop; in sljit_emit_return()
1153 static sljit_uw get_imm(sljit_uw imm) in get_imm()
1191 static sljit_s32 generate_int(struct sljit_compiler *compiler, sljit_s32 reg, sljit_uw imm, sljit_s… in generate_int()
1193 sljit_uw mask; in generate_int()
1194 sljit_uw imm1; in generate_int()
1195 sljit_uw imm2; in generate_int()
1302 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 reg, sljit_uw imm) in load_immediate()
1304 sljit_uw tmp; in load_immediate()
1338 sljit_uw offset_reg, imm; in emit_op_mem()
1339 sljit_uw is_type1_transfer = IS_TYPE1_TRANSFER(flags); in emit_op_mem()
1797 return push_inst(compiler, *(sljit_uw*)instruction); in sljit_emit_op_custom()
1813 sljit_uw imm; in emit_fop_mem()
2064 static sljit_uw get_cc(sljit_s32 type) in get_cc()
2218 sljit_uw cc, ins; in sljit_emit_op_flags()
2258 sljit_uw cc, tmp; in sljit_emit_cmov()
2277 tmp = (sljit_uw) srcw; in sljit_emit_cmov()
2318 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr()
2323 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()