Home | History | Annotate | Download | only in sljit

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