Lines Matching refs:jump
256 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_… in detect_jump_type() argument
263 if (jump->flags & (SLJIT_REWRITABLE_JUMP | IS_CALL)) in detect_jump_type()
266 if (jump->flags & SLJIT_REWRITABLE_JUMP) in detect_jump_type()
270 if (jump->flags & JUMP_ADDR) in detect_jump_type()
271 target_addr = jump->u.target; in detect_jump_type()
273 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
274 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; in detect_jump_type()
278 if (jump->flags & IS_CALL) in detect_jump_type()
285 if (jump->flags & IS_COND) { in detect_jump_type()
287 jump->flags |= PATCH_B; in detect_jump_type()
291 jump->flags |= PATCH_B | PATCH_ABS_B; in detect_jump_type()
300 jump->flags |= PATCH_B | extra_jump_flags; in detect_jump_type()
305 jump->flags |= PATCH_B | PATCH_ABS_B | extra_jump_flags; in detect_jump_type()
314 jump->flags |= PATCH_ABS32; in detect_jump_type()
319 jump->flags |= PATCH_ABS48; in detect_jump_type()
339 struct sljit_jump *jump; in sljit_generate_code() local
362 jump = compiler->jumps; in sljit_generate_code()
371 SLJIT_ASSERT(!jump || jump->addr >= word_count); in sljit_generate_code()
380 if (jump && jump->addr == word_count) { in sljit_generate_code()
382 jump->addr = (sljit_uw)(code_ptr - 3); in sljit_generate_code()
384 jump->addr = (sljit_uw)(code_ptr - 6); in sljit_generate_code()
386 if (detect_jump_type(jump, code_ptr, code, executable_offset)) { in sljit_generate_code()
391 if (jump->flags & PATCH_ABS32) { in sljit_generate_code()
396 else if (jump->flags & PATCH_ABS48) { in sljit_generate_code()
411 if (jump->flags & REMOVE_COND) { in sljit_generate_code()
414 jump->addr += sizeof(sljit_ins); in sljit_generate_code()
416 jump->flags -= IS_COND; in sljit_generate_code()
419 jump = jump->next; in sljit_generate_code()
439 SLJIT_ASSERT(!jump); in sljit_generate_code()
447 jump = compiler->jumps; in sljit_generate_code()
448 while (jump) { in sljit_generate_code()
450 addr = (jump->flags & JUMP_LABEL) ? jump->u.label->addr : jump->u.target; in sljit_generate_code()
451 buf_ptr = (sljit_ins *)jump->addr; in sljit_generate_code()
453 if (jump->flags & PATCH_B) { in sljit_generate_code()
454 if (jump->flags & IS_COND) { in sljit_generate_code()
455 if (!(jump->flags & PATCH_ABS_B)) { in sljit_generate_code()
466 if (!(jump->flags & PATCH_ABS_B)) { in sljit_generate_code()
484 if (jump->flags & PATCH_ABS32) { in sljit_generate_code()
490 if (jump->flags & PATCH_ABS48) { in sljit_generate_code()
503 jump = jump->next; in sljit_generate_code()
1871 struct sljit_jump *jump; in sljit_emit_jump() local
1881 jump = (struct sljit_jump*)ensure_abuf(compiler, sizeof(struct sljit_jump)); in sljit_emit_jump()
1882 PTR_FAIL_IF(!jump); in sljit_emit_jump()
1883 set_jump(jump, compiler, type & SLJIT_REWRITABLE_JUMP); in sljit_emit_jump()
1888 jump->flags |= IS_COND; in sljit_emit_jump()
1891 jump->flags |= IS_CALL; in sljit_emit_jump()
1896 jump->addr = compiler->size; in sljit_emit_jump()
1898 return jump; in sljit_emit_jump()
1921 struct sljit_jump *jump = NULL; in sljit_emit_ijump() local
1941 jump = (struct sljit_jump*)ensure_abuf(compiler, sizeof(struct sljit_jump)); in sljit_emit_ijump()
1942 FAIL_IF(!jump); in sljit_emit_ijump()
1943 set_jump(jump, compiler, JUMP_ADDR); in sljit_emit_ijump()
1944 jump->u.target = srcw; in sljit_emit_ijump()
1947 jump->flags |= IS_CALL; in sljit_emit_ijump()
1958 if (jump) in sljit_emit_ijump()
1959 jump->addr = compiler->size; in sljit_emit_ijump()