Lines Matching refs:code_ptr
224 static SLJIT_INLINE sljit_si detect_jump_type(struct sljit_jump *jump, sljit_uh *code_ptr, sljit_uh… in detect_jump_type() argument
235 diff = ((sljit_sw)jump->u.target - (sljit_sw)(code_ptr + 2)) >> 1; in detect_jump_type()
239 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)(code_ptr + 2)) >> 1; in detect_jump_type()
346 sljit_uh *code_ptr; in sljit_generate_code() local
363 code_ptr = code; in sljit_generate_code()
373 *code_ptr = *buf_ptr++; in sljit_generate_code()
379 label->addr = ((sljit_uw)code_ptr) | 0x1; in sljit_generate_code()
380 label->size = code_ptr - code; in sljit_generate_code()
384 jump->addr = (sljit_uw)code_ptr - ((jump->flags & IS_COND) ? 10 : 8); in sljit_generate_code()
385 code_ptr -= detect_jump_type(jump, code_ptr, code); in sljit_generate_code()
389 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
392 code_ptr ++; in sljit_generate_code()
400 label->addr = ((sljit_uw)code_ptr) | 0x1; in sljit_generate_code()
401 label->size = code_ptr - code; in sljit_generate_code()
408 SLJIT_ASSERT(code_ptr - code <= (sljit_sw)compiler->size); in sljit_generate_code()
417 compiler->executable_size = (code_ptr - code) * sizeof(sljit_uh); in sljit_generate_code()
418 SLJIT_CACHE_FLUSH(code, code_ptr); in sljit_generate_code()