Lines Matching refs:code_ptr
227 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_u16 *code_ptr, sljit_… in detect_jump_type() argument
238 diff = ((sljit_sw)jump->u.target - (sljit_sw)(code_ptr + 2) - executable_offset) >> 1; in detect_jump_type()
242 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)(code_ptr + 2)) >> 1; in detect_jump_type()
351 sljit_u16 *code_ptr; in sljit_generate_code() local
369 code_ptr = code; in sljit_generate_code()
381 *code_ptr = *buf_ptr++; in sljit_generate_code()
387 label->addr = ((sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset)) | 0x1; in sljit_generate_code()
388 label->size = code_ptr - code; in sljit_generate_code()
392 jump->addr = (sljit_uw)code_ptr - ((jump->flags & IS_COND) ? 10 : 8); in sljit_generate_code()
393 code_ptr -= detect_jump_type(jump, code_ptr, code, executable_offset); in sljit_generate_code()
397 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
400 code_ptr ++; in sljit_generate_code()
408 label->addr = ((sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset)) | 0x1; in sljit_generate_code()
409 label->size = code_ptr - code; in sljit_generate_code()
416 SLJIT_ASSERT(code_ptr - code <= (sljit_sw)compiler->size); in sljit_generate_code()
426 compiler->executable_size = (code_ptr - code) * sizeof(sljit_u16); in sljit_generate_code()
429 code_ptr = (sljit_u16 *)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
431 SLJIT_CACHE_FLUSH(code, code_ptr); in sljit_generate_code()