Lines Matching refs:code_ptr

287 static sljit_uw patch_pc_relative_loads(sljit_uw *last_pc_patch, sljit_uw *code_ptr, sljit_uw* cons…  in patch_pc_relative_loads()  argument
295 SLJIT_ASSERT(const_pool - code_ptr <= CONST_POOL_ALIGNMENT); in patch_pc_relative_loads()
302 while (last_pc_patch < code_ptr) { in patch_pc_relative_loads()
413 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_uw *code_ptr, sljit_u… in detect_jump_type() argument
422 code_ptr--; in detect_jump_type()
425 diff = ((sljit_sw)jump->u.target - (sljit_sw)(code_ptr + 2) - executable_offset); in detect_jump_type()
428 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)(code_ptr + 2)); in detect_jump_type()
437 *code_ptr = (BL - CONDITIONAL) | (*(code_ptr + 1) & COND_MASK); in detect_jump_type()
444 *code_ptr = (B - CONDITIONAL) | (*code_ptr & COND_MASK); in detect_jump_type()
450 diff = ((sljit_sw)jump->u.target - (sljit_sw)code_ptr - executable_offset); in detect_jump_type()
453 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)code_ptr); in detect_jump_type()
461 code_ptr -= 2; in detect_jump_type()
462 …*code_ptr = ((jump->flags & IS_BL) ? (BL - CONDITIONAL) : (B - CONDITIONAL)) | (code_ptr[2] & COND… in detect_jump_type()
664 sljit_uw *code_ptr; in sljit_generate_code() local
711 code_ptr = code; in sljit_generate_code()
749 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
750 label->size = (sljit_uw)(code_ptr - code); in sljit_generate_code()
760 *code_ptr = *buf_ptr++; in sljit_generate_code()
770 if (detect_jump_type(jump, code_ptr, code, executable_offset)) in sljit_generate_code()
771 code_ptr--; in sljit_generate_code()
772 jump->addr = (sljit_uw)code_ptr; in sljit_generate_code()
774 jump->addr = (sljit_uw)(code_ptr - 2); in sljit_generate_code()
775 if (detect_jump_type(jump, code_ptr, code, executable_offset)) in sljit_generate_code()
776 code_ptr -= 2; in sljit_generate_code()
782 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr + 1, executable_offset); in sljit_generate_code()
783 label->size = (sljit_uw)((code_ptr + 1) - code); in sljit_generate_code()
788 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
790 const_->addr = (sljit_uw)(code_ptr - 1); in sljit_generate_code()
796 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
801 code_ptr++; in sljit_generate_code()
808 cpool_start_address = ALIGN_INSTRUCTION(code_ptr + 1); in sljit_generate_code()
809 …cpool_current_index = patch_pc_relative_loads(last_pc_patch, code_ptr, cpool_start_address, cpool_… in sljit_generate_code()
812 …*code_ptr = B | (((sljit_uw)(cpool_start_address - code_ptr) + cpool_current_index - 2) & ~PUSH_PO… in sljit_generate_code()
813 code_ptr = (sljit_uw*)(cpool_start_address + cpool_current_index); in sljit_generate_code()
817 last_pc_patch = code_ptr; in sljit_generate_code()
832 cpool_start_address = ALIGN_INSTRUCTION(code_ptr); in sljit_generate_code()
833 …cpool_current_index = patch_pc_relative_loads(last_pc_patch, code_ptr, cpool_start_address, compil… in sljit_generate_code()
835 code_ptr = (sljit_uw*)(cpool_start_address + cpool_current_index); in sljit_generate_code()
871 jump->addr = (sljit_uw)code_ptr; in sljit_generate_code()
872 code_ptr[0] = (sljit_uw)buf_ptr; in sljit_generate_code()
873 code_ptr[1] = *buf_ptr; in sljit_generate_code()
874 …inline_set_jump_addr((sljit_uw)code_ptr, executable_offset, (jump->flags & JUMP_LABEL) ? jump->u.l… in sljit_generate_code()
875 code_ptr += 2; in sljit_generate_code()
900 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
902 code_ptr[0] = (sljit_uw)buf_ptr; in sljit_generate_code()
903 code_ptr[1] = *buf_ptr; in sljit_generate_code()
909 inline_set_const((sljit_uw)code_ptr, executable_offset, *buf_ptr, 0); in sljit_generate_code()
910 code_ptr += 2; in sljit_generate_code()
932 SLJIT_ASSERT(code_ptr - code <= (sljit_s32)size); in sljit_generate_code()
936 compiler->executable_size = (sljit_uw)(code_ptr - code) * sizeof(sljit_uw); in sljit_generate_code()
939 code_ptr = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
941 SLJIT_CACHE_FLUSH(code, code_ptr); in sljit_generate_code()
942 SLJIT_UPDATE_WX_FLAGS(code, code_ptr, 1); in sljit_generate_code()