Lines Matching refs:compiler
320 struct sljit_compiler *compiler; member
518 struct sljit_compiler *compiler = common->compiler
520 sljit_emit_op1(compiler, (op), (dst), (dstw), (src), (srcw))
522 sljit_emit_op2(compiler, (op), (dst), (dstw), (src1), (src1w), (src2), (src2w))
524 sljit_emit_label(compiler)
526 sljit_emit_jump(compiler, (type))
528 sljit_set_label(sljit_emit_jump(compiler, (type)), (label))
530 sljit_set_label((jump), sljit_emit_label(compiler))
534 sljit_emit_cmp(compiler, (type), (src1), (src1w), (src2), (src2w))
536 sljit_set_label(sljit_emit_cmp(compiler, (type), (src1), (src1w), (src2), (src2w)), (label))
538 sljit_emit_op_flags(compiler, (op), (dst), (dstw), (src), (srcw), (type))
540 sljit_get_local_base(compiler, (dst), (dstw), (offset))
2026 static SLJIT_INLINE void add_jump(struct sljit_compiler *compiler, jump_list **list, struct sljit_j… in add_jump() argument
2028 jump_list *list_item = sljit_alloc_memory(compiler, sizeof(jump_list)); in add_jump()
2040 stub_list *list_item = sljit_alloc_memory(compiler, sizeof(stub_list)); in add_stub()
2059 add_jump(compiler, &common->stackalloc, JUMP(SLJIT_FAST_CALL)); in flush_stubs()
2071 label_addr = sljit_alloc_memory(compiler, sizeof(label_addr_list)); in add_label_addr()
2085 add_jump(compiler, &common->calllimit, JUMP(SLJIT_ZERO)); in count_match()
2115 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in allocate_read_only_data()
2118 result = (sljit_uw *)SLJIT_MALLOC(size + sizeof(sljit_uw), compiler->allocator_data); in allocate_read_only_data()
2121 sljit_set_compiler_memory_error(compiler); in allocate_read_only_data()
2486 add_jump(compiler, &common->partialmatch, JUMP(SLJIT_JUMP)); in check_partial()
2501 add_jump(compiler, end_reached, CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0)); in check_str_end()
2508 …add_jump(compiler, end_reached, CMP(SLJIT_GREATER_EQUAL, SLJIT_MEM1(SLJIT_SP), common->start_used_… in check_str_end()
2510 add_jump(compiler, end_reached, JUMP(SLJIT_JUMP)); in check_str_end()
2514 …add_jump(compiler, end_reached, CMP(SLJIT_GREATER_EQUAL, SLJIT_MEM1(SLJIT_SP), common->start_used_… in check_str_end()
2518 add_jump(compiler, &common->partialmatch, JUMP(SLJIT_JUMP)); in check_str_end()
2530 add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0)); in detect_partial_match()
2536 add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, SLJIT_MEM1(SLJIT_SP), common->start_used_pt… in detect_partial_match()
2540 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in detect_partial_match()
2547 add_jump(compiler, &common->partialmatch, JUMP(SLJIT_JUMP)); in detect_partial_match()
2571 add_jump(compiler, &common->utfreadchar, JUMP(SLJIT_FAST_CALL)); in peek_char()
2712 …add_jump(compiler, (max < 0x10000) ? &common->utfreadchar16 : &common->utfreadchar, JUMP(SLJIT_FAS… in read_char_range()
2810 add_jump(compiler, &common->utfreadtype8, JUMP(SLJIT_FAST_CALL)); in read_char8_type()
2881 add_jump(compiler, &common->anynewline, JUMP(SLJIT_FAST_CALL)); in check_newlinechar()
2882 add_jump(compiler, backtracks, JUMP(jumpifmatch ? SLJIT_NOT_ZERO : SLJIT_ZERO)); in check_newlinechar()
2888 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, CHAR_CR)); in check_newlinechar()
2889 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, CHAR_NL)); in check_newlinechar()
2894 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, CHAR_NL)); in check_newlinechar()
2901 …add_jump(compiler, backtracks, CMP(jumpifmatch ? SLJIT_EQUAL : SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM… in check_newlinechar()
2915 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_utfreadchar()
2928 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadchar()
2942 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadchar()
2953 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadchar()
2963 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_utfreadchar16()
2975 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadchar16()
2989 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadchar16()
3000 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_utfreadtype8()
3014 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadtype8()
3018 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadtype8()
3025 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadtype8()
3046 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_getucd()
3056 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_getucd()
4079 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_revertframes()
4098 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_revertframes()
4119 sljit_emit_fast_enter(compiler, SLJIT_MEM1(SLJIT_SP), LOCALS0); in check_wordboundary()
4135 add_jump(compiler, &common->getucd, JUMP(SLJIT_FAST_CALL)); in check_wordboundary()
4179 add_jump(compiler, &common->getucd, JUMP(SLJIT_FAST_CALL)); in check_wordboundary()
4214 sljit_emit_fast_return(compiler, SLJIT_MEM1(SLJIT_SP), LOCALS0); in check_wordboundary()
4265 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in check_class_ranges()
4274 …add_jump(compiler, backtracks, CMP(bit == 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM… in check_class_ranges()
4281 …add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM… in check_class_ranges()
4284 …add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_EQUAL : SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, r… in check_class_ranges()
4290 add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[2])); in check_class_ranges()
4294 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in check_class_ranges()
4297 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in check_class_ranges()
4301 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[0])); in check_class_ranges()
4305 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[2] - ranges[1])); in check_class_ranges()
4308 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[1])); in check_class_ranges()
4320 …add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM… in check_class_ranges()
4323 …add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_EQUAL : SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, r… in check_class_ranges()
4333 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in check_class_ranges()
4337 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in check_class_ranges()
4342 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[3] - ranges[2])); in check_class_ranges()
4345 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[2] - i)); in check_class_ranges()
4350 …add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[3] - ranges[0])… in check_class_ranges()
4354 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[2] - ranges[1])); in check_class_ranges()
4357 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in check_class_ranges()
4371 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in check_anynewline()
4390 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in check_anynewline()
4398 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in check_hspace()
4429 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in check_hspace()
4437 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in check_vspace()
4457 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in check_vspace()
4469 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_casefulcmp()
4487 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_casefulcmp()
4498 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_caselesscmp()
4532 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_caselesscmp()
4673 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, context->c.a… in byte_sequence_compare()
4679 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, context->c.a… in byte_sequence_compare()
4686 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, context->c.a… in byte_sequence_compare()
4708 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, *cc | otherc… in byte_sequence_compare()
4711 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, *cc)); in byte_sequence_compare()
4880 add_jump(compiler, &found, JUMP(SLJIT_NOT_ZERO)); in compile_xclass_matchingpath()
4883 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_xclass_matchingpath()
4891 …add_jump(compiler, (cc[-1] & XCL_NOT) == 0 ? backtracks : &found, CMP(SLJIT_GREATER, TMP2, 0, SLJI… in compile_xclass_matchingpath()
4912 add_jump(compiler, list, JUMP(SLJIT_NOT_ZERO)); in compile_xclass_matchingpath()
4927 add_jump(compiler, &common->getucd, JUMP(SLJIT_FAST_CALL)); in compile_xclass_matchingpath()
5236 add_jump(compiler, compares > 0 ? list : backtracks, jump); in compile_xclass_matchingpath()
5268 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, STR_PTR, 0, TMP1, 0)); in compile_char1_matchingpath()
5274 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, STR_PTR, 0, TMP1, 0)); in compile_char1_matchingpath()
5279 add_jump(compiler, &common->wordboundary, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5280 add_jump(compiler, backtracks, JUMP(type == OP_NOT_WORD_BOUNDARY ? SLJIT_NOT_ZERO : SLJIT_ZERO)); in compile_char1_matchingpath()
5295 add_jump(compiler, backtracks, JUMP(type == OP_DIGIT ? SLJIT_ZERO : SLJIT_NOT_ZERO)); in compile_char1_matchingpath()
5308 add_jump(compiler, backtracks, JUMP(type == OP_WHITESPACE ? SLJIT_ZERO : SLJIT_NOT_ZERO)); in compile_char1_matchingpath()
5321 add_jump(compiler, backtracks, JUMP(type == OP_WORDCHAR ? SLJIT_ZERO : SLJIT_NOT_ZERO)); in compile_char1_matchingpath()
5332 add_jump(compiler, &end_list, CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5337 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, common->newline & 0xff)); in compile_char1_matchingpath()
5399 add_jump(compiler, &end_list, CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5417 add_jump(compiler, &common->hspace, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5418 add_jump(compiler, backtracks, JUMP(type == OP_NOT_HSPACE ? SLJIT_NOT_ZERO : SLJIT_ZERO)); in compile_char1_matchingpath()
5425 add_jump(compiler, &common->vspace, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5426 add_jump(compiler, backtracks, JUMP(type == OP_NOT_VSPACE ? SLJIT_NOT_ZERO : SLJIT_ZERO)); in compile_char1_matchingpath()
5433 add_jump(compiler, &common->getucd, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5443 add_jump(compiler, &common->getucd, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5476 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, STR_END, 0)); in compile_char1_matchingpath()
5484 add_jump(compiler, backtracks, JUMP(SLJIT_NOT_EQUAL)); in compile_char1_matchingpath()
5486 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_char1_matchingpath()
5490 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, (common->newline >> 8) & 0… in compile_char1_matchingpath()
5491 … add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, common->newline & 0xff)); in compile_char1_matchingpath()
5497 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, STR_END, 0)); in compile_char1_matchingpath()
5498 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, common->newline)); in compile_char1_matchingpath()
5507 add_jump(compiler, backtracks, JUMP(SLJIT_LESS)); in compile_char1_matchingpath()
5511 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_char1_matchingpath()
5517 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP2, 0, STR_END, 0)); in compile_char1_matchingpath()
5518 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, CHAR_NL)); in compile_char1_matchingpath()
5524 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5525 add_jump(compiler, &common->anynewline, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5526 add_jump(compiler, backtracks, JUMP(SLJIT_ZERO)); in compile_char1_matchingpath()
5537 add_jump(compiler, backtracks, CMP(SLJIT_LESS, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5544 add_jump(compiler, backtracks, CMP(SLJIT_GREATER, STR_PTR, 0, TMP1, 0)); in compile_char1_matchingpath()
5546 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_char1_matchingpath()
5554 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_char1_matchingpath()
5558 add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5562 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP2, 0, TMP1, 0)); in compile_char1_matchingpath()
5565 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, (common->newline >> 8) & 0… in compile_char1_matchingpath()
5566 … add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, common->newline & 0xff)); in compile_char1_matchingpath()
5580 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_char1_matchingpath()
5586 add_jump(compiler, backtracks, CMP(SLJIT_LESS, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5595 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_char1_matchingpath()
5605 add_jump(compiler, backtracks, CMP(SLJIT_GREATER, TMP2, 0, STR_END, 0)); in compile_char1_matchingpath()
5610 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, (common->newline >> 8) & 0… in compile_char1_matchingpath()
5612 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_char1_matchingpath()
5617 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, (common->newline >> 8) & 0… in compile_char1_matchingpath()
5618 … add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, common->newline & 0xff)); in compile_char1_matchingpath()
5637 add_jump(compiler, backtracks, CMP(SLJIT_GREATER, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5660 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, c)); in compile_char1_matchingpath()
5669 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, c | bit)); in compile_char1_matchingpath()
5673 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, oc)); in compile_char1_matchingpath()
5690 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, c)); in compile_char1_matchingpath()
5695 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP2, 0, SLJIT_IMM, c | 0x20)); in compile_char1_matchingpath()
5718 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, c)); in compile_char1_matchingpath()
5728 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, c | bit)); in compile_char1_matchingpath()
5732 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, c)); in compile_char1_matchingpath()
5733 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, oc)); in compile_char1_matchingpath()
5759 add_jump(compiler, backtracks, jump[0]); in compile_char1_matchingpath()
5767 add_jump(compiler, backtracks, jump[0]); in compile_char1_matchingpath()
5777 add_jump(compiler, backtracks, JUMP(SLJIT_ZERO)); in compile_char1_matchingpath()
5803 add_jump(compiler, backtracks, CMP(SLJIT_LESS_EQUAL, STR_PTR, 0, TMP3, 0)); in compile_char1_matchingpath()
5813 add_jump(compiler, backtracks, CMP(SLJIT_LESS, STR_PTR, 0, TMP1, 0)); in compile_char1_matchingpath()
5874 add_jump(compiler, backtracks, CMP(SLJIT_GREATER, STR_PTR, 0, STR_END, 0)); in compile_charn_matchingpath()
5895 backtrack = sljit_alloc_memory(compiler, (size)); \
5896 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) \
5908 backtrack = sljit_alloc_memory(compiler, (size)); \
5909 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) \
5938 add_jump(compiler, &found, CMP(SLJIT_NOT_EQUAL, SLJIT_MEM1(SLJIT_SP), OVECTOR(offset), TMP1, 0)); in compile_dnref_search()
5945 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, SLJIT_MEM1(SLJIT_SP), OVECTOR(offset), TMP1, 0)); in compile_dnref_search()
5965 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_MEM1(SLJIT_SP), OVECTOR(1))); in compile_ref_matchingpath()
5986 sljit_emit_ijump(compiler, SLJIT_CALL3, SLJIT_IMM, SLJIT_FUNC_OFFSET(do_utf_caselesscmp)); in compile_ref_matchingpath()
5989 add_jump(compiler, backtracks, CMP(SLJIT_LESS_EQUAL, SLJIT_RETURN_REG, 0, SLJIT_IMM, 1)); in compile_ref_matchingpath()
5992 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, SLJIT_RETURN_REG, 0, SLJIT_IMM, 0)); in compile_ref_matchingpath()
5995 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_ref_matchingpath()
6014 add_jump(compiler, backtracks, partial); in compile_ref_matchingpath()
6016 …add_jump(compiler, *cc == OP_REF ? &common->casefulcmp : &common->caselesscmp, JUMP(SLJIT_FAST_CAL… in compile_ref_matchingpath()
6017 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_ref_matchingpath()
6028 …add_jump(compiler, *cc == OP_REF ? &common->casefulcmp : &common->caselesscmp, JUMP(SLJIT_FAST_CAL… in compile_ref_matchingpath()
6029 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_ref_matchingpath()
6032 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_ref_matchingpath()
6040 add_jump(compiler, backtracks, jump); in compile_ref_matchingpath()
6134 …add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_MEM1(SLJIT_SP), OVEC… in compile_ref_iterator_matchingpath()
6214 …add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_MEM1(SLJIT_SP), OVEC… in compile_ref_iterator_matchingpath()
6228 …add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_GREATER_EQUAL, SLJIT_MEM1(STACK_TOP), STAC… in compile_ref_iterator_matchingpath()
6284 entry = sljit_alloc_memory(compiler, sizeof(recurse_entry)); in compile_recurse_matchingpath()
6285 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_recurse_matchingpath()
6314 add_jump(compiler, &entry->calls, JUMP(SLJIT_FAST_CALL)); in compile_recurse_matchingpath()
6318 add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, 0)); in compile_recurse_matchingpath()
6403 sljit_emit_ijump(compiler, SLJIT_CALL3, SLJIT_IMM, SLJIT_FUNC_OFFSET(do_callout)); in compile_callout_matchingpath()
6410 add_jump(compiler, &backtrack->topbacktracks, JUMP(SLJIT_SIG_GREATER)); in compile_callout_matchingpath()
6412 add_jump(compiler, &common->forced_quit, JUMP(SLJIT_SIG_LESS)); in compile_callout_matchingpath()
6536 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_assert_matchingpath()
6579 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_assert_matchingpath()
6607 add_jump(compiler, found, JUMP(SLJIT_JUMP)); in compile_assert_matchingpath()
6610 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_assert_matchingpath()
6652 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_assert_matchingpath()
6694 add_jump(compiler, target, jump); in compile_assert_matchingpath()
6753 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_assert_matchingpath()
7240 add_jump(compiler, &(BACKTRACK_AS(bracket_backtrack)->u.condfailed), in compile_bracket_matchingpath()
7262 add_jump(compiler, &(BACKTRACK_AS(bracket_backtrack)->u.condfailed), JUMP(SLJIT_ZERO)); in compile_bracket_matchingpath()
7326 assert = sljit_alloc_memory(compiler, sizeof(assert_backtrack)); in compile_bracket_matchingpath()
7327 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_bracket_matchingpath()
7337 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_bracket_matchingpath()
7463 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_bracket_matchingpath()
7644 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_bracketpos_matchingpath()
7669 add_jump(compiler, &emptymatch, CMP(SLJIT_EQUAL, TMP1, 0, STR_PTR, 0)); in compile_bracketpos_matchingpath()
7696 add_jump(compiler, &emptymatch, CMP(SLJIT_EQUAL, TMP1, 0, STR_PTR, 0)); in compile_bracketpos_matchingpath()
7714 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_bracketpos_matchingpath()
7752 …add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_NOT_EQUAL, SLJIT_MEM1(STACK_TOP), STACK(st… in compile_bracketpos_matchingpath()
7754 …add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_NOT_EQUAL, SLJIT_MEM1(TMP2), (stacksize - … in compile_bracketpos_matchingpath()
7995 … add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_LESS, base, offset1, SLJIT_IMM, min + 1)); in compile_iterator_matchingpath()
8018 add_jump(compiler, &backtrack->topbacktracks, JUMP(SLJIT_JUMP)); in compile_iterator_matchingpath()
8116 add_jump(compiler, &backtrack->topbacktracks, JUMP(SLJIT_JUMP)); in compile_fail_accept_matchingpath()
8124 add_jump(compiler, &common->accept, JUMP(SLJIT_JUMP)); in compile_fail_accept_matchingpath()
8131 …add_jump(compiler, &common->accept, CMP(SLJIT_NOT_EQUAL, STR_PTR, 0, SLJIT_MEM1(SLJIT_SP), OVECTOR… in compile_fail_accept_matchingpath()
8136 add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_fail_accept_matchingpath()
8139 add_jump(compiler, &common->accept, CMP(SLJIT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_fail_accept_matchingpath()
8144 add_jump(compiler, &common->accept, CMP(SLJIT_NOT_EQUAL, TMP2, 0, STR_PTR, 0)); in compile_fail_accept_matchingpath()
8147 add_jump(compiler, &backtrack->topbacktracks, JUMP(SLJIT_JUMP)); in compile_fail_accept_matchingpath()
8550 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) \
8801 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_assert_backtrackingpath()
8978 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_bracket_backtrackingpath()
9005 sljit_emit_ijump(compiler, SLJIT_JUMP, SLJIT_MEM1(TMP1), (sljit_sw)next_update_addr); in compile_bracket_backtrackingpath()
9030 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_bracket_backtrackingpath()
9072 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_bracket_backtrackingpath()
9171 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_bracket_backtrackingpath()
9305 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_bracketpos_backtrackingpath()
9365 add_jump(compiler, &common->then_trap->quit, JUMP(SLJIT_JUMP)); in compile_control_verb_backtrackingpath()
9370 add_jump(compiler, &common->positive_assert_quit, JUMP(SLJIT_JUMP)); in compile_control_verb_backtrackingpath()
9378 add_jump(compiler, &common->quit, JUMP(SLJIT_JUMP)); in compile_control_verb_backtrackingpath()
9390 sljit_emit_ijump(compiler, SLJIT_CALL2, SLJIT_IMM, SLJIT_FUNC_OFFSET(do_search_mark)); in compile_control_verb_backtrackingpath()
9394 add_jump(compiler, &common->reset_match, CMP(SLJIT_NOT_EQUAL, STR_PTR, 0, SLJIT_IMM, -1)); in compile_control_verb_backtrackingpath()
9402 add_jump(compiler, &common->reset_match, JUMP(SLJIT_JUMP)); in compile_control_verb_backtrackingpath()
9427 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_then_trap_backtrackingpath()
9596 add_jump(compiler, &common->quit, JUMP(SLJIT_JUMP)); in compile_backtrackingpath()
9649 sljit_emit_fast_enter(compiler, TMP2, 0); in compile_recurse()
9678 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_recurse()
9681 add_jump(compiler, &common->accept, JUMP(SLJIT_JUMP)); in compile_recurse()
9684 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_recurse()
9706 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_recurse()
9711 add_jump(compiler, &common->quit, JUMP(SLJIT_JUMP)); in compile_recurse()
9719 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_recurse()
9743 sljit_emit_fast_return(compiler, SLJIT_MEM1(STACK_TOP), 0); in compile_recurse()
9752 struct sljit_compiler *compiler; in PRIV() local
9868 common->optimized_cbracket = (pcre_uint8 *)SLJIT_MALLOC(re->top_bracket + 1, compiler->allocator_da… in PRIV()
9884 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
9946 …T_MALLOC(total_length * (sizeof(sljit_si) + (common->has_then ? 1 : 0)), compiler->allocator_data); in PRIV()
9949 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
9958 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
9959 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
9970 compiler = sljit_create_compiler(NULL); in PRIV()
9971 if (!compiler) in PRIV()
9973 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
9974 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
9977 common->compiler = compiler; in PRIV()
9980 sljit_emit_enter(compiler, 0, 1, 5, 5, 0, 0, private_data_size); in PRIV()
10061 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in PRIV()
10063 sljit_free_compiler(compiler); in PRIV()
10064 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
10065 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
10066 free_read_only_data(common->read_only_data_head, compiler->allocator_data); in PRIV()
10089 sljit_emit_return(compiler, SLJIT_MOV, SLJIT_RETURN_REG, 0); in PRIV()
10101 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in PRIV()
10103 sljit_free_compiler(compiler); in PRIV()
10104 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
10105 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
10106 free_read_only_data(common->read_only_data_head, compiler->allocator_data); in PRIV()
10181 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in PRIV()
10183 sljit_free_compiler(compiler); in PRIV()
10184 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
10185 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
10186 free_read_only_data(common->read_only_data_head, compiler->allocator_data); in PRIV()
10199 sljit_emit_fast_enter(compiler, SLJIT_MEM1(SLJIT_SP), LOCALS0); in PRIV()
10206 sljit_emit_ijump(compiler, SLJIT_CALL2, SLJIT_IMM, SLJIT_FUNC_OFFSET(sljit_stack_resize)); in PRIV()
10213 sljit_emit_fast_return(compiler, SLJIT_MEM1(SLJIT_SP), LOCALS0); in PRIV()
10296 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
10297 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
10299 executable_func = sljit_generate_code(compiler); in PRIV()
10300 executable_size = sljit_get_generated_code_size(compiler); in PRIV()
10307 sljit_free_compiler(compiler); in PRIV()
10310 free_read_only_data(common->read_only_data_head, compiler->allocator_data); in PRIV()
10328 functions = SLJIT_MALLOC(sizeof(executable_functions), compiler->allocator_data); in PRIV()
10334 free_read_only_data(common->read_only_data_head, compiler->allocator_data); in PRIV()
10534 SLJIT_FREE(functions, compiler->allocator_data); in PRIV()