Lines Matching refs:code_ptr
259 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_… in detect_jump_type() argument
285 diff = ((sljit_sw)target_addr - (sljit_sw)(code_ptr) - executable_offset) & ~0x3l; in detect_jump_type()
383 sljit_ins *code_ptr; in sljit_generate_code() local
411 code_ptr = code; in sljit_generate_code()
425 *code_ptr = *buf_ptr++; in sljit_generate_code()
435 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
436 label->size = code_ptr - code; in sljit_generate_code()
441 jump->addr = (sljit_uw)(code_ptr - 3); in sljit_generate_code()
443 jump->addr = (sljit_uw)(code_ptr - 6); in sljit_generate_code()
445 if (detect_jump_type(jump, code_ptr, code, executable_offset)) { in sljit_generate_code()
447 code_ptr[-3] = code_ptr[0]; in sljit_generate_code()
448 code_ptr -= 3; in sljit_generate_code()
451 code_ptr -= 3; in sljit_generate_code()
452 code_ptr[-1] = code_ptr[2]; in sljit_generate_code()
453 code_ptr[0] = code_ptr[3]; in sljit_generate_code()
456 code_ptr--; in sljit_generate_code()
457 code_ptr[-1] = code_ptr[0]; in sljit_generate_code()
458 code_ptr[0] = code_ptr[1]; in sljit_generate_code()
460 SLJIT_ASSERT((code_ptr[-3] & 0xfc00ffff) == 0x780007c6); in sljit_generate_code()
461 code_ptr[-3] ^= 0x8422; in sljit_generate_code()
463 code_ptr[-2] ^= 0x4000000; in sljit_generate_code()
466 code_ptr[-6] = code_ptr[0]; in sljit_generate_code()
467 code_ptr -= 6; in sljit_generate_code()
471 code_ptr[0] = BCx | (2 << 2) | ((code_ptr[0] ^ (8 << 21)) & 0x03ff0001); in sljit_generate_code()
472 code_ptr++; in sljit_generate_code()
474 code_ptr[0] = Bx; in sljit_generate_code()
481 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
486 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
488 …code_ptr += put_label_get_length(put_label, (sljit_uw)(SLJIT_ADD_EXEC_OFFSET(code, executable_offs… in sljit_generate_code()
495 code_ptr ++; in sljit_generate_code()
503 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
504 label->size = code_ptr - code; in sljit_generate_code()
514 …SLJIT_ASSERT(code_ptr - code <= (sljit_sw)compiler->size - (sizeof(struct sljit_function_context) … in sljit_generate_code()
516 SLJIT_ASSERT(code_ptr - code <= (sljit_sw)compiler->size); in sljit_generate_code()
595 compiler->executable_size = (code_ptr - code) * sizeof(sljit_ins); in sljit_generate_code()
601 if (((sljit_sw)code_ptr) & 0x4) in sljit_generate_code()
602 code_ptr++; in sljit_generate_code()
604 …sljit_set_function_context(NULL, (struct sljit_function_context*)code_ptr, (sljit_sw)code, (void*)… in sljit_generate_code()
607 code_ptr = (sljit_ins *)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
609 SLJIT_CACHE_FLUSH(code, code_ptr); in sljit_generate_code()
612 return code_ptr; in sljit_generate_code()