Lines Matching refs:code_ptr

389 static sljit_ub* generate_far_jump_code(struct sljit_jump *jump, sljit_ub *code_ptr, sljit_si type);
392 static sljit_ub* generate_fixed_jump(sljit_ub *code_ptr, sljit_sw addr, sljit_si type);
395 static sljit_ub* generate_near_jump_code(struct sljit_jump *jump, sljit_ub *code_ptr, sljit_ub *cod… in generate_near_jump_code() argument
408 return generate_far_jump_code(jump, code_ptr, type); in generate_near_jump_code()
413 *code_ptr++ = JMP_i8; in generate_near_jump_code()
415 *code_ptr++ = JMP_i32; in generate_near_jump_code()
420 *code_ptr++ = CALL_i32; in generate_near_jump_code()
424 *code_ptr++ = get_jump_code(type) - 0x10; in generate_near_jump_code()
428 *code_ptr++ = GROUP_0F; in generate_near_jump_code()
429 *code_ptr++ = get_jump_code(type); in generate_near_jump_code()
435 code_ptr += sizeof(sljit_sb); in generate_near_jump_code()
439 code_ptr += sizeof(sljit_sw); in generate_near_jump_code()
441 code_ptr += sizeof(sljit_si); in generate_near_jump_code()
445 return code_ptr; in generate_near_jump_code()
452 sljit_ub *code_ptr; in sljit_generate_code() local
470 code_ptr = code; in sljit_generate_code()
481 SLJIT_MEMMOVE(code_ptr, buf_ptr, len); in sljit_generate_code()
482 code_ptr += len; in sljit_generate_code()
487 jump->addr = (sljit_uw)code_ptr; in sljit_generate_code()
489 code_ptr = generate_near_jump_code(jump, code_ptr, code, *buf_ptr - 4); in sljit_generate_code()
491 code_ptr = generate_far_jump_code(jump, code_ptr, *buf_ptr - 4); in sljit_generate_code()
495 label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
496 label->size = code_ptr - code; in sljit_generate_code()
500 const_->addr = ((sljit_uw)code_ptr) - sizeof(sljit_sw); in sljit_generate_code()
505 *code_ptr++ = (*buf_ptr == 2) ? CALL_i32 : JMP_i32; in sljit_generate_code()
507 *(sljit_sw*)code_ptr = *(sljit_sw*)buf_ptr - ((sljit_sw)code_ptr + sizeof(sljit_sw)); in sljit_generate_code()
508 code_ptr += sizeof(sljit_sw); in sljit_generate_code()
511 code_ptr = generate_fixed_jump(code_ptr, *(sljit_sw*)(buf_ptr + 1), *buf_ptr); in sljit_generate_code()
558 SLJIT_ASSERT(code_ptr <= code + compiler->size); in sljit_generate_code()
560 compiler->executable_size = code_ptr - code; in sljit_generate_code()