Lines Matching refs:jump

431 static sljit_u8* generate_far_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_s32 type…
433 static sljit_u8* generate_far_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_s32 type…
436 static sljit_u8* generate_near_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_u8 *cod… in generate_near_jump_code() argument
441 if (jump->flags & JUMP_LABEL) in generate_near_jump_code()
442 label_addr = (sljit_uw)(code + jump->u.label->size); in generate_near_jump_code()
444 label_addr = jump->u.target - executable_offset; in generate_near_jump_code()
446 …short_jump = (sljit_sw)(label_addr - (jump->addr + 2)) >= -128 && (sljit_sw)(label_addr - (jump->a… in generate_near_jump_code()
449 …if ((sljit_sw)(label_addr - (jump->addr + 1)) > HALFWORD_MAX || (sljit_sw)(label_addr - (jump->add… in generate_near_jump_code()
450 return generate_far_jump_code(jump, code_ptr, type); in generate_near_jump_code()
458 jump->addr++; in generate_near_jump_code()
463 jump->addr++; in generate_near_jump_code()
467 jump->addr++; in generate_near_jump_code()
472 jump->addr += 2; in generate_near_jump_code()
476 jump->flags |= PATCH_MB; in generate_near_jump_code()
479 jump->flags |= PATCH_MW; in generate_near_jump_code()
498 struct sljit_jump *jump; in sljit_generate_code() local
512 jump = compiler->jumps; in sljit_generate_code()
529 jump->addr = (sljit_uw)code_ptr; in sljit_generate_code()
530 if (!(jump->flags & SLJIT_REWRITABLE_JUMP)) in sljit_generate_code()
531 code_ptr = generate_near_jump_code(jump, code_ptr, code, *buf_ptr - 2, executable_offset); in sljit_generate_code()
534 code_ptr = generate_far_jump_code(jump, code_ptr, *buf_ptr - 2, executable_offset); in sljit_generate_code()
536 code_ptr = generate_far_jump_code(jump, code_ptr, *buf_ptr - 2); in sljit_generate_code()
539 jump = jump->next; in sljit_generate_code()
558 SLJIT_ASSERT(!jump); in sljit_generate_code()
561 jump = compiler->jumps; in sljit_generate_code()
562 while (jump) { in sljit_generate_code()
563 jump_addr = jump->addr + executable_offset; in sljit_generate_code()
565 if (jump->flags & PATCH_MB) { in sljit_generate_code()
566 …SLJIT_ASSERT((sljit_sw)(jump->u.label->addr - (jump_addr + sizeof(sljit_s8))) >= -128 && (sljit_sw… in sljit_generate_code()
567 *(sljit_u8*)jump->addr = (sljit_u8)(jump->u.label->addr - (jump_addr + sizeof(sljit_s8))); in sljit_generate_code()
568 } else if (jump->flags & PATCH_MW) { in sljit_generate_code()
569 if (jump->flags & JUMP_LABEL) { in sljit_generate_code()
571 …sljit_unaligned_store_sw((void*)jump->addr, (sljit_sw)(jump->u.label->addr - (jump_addr + sizeof(s… in sljit_generate_code()
573 …SLJIT_ASSERT((sljit_sw)(jump->u.label->addr - (jump_addr + sizeof(sljit_s32))) >= HALFWORD_MIN && … in sljit_generate_code()
574 …sljit_unaligned_store_s32((void*)jump->addr, (sljit_s32)(jump->u.label->addr - (jump_addr + sizeof… in sljit_generate_code()
579 …sljit_unaligned_store_sw((void*)jump->addr, (sljit_sw)(jump->u.target - (jump_addr + sizeof(sljit_… in sljit_generate_code()
581 …SLJIT_ASSERT((sljit_sw)(jump->u.target - (jump_addr + sizeof(sljit_s32))) >= HALFWORD_MIN && (slji… in sljit_generate_code()
582 …sljit_unaligned_store_s32((void*)jump->addr, (sljit_s32)(jump->u.target - (jump_addr + sizeof(slji… in sljit_generate_code()
587 else if (jump->flags & PATCH_MD) in sljit_generate_code()
588 sljit_unaligned_store_sw((void*)jump->addr, jump->u.label->addr); in sljit_generate_code()
591 jump = jump->next; in sljit_generate_code()
2477 struct sljit_jump *jump; local
2482 jump = (struct sljit_jump*)ensure_abuf(compiler, sizeof(struct sljit_jump));
2483 PTR_FAIL_IF_NULL(jump);
2484 set_jump(jump, compiler, type & SLJIT_REWRITABLE_JUMP);
2499 return jump;
2505 struct sljit_jump *jump; local
2514 jump = (struct sljit_jump*)ensure_abuf(compiler, sizeof(struct sljit_jump));
2515 FAIL_IF_NULL(jump);
2516 set_jump(jump, compiler, JUMP_ADDR);
2517 jump->u.target = srcw;