Lines Matching refs:code_ptr
248 static SLJIT_INLINE sljit_si detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_i… in detect_jump_type() argument
274 diff = ((sljit_sw)target_addr - (sljit_sw)(code_ptr)) & ~0x3l; in detect_jump_type()
321 sljit_ins *code_ptr; in sljit_generate_code() local
346 code_ptr = code; in sljit_generate_code()
355 *code_ptr = *buf_ptr++; in sljit_generate_code()
362 label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
363 label->size = code_ptr - code; in sljit_generate_code()
368 jump->addr = (sljit_uw)(code_ptr - 3); in sljit_generate_code()
370 jump->addr = (sljit_uw)(code_ptr - 6); in sljit_generate_code()
372 if (detect_jump_type(jump, code_ptr, code)) { in sljit_generate_code()
374 code_ptr[-3] = code_ptr[0]; in sljit_generate_code()
375 code_ptr -= 3; in sljit_generate_code()
378 code_ptr -= 3; in sljit_generate_code()
379 code_ptr[-1] = code_ptr[2]; in sljit_generate_code()
380 code_ptr[0] = code_ptr[3]; in sljit_generate_code()
383 code_ptr--; in sljit_generate_code()
384 code_ptr[-1] = code_ptr[0]; in sljit_generate_code()
385 code_ptr[0] = code_ptr[1]; in sljit_generate_code()
387 SLJIT_ASSERT((code_ptr[-3] & 0xfc00ffff) == 0x780007c6); in sljit_generate_code()
388 code_ptr[-3] ^= 0x8422; in sljit_generate_code()
390 code_ptr[-2] ^= 0x4000000; in sljit_generate_code()
393 code_ptr[-6] = code_ptr[0]; in sljit_generate_code()
394 code_ptr -= 6; in sljit_generate_code()
398 code_ptr[0] = BCx | (2 << 2) | ((code_ptr[0] ^ (8 << 21)) & 0x03ff0001); in sljit_generate_code()
399 code_ptr++; in sljit_generate_code()
401 code_ptr[0] = Bx; in sljit_generate_code()
408 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
411 code_ptr ++; in sljit_generate_code()
419 label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
420 label->size = code_ptr - code; in sljit_generate_code()
428 …SLJIT_ASSERT(code_ptr - code <= (sljit_sw)compiler->size - (sizeof(struct sljit_function_context) … in sljit_generate_code()
430 SLJIT_ASSERT(code_ptr - code <= (sljit_sw)compiler->size); in sljit_generate_code()
491 compiler->executable_size = (code_ptr - code) * sizeof(sljit_ins); in sljit_generate_code()
492 SLJIT_CACHE_FLUSH(code, code_ptr); in sljit_generate_code()
496 if (((sljit_sw)code_ptr) & 0x4) in sljit_generate_code()
497 code_ptr++; in sljit_generate_code()
498 …sljit_set_function_context(NULL, (struct sljit_function_context*)code_ptr, (sljit_sw)code, (void*)… in sljit_generate_code()
499 return code_ptr; in sljit_generate_code()
501 …sljit_set_function_context(NULL, (struct sljit_function_context*)code_ptr, (sljit_sw)code, (void*)… in sljit_generate_code()
502 return code_ptr; in sljit_generate_code()