Lines Matching refs:code_ptr
42 static sljit_ub* generate_far_jump_code(struct sljit_jump *jump, sljit_ub *code_ptr, sljit_si type) in generate_far_jump_code() argument
46 *code_ptr++ = get_jump_code(type ^ 0x1) - 0x10; in generate_far_jump_code()
47 *code_ptr++ = 10 + 3; in generate_far_jump_code()
51 *code_ptr++ = REX_W | REX_B; in generate_far_jump_code()
52 *code_ptr++ = MOV_r_i32 + 1; in generate_far_jump_code()
53 jump->addr = (sljit_uw)code_ptr; in generate_far_jump_code()
58 *(sljit_sw*)code_ptr = jump->u.target; in generate_far_jump_code()
60 code_ptr += sizeof(sljit_sw); in generate_far_jump_code()
61 *code_ptr++ = REX_B; in generate_far_jump_code()
62 *code_ptr++ = GROUP_FF; in generate_far_jump_code()
63 *code_ptr++ = (type >= SLJIT_FAST_CALL) ? (MOD_REG | CALL_rm | 1) : (MOD_REG | JMP_rm | 1); in generate_far_jump_code()
65 return code_ptr; in generate_far_jump_code()
68 static sljit_ub* generate_fixed_jump(sljit_ub *code_ptr, sljit_sw addr, sljit_si type) in generate_fixed_jump() argument
70 sljit_sw delta = addr - ((sljit_sw)code_ptr + 1 + sizeof(sljit_si)); in generate_fixed_jump()
73 *code_ptr++ = (type == 2) ? CALL_i32 : JMP_i32; in generate_fixed_jump()
74 *(sljit_sw*)code_ptr = delta; in generate_fixed_jump()
78 *code_ptr++ = REX_W | REX_B; in generate_fixed_jump()
79 *code_ptr++ = MOV_r_i32 + 1; in generate_fixed_jump()
80 *(sljit_sw*)code_ptr = addr; in generate_fixed_jump()
81 code_ptr += sizeof(sljit_sw); in generate_fixed_jump()
82 *code_ptr++ = REX_B; in generate_fixed_jump()
83 *code_ptr++ = GROUP_FF; in generate_fixed_jump()
84 *code_ptr++ = (type == 2) ? (MOD_REG | CALL_rm | 1) : (MOD_REG | JMP_rm | 1); in generate_fixed_jump()
87 return code_ptr; in generate_fixed_jump()