Home | History | Annotate | Download | only in sljit

Lines Matching refs:sljit_uw

53 	(sljit_uw*)(((sljit_uw)(ptr) + (CONST_POOL_ALIGNMENT * sizeof(sljit_uw)) - 1) & ~((CONST_POOL_ALIGNMENT * sizeof(sljit_uw)) - 1))
55 (((max_diff) / (sljit_s32)sizeof(sljit_uw)) - (CONST_POOL_ALIGNMENT - 1))
132 sljit_uw* inst;
133 sljit_uw* cpool_ptr;
134 sljit_uw* cpool_end;
142 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw));
148 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw));
157 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw));
167 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst)
169 sljit_uw* ptr;
174 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw));
181 static sljit_s32 push_inst_with_literal(struct sljit_compiler *compiler, sljit_uw inst, sljit_uw literal)
183 sljit_uw* ptr;
184 sljit_uw cpool_index = CPOOL_SIZE;
185 sljit_uw* cpool_ptr;
186 sljit_uw* cpool_end;
219 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw));
231 static sljit_s32 push_inst_with_unique_literal(struct sljit_compiler *compiler, sljit_uw inst, sljit_uw literal)
233 sljit_uw* ptr;
238 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw));
266 static sljit_uw patch_pc_relative_loads(sljit_uw *last_pc_patch, sljit_uw *code_ptr, sljit_uw* const_pool, sljit_uw cpool_size)
268 sljit_uw diff;
269 sljit_uw ind;
270 sljit_uw counter = 0;
271 sljit_uw* clear_const_pool = const_pool;
272 sljit_uw* clear_const_pool_end = const_pool + cpool_size;
279 *clear_const_pool++ = (sljit_uw)(-1);
318 static sljit_s32 resolve_const_pool_index(struct sljit_compiler *compiler, struct future_patch **first_patch, sljit_uw cpool_current_index, sljit_uw *cpool_start_address, sljit_uw *buf_ptr)
336 if ((sljit_uw)curr_patch->index == cpool_current_index) {
351 if ((sljit_uw)value > cpool_current_index) {
373 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst)
375 sljit_uw* ptr;
377 ptr = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw));
392 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_uw *code_ptr, sljit_uw *code)
449 static SLJIT_INLINE void inline_set_jump_addr(sljit_uw addr, sljit_uw new_addr, sljit_s32 flush)
452 sljit_uw *ptr = (sljit_uw*)addr;
453 sljit_uw *inst = (sljit_uw*)ptr[0];
454 sljit_uw mov_pc = ptr[1];
495 sljit_uw *inst = (sljit_uw*)addr;
505 static sljit_uw get_imm(sljit_uw imm);
507 static SLJIT_INLINE void inline_set_const(sljit_uw addr, sljit_sw new_constant, sljit_s32 flush)
510 sljit_uw *ptr = (sljit_uw*)addr;
511 sljit_uw *inst = (sljit_uw*)ptr[0];
512 sljit_uw ldr_literal = ptr[1];
513 sljit_uw src2;
546 sljit_uw *inst = (sljit_uw*)addr;
559 sljit_uw *code;
560 sljit_uw *code_ptr;
561 sljit_uw *buf_ptr;
562 sljit_uw *buf_end;
563 sljit_uw size;
564 sljit_uw word_count;
566 sljit_uw cpool_size;
567 sljit_uw cpool_skip_alignment;
568 sljit_uw cpool_current_index;
569 sljit_uw *cpool_start_address;
570 sljit_uw *last_pc_patch;
590 code = (sljit_uw*)SLJIT_MALLOC_EXEC(size * sizeof(sljit_uw));
611 label->addr = (sljit_uw)code;
617 buf_ptr = (sljit_uw*)buf->memory;
639 label->addr = (sljit_uw)code_ptr;
657 jump->addr = (sljit_uw)code_ptr;
659 jump->addr = (sljit_uw)(code_ptr - 2);
667 label->addr = (sljit_uw)(code_ptr + 1);
673 const_->addr = (sljit_uw)code_ptr;
675 const_->addr = (sljit_uw)(code_ptr - 1);
732 buf_ptr = (sljit_uw*)jump->addr;
747 jump->addr = (sljit_uw)code_ptr;
748 code_ptr[0] = (sljit_uw)buf_ptr;
750 inline_set_jump_addr((sljit_uw)code_ptr, (jump->flags & JUMP_LABEL) ? jump->u.label->addr : jump->u.target, 0);
753 inline_set_jump_addr((sljit_uw)buf_ptr, (jump->flags & JUMP_LABEL) ? jump->u.label->addr : jump->u.target, 0);
766 inline_set_jump_addr((sljit_uw)buf_ptr, (jump->flags & JUMP_LABEL) ? jump->u.label->addr : jump->u.target, 0);
775 buf_ptr = (sljit_uw*)const_->addr;
776 const_->addr = (sljit_uw)code_ptr;
778 code_ptr[0] = (sljit_uw)buf_ptr;
785 inline_set_const((sljit_uw)code_ptr, *buf_ptr, 0);
795 compiler->executable_size = (code_ptr - code) * sizeof(sljit_uw);
833 sljit_uw push;
887 sljit_uw pop;
1140 static sljit_uw get_imm(sljit_uw imm)
1178 static sljit_s32 generate_int(struct sljit_compiler *compiler, sljit_s32 reg, sljit_uw imm, sljit_s32 positive)
1180 sljit_uw mask;
1181 sljit_uw imm1;
1182 sljit_uw imm2;
1289 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 reg, sljit_uw imm)
1291 sljit_uw tmp;
1338 sljit_uw imm;
1423 if ((next_arg & SLJIT_MEM) && ((sljit_uw)argw - (sljit_uw)next_argw <= 0xfff || (sljit_uw)next_argw - (sljit_uw)argw <= 0xfff))
1434 if (arg == next_arg && ((sljit_uw)argw - (sljit_uw)next_argw <= 0xfff || (sljit_uw)next_argw - (sljit_uw)argw <= 0xfff))
1464 sljit_uw imm;
1478 imm = (sljit_uw)(argw - compiler->cache_argw);
1479 if ((compiler->cache_arg & SLJIT_IMM) && (imm <= (sljit_uw)max_delta || imm >= (sljit_uw)-max_delta)) {
1480 if (imm <= (sljit_uw)max_delta) {
1495 imm = (sljit_uw)(argw - next_argw);
1496 if ((next_arg & SLJIT_MEM) && (imm <= (sljit_uw)max_delta || imm >= (sljit_uw)-max_delta)) {
1517 imm = (sljit_uw)(argw - compiler->cache_argw);
1518 if (compiler->cache_arg == arg && imm <= (sljit_uw)max_delta) {
1523 if (compiler->cache_arg == arg && imm >= (sljit_uw)-max_delta) {
1525 imm = (sljit_uw)-(sljit_sw)imm;
1563 imm = (sljit_uw)(argw - next_argw);
1564 if (arg == next_arg && !(inp_flags & WRITE_BACK) && (imm <= (sljit_uw)max_delta || imm >= (sljit_uw)-max_delta)) {
1992 return push_inst(compiler, *(sljit_uw*)instruction);
2046 sljit_uw imm;
2329 static sljit_uw get_cc(sljit_s32 type)
2484 sljit_uw cc, ins;
2558 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_addr)
2563 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant)