Lines Matching refs:put_label

459 static SLJIT_INLINE sljit_sw put_label_get_length(struct sljit_put_label *put_label, sljit_uw max_l…  in put_label_get_length()  argument
462 put_label->flags = 0; in put_label_get_length()
467 put_label->flags = 1; in put_label_get_length()
471 put_label->flags = 2; in put_label_get_length()
475 static SLJIT_INLINE void put_label_set(struct sljit_put_label *put_label) in put_label_set() argument
477 sljit_uw addr = put_label->label->addr; in put_label_set()
478 sljit_ins *inst = (sljit_ins *)put_label->addr; in put_label_set()
481 if (put_label->flags == 0) { in put_label_set()
485 else if (put_label->flags == 1) { in put_label_set()
521 struct sljit_put_label *put_label; in sljit_generate_code() local
539 put_label = compiler->put_labels; in sljit_generate_code()
550 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
571 if (put_label && put_label->addr == word_count) { in sljit_generate_code()
572 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
573 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
575 …code_ptr += put_label_get_length(put_label, (sljit_uw)(SLJIT_ADD_EXEC_OFFSET(code, executable_offs… in sljit_generate_code()
578 put_label = put_label->next; in sljit_generate_code()
580 next_addr = compute_next_addr(label, jump, const_, put_label); in sljit_generate_code()
598 SLJIT_ASSERT(!put_label); in sljit_generate_code()
653 put_label = compiler->put_labels; in sljit_generate_code()
654 while (put_label) { in sljit_generate_code()
656 addr = put_label->label->addr; in sljit_generate_code()
657 buf_ptr = (sljit_ins *)put_label->addr; in sljit_generate_code()
663 put_label_set(put_label); in sljit_generate_code()
665 put_label = put_label->next; in sljit_generate_code()
2487 struct sljit_put_label *put_label; in sljit_emit_put_label() local
2494 put_label = (struct sljit_put_label*)ensure_abuf(compiler, sizeof(struct sljit_put_label)); in sljit_emit_put_label()
2495 PTR_FAIL_IF(!put_label); in sljit_emit_put_label()
2496 set_put_label(put_label, compiler, 0); in sljit_emit_put_label()
2509 return put_label; in sljit_emit_put_label()