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))
2049 static SLJIT_INLINE void add_jump(struct sljit_compiler *compiler, jump_list **list, struct sljit_j… in add_jump() argument
2051 jump_list *list_item = sljit_alloc_memory(compiler, sizeof(jump_list)); in add_jump()
2063 stub_list *list_item = sljit_alloc_memory(compiler, sizeof(stub_list)); in add_stub()
2082 add_jump(compiler, &common->stackalloc, JUMP(SLJIT_FAST_CALL)); in flush_stubs()
2094 label_addr = sljit_alloc_memory(compiler, sizeof(label_addr_list)); in add_label_addr()
2108 add_jump(compiler, &common->calllimit, JUMP(SLJIT_ZERO)); in count_match()
2138 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in allocate_read_only_data()
2141 result = (sljit_uw *)SLJIT_MALLOC(size + sizeof(sljit_uw), compiler->allocator_data); in allocate_read_only_data()
2144 sljit_set_compiler_memory_error(compiler); in allocate_read_only_data()
2510 add_jump(compiler, &common->partialmatch, JUMP(SLJIT_JUMP)); in check_partial()
2525 add_jump(compiler, end_reached, CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0)); in check_str_end()
2532 …add_jump(compiler, end_reached, CMP(SLJIT_GREATER_EQUAL, SLJIT_MEM1(SLJIT_SP), common->start_used_… in check_str_end()
2534 add_jump(compiler, end_reached, JUMP(SLJIT_JUMP)); in check_str_end()
2538 …add_jump(compiler, end_reached, CMP(SLJIT_GREATER_EQUAL, SLJIT_MEM1(SLJIT_SP), common->start_used_… in check_str_end()
2542 add_jump(compiler, &common->partialmatch, JUMP(SLJIT_JUMP)); in check_str_end()
2554 add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0)); in detect_partial_match()
2560 add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, SLJIT_MEM1(SLJIT_SP), common->start_used_pt… in detect_partial_match()
2564 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in detect_partial_match()
2571 add_jump(compiler, &common->partialmatch, JUMP(SLJIT_JUMP)); in detect_partial_match()
2595 add_jump(compiler, &common->utfreadchar, JUMP(SLJIT_FAST_CALL)); in peek_char()
2736 …add_jump(compiler, (max < 0x10000) ? &common->utfreadchar16 : &common->utfreadchar, JUMP(SLJIT_FAS… in read_char_range()
2834 add_jump(compiler, &common->utfreadtype8, JUMP(SLJIT_FAST_CALL)); in read_char8_type()
2905 add_jump(compiler, &common->anynewline, JUMP(SLJIT_FAST_CALL)); in check_newlinechar()
2906 add_jump(compiler, backtracks, JUMP(jumpifmatch ? SLJIT_NOT_ZERO : SLJIT_ZERO)); in check_newlinechar()
2912 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, CHAR_CR)); in check_newlinechar()
2913 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, CHAR_NL)); in check_newlinechar()
2918 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, CHAR_NL)); in check_newlinechar()
2925 …add_jump(compiler, backtracks, CMP(jumpifmatch ? SLJIT_EQUAL : SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM… in check_newlinechar()
2939 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_utfreadchar()
2952 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadchar()
2966 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadchar()
2977 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadchar()
2987 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_utfreadchar16()
2999 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadchar16()
3013 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadchar16()
3024 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_utfreadtype8()
3038 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadtype8()
3042 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadtype8()
3049 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_utfreadtype8()
3070 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_getucd()
3080 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_getucd()
4110 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_revertframes()
4129 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_revertframes()
4150 sljit_emit_fast_enter(compiler, SLJIT_MEM1(SLJIT_SP), LOCALS0); in check_wordboundary()
4166 add_jump(compiler, &common->getucd, JUMP(SLJIT_FAST_CALL)); in check_wordboundary()
4210 add_jump(compiler, &common->getucd, JUMP(SLJIT_FAST_CALL)); in check_wordboundary()
4245 sljit_emit_fast_return(compiler, SLJIT_MEM1(SLJIT_SP), LOCALS0); in check_wordboundary()
4296 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in check_class_ranges()
4305 …add_jump(compiler, backtracks, CMP(bit == 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM… in check_class_ranges()
4312 …add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM… in check_class_ranges()
4315 …add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_EQUAL : SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, r… in check_class_ranges()
4321 add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[2])); in check_class_ranges()
4325 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in check_class_ranges()
4328 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in check_class_ranges()
4332 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[0])); in check_class_ranges()
4336 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[2] - ranges[1])); in check_class_ranges()
4339 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[1])); in check_class_ranges()
4353 …add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM… in check_class_ranges()
4356 …add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_EQUAL : SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, r… in check_class_ranges()
4366 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in check_class_ranges()
4370 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in check_class_ranges()
4375 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[3] - ranges[2])); in check_class_ranges()
4378 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[2] - i)); in check_class_ranges()
4383 …add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[3] - ranges[0])… in check_class_ranges()
4387 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[2] - ranges[1])); in check_class_ranges()
4390 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in check_class_ranges()
4404 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in check_anynewline()
4423 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in check_anynewline()
4431 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in check_hspace()
4462 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in check_hspace()
4470 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in check_vspace()
4490 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in check_vspace()
4502 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_casefulcmp()
4520 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_casefulcmp()
4531 sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); in do_caselesscmp()
4565 sljit_emit_fast_return(compiler, RETURN_ADDR, 0); in do_caselesscmp()
4706 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, context->c.a… in byte_sequence_compare()
4712 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, context->c.a… in byte_sequence_compare()
4719 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, context->c.a… in byte_sequence_compare()
4741 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, *cc | otherc… in byte_sequence_compare()
4744 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, *cc)); in byte_sequence_compare()
4913 add_jump(compiler, &found, JUMP(SLJIT_NOT_ZERO)); in compile_xclass_matchingpath()
4916 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_xclass_matchingpath()
4924 …add_jump(compiler, (cc[-1] & XCL_NOT) == 0 ? backtracks : &found, CMP(SLJIT_GREATER, TMP2, 0, SLJI… in compile_xclass_matchingpath()
4946 add_jump(compiler, list, JUMP(SLJIT_NOT_ZERO)); in compile_xclass_matchingpath()
4964 add_jump(compiler, &common->getucd, JUMP(SLJIT_FAST_CALL)); in compile_xclass_matchingpath()
5273 add_jump(compiler, compares > 0 ? list : backtracks, jump); in compile_xclass_matchingpath()
5305 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, STR_PTR, 0, TMP1, 0)); in compile_char1_matchingpath()
5311 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, STR_PTR, 0, TMP1, 0)); in compile_char1_matchingpath()
5316 add_jump(compiler, &common->wordboundary, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5317 add_jump(compiler, backtracks, JUMP(type == OP_NOT_WORD_BOUNDARY ? SLJIT_NOT_ZERO : SLJIT_ZERO)); in compile_char1_matchingpath()
5332 add_jump(compiler, backtracks, JUMP(type == OP_DIGIT ? SLJIT_ZERO : SLJIT_NOT_ZERO)); in compile_char1_matchingpath()
5345 add_jump(compiler, backtracks, JUMP(type == OP_WHITESPACE ? SLJIT_ZERO : SLJIT_NOT_ZERO)); in compile_char1_matchingpath()
5358 add_jump(compiler, backtracks, JUMP(type == OP_WORDCHAR ? SLJIT_ZERO : SLJIT_NOT_ZERO)); in compile_char1_matchingpath()
5369 add_jump(compiler, &end_list, CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5374 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, common->newline & 0xff)); in compile_char1_matchingpath()
5436 add_jump(compiler, &end_list, CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5454 add_jump(compiler, &common->hspace, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5455 add_jump(compiler, backtracks, JUMP(type == OP_NOT_HSPACE ? SLJIT_NOT_ZERO : SLJIT_ZERO)); in compile_char1_matchingpath()
5462 add_jump(compiler, &common->vspace, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5463 add_jump(compiler, backtracks, JUMP(type == OP_NOT_VSPACE ? SLJIT_NOT_ZERO : SLJIT_ZERO)); in compile_char1_matchingpath()
5470 add_jump(compiler, &common->getucd, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5480 add_jump(compiler, &common->getucd, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5513 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, STR_END, 0)); in compile_char1_matchingpath()
5521 add_jump(compiler, backtracks, JUMP(SLJIT_NOT_EQUAL)); in compile_char1_matchingpath()
5523 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_char1_matchingpath()
5527 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, (common->newline >> 8) & 0… in compile_char1_matchingpath()
5528 … add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, common->newline & 0xff)); in compile_char1_matchingpath()
5534 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, STR_END, 0)); in compile_char1_matchingpath()
5535 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, common->newline)); in compile_char1_matchingpath()
5544 add_jump(compiler, backtracks, JUMP(SLJIT_LESS)); in compile_char1_matchingpath()
5548 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_char1_matchingpath()
5554 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP2, 0, STR_END, 0)); in compile_char1_matchingpath()
5555 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, CHAR_NL)); in compile_char1_matchingpath()
5561 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5562 add_jump(compiler, &common->anynewline, JUMP(SLJIT_FAST_CALL)); in compile_char1_matchingpath()
5563 add_jump(compiler, backtracks, JUMP(SLJIT_ZERO)); in compile_char1_matchingpath()
5574 add_jump(compiler, backtracks, CMP(SLJIT_LESS, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5581 add_jump(compiler, backtracks, CMP(SLJIT_GREATER, STR_PTR, 0, TMP1, 0)); in compile_char1_matchingpath()
5583 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_char1_matchingpath()
5591 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_char1_matchingpath()
5595 add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5599 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP2, 0, TMP1, 0)); in compile_char1_matchingpath()
5602 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, (common->newline >> 8) & 0… in compile_char1_matchingpath()
5603 … add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, common->newline & 0xff)); in compile_char1_matchingpath()
5617 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_char1_matchingpath()
5623 add_jump(compiler, backtracks, CMP(SLJIT_LESS, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5632 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_char1_matchingpath()
5642 add_jump(compiler, backtracks, CMP(SLJIT_GREATER, TMP2, 0, STR_END, 0)); in compile_char1_matchingpath()
5647 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, (common->newline >> 8) & 0… in compile_char1_matchingpath()
5649 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_char1_matchingpath()
5654 …add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, (common->newline >> 8) & 0… in compile_char1_matchingpath()
5655 … add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, common->newline & 0xff)); in compile_char1_matchingpath()
5674 add_jump(compiler, backtracks, CMP(SLJIT_GREATER, STR_PTR, 0, STR_END, 0)); in compile_char1_matchingpath()
5697 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, c)); in compile_char1_matchingpath()
5706 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, c | bit)); in compile_char1_matchingpath()
5710 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, oc)); in compile_char1_matchingpath()
5727 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, c)); in compile_char1_matchingpath()
5732 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP2, 0, SLJIT_IMM, c | 0x20)); in compile_char1_matchingpath()
5755 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, c)); in compile_char1_matchingpath()
5765 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, c | bit)); in compile_char1_matchingpath()
5769 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, c)); in compile_char1_matchingpath()
5770 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, oc)); in compile_char1_matchingpath()
5796 add_jump(compiler, backtracks, jump[0]); in compile_char1_matchingpath()
5804 add_jump(compiler, backtracks, jump[0]); in compile_char1_matchingpath()
5814 add_jump(compiler, backtracks, JUMP(SLJIT_ZERO)); in compile_char1_matchingpath()
5840 add_jump(compiler, backtracks, CMP(SLJIT_LESS_EQUAL, STR_PTR, 0, TMP3, 0)); in compile_char1_matchingpath()
5850 add_jump(compiler, backtracks, CMP(SLJIT_LESS, STR_PTR, 0, TMP1, 0)); in compile_char1_matchingpath()
5911 add_jump(compiler, backtracks, CMP(SLJIT_GREATER, STR_PTR, 0, STR_END, 0)); in compile_charn_matchingpath()
5932 backtrack = sljit_alloc_memory(compiler, (size)); \
5933 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) \
5945 backtrack = sljit_alloc_memory(compiler, (size)); \
5946 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) \
5975 add_jump(compiler, &found, CMP(SLJIT_NOT_EQUAL, SLJIT_MEM1(SLJIT_SP), OVECTOR(offset), TMP1, 0)); in compile_dnref_search()
5982 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, SLJIT_MEM1(SLJIT_SP), OVECTOR(offset), TMP1, 0)); in compile_dnref_search()
6002 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_MEM1(SLJIT_SP), OVECTOR(1))); in compile_ref_matchingpath()
6023 sljit_emit_ijump(compiler, SLJIT_CALL3, SLJIT_IMM, SLJIT_FUNC_OFFSET(do_utf_caselesscmp)); in compile_ref_matchingpath()
6026 add_jump(compiler, backtracks, CMP(SLJIT_LESS_EQUAL, SLJIT_RETURN_REG, 0, SLJIT_IMM, 1)); in compile_ref_matchingpath()
6029 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, SLJIT_RETURN_REG, 0, SLJIT_IMM, 0)); in compile_ref_matchingpath()
6032 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_ref_matchingpath()
6051 add_jump(compiler, backtracks, partial); in compile_ref_matchingpath()
6053 …add_jump(compiler, *cc == OP_REF ? &common->casefulcmp : &common->caselesscmp, JUMP(SLJIT_FAST_CAL… in compile_ref_matchingpath()
6054 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_ref_matchingpath()
6065 …add_jump(compiler, *cc == OP_REF ? &common->casefulcmp : &common->caselesscmp, JUMP(SLJIT_FAST_CAL… in compile_ref_matchingpath()
6066 add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_ref_matchingpath()
6069 add_jump(compiler, backtracks, JUMP(SLJIT_JUMP)); in compile_ref_matchingpath()
6077 add_jump(compiler, backtracks, jump); in compile_ref_matchingpath()
6171 …add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_MEM1(SLJIT_SP), OVEC… in compile_ref_iterator_matchingpath()
6251 …add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_MEM1(SLJIT_SP), OVEC… in compile_ref_iterator_matchingpath()
6265 …add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_GREATER_EQUAL, SLJIT_MEM1(STACK_TOP), STAC… in compile_ref_iterator_matchingpath()
6321 entry = sljit_alloc_memory(compiler, sizeof(recurse_entry)); in compile_recurse_matchingpath()
6322 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_recurse_matchingpath()
6351 add_jump(compiler, &entry->calls, JUMP(SLJIT_FAST_CALL)); in compile_recurse_matchingpath()
6355 add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, 0)); in compile_recurse_matchingpath()
6440 sljit_emit_ijump(compiler, SLJIT_CALL3, SLJIT_IMM, SLJIT_FUNC_OFFSET(do_callout)); in compile_callout_matchingpath()
6447 add_jump(compiler, &backtrack->topbacktracks, JUMP(SLJIT_SIG_GREATER)); in compile_callout_matchingpath()
6449 add_jump(compiler, &common->forced_quit, JUMP(SLJIT_SIG_LESS)); in compile_callout_matchingpath()
6573 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_assert_matchingpath()
6616 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_assert_matchingpath()
6644 add_jump(compiler, found, JUMP(SLJIT_JUMP)); in compile_assert_matchingpath()
6647 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_assert_matchingpath()
6689 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_assert_matchingpath()
6731 add_jump(compiler, target, jump); in compile_assert_matchingpath()
6790 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_assert_matchingpath()
7277 add_jump(compiler, &(BACKTRACK_AS(bracket_backtrack)->u.condfailed), in compile_bracket_matchingpath()
7299 add_jump(compiler, &(BACKTRACK_AS(bracket_backtrack)->u.condfailed), JUMP(SLJIT_ZERO)); in compile_bracket_matchingpath()
7363 assert = sljit_alloc_memory(compiler, sizeof(assert_backtrack)); in compile_bracket_matchingpath()
7364 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_bracket_matchingpath()
7374 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_bracket_matchingpath()
7500 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_bracket_matchingpath()
7681 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_bracketpos_matchingpath()
7710 add_jump(compiler, &emptymatch, CMP(SLJIT_EQUAL, TMP1, 0, STR_PTR, 0)); in compile_bracketpos_matchingpath()
7741 add_jump(compiler, &emptymatch, CMP(SLJIT_EQUAL, TMP1, 0, STR_PTR, 0)); in compile_bracketpos_matchingpath()
7756 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_bracketpos_matchingpath()
7794 …add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_NOT_EQUAL, SLJIT_MEM1(STACK_TOP), STACK(st… in compile_bracketpos_matchingpath()
7796 …add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_NOT_EQUAL, SLJIT_MEM1(TMP2), (stacksize - … in compile_bracketpos_matchingpath()
8037 … add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_LESS, base, offset1, SLJIT_IMM, min + 1)); in compile_iterator_matchingpath()
8060 add_jump(compiler, &backtrack->topbacktracks, JUMP(SLJIT_JUMP)); in compile_iterator_matchingpath()
8158 add_jump(compiler, &backtrack->topbacktracks, JUMP(SLJIT_JUMP)); in compile_fail_accept_matchingpath()
8166 add_jump(compiler, &common->accept, JUMP(SLJIT_JUMP)); in compile_fail_accept_matchingpath()
8173 …add_jump(compiler, &common->accept, CMP(SLJIT_NOT_EQUAL, STR_PTR, 0, SLJIT_MEM1(SLJIT_SP), OVECTOR… in compile_fail_accept_matchingpath()
8178 add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_NOT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_fail_accept_matchingpath()
8181 add_jump(compiler, &common->accept, CMP(SLJIT_EQUAL, TMP2, 0, SLJIT_IMM, 0)); in compile_fail_accept_matchingpath()
8186 add_jump(compiler, &common->accept, CMP(SLJIT_NOT_EQUAL, TMP2, 0, STR_PTR, 0)); in compile_fail_accept_matchingpath()
8189 add_jump(compiler, &backtrack->topbacktracks, JUMP(SLJIT_JUMP)); in compile_fail_accept_matchingpath()
8591 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) \
8842 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_assert_backtrackingpath()
9019 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_bracket_backtrackingpath()
9046 sljit_emit_ijump(compiler, SLJIT_JUMP, SLJIT_MEM1(TMP1), (sljit_sw)next_update_addr); in compile_bracket_backtrackingpath()
9071 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_bracket_backtrackingpath()
9113 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_bracket_backtrackingpath()
9212 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_bracket_backtrackingpath()
9346 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_bracketpos_backtrackingpath()
9406 add_jump(compiler, &common->then_trap->quit, JUMP(SLJIT_JUMP)); in compile_control_verb_backtrackingpath()
9411 add_jump(compiler, &common->positive_assert_quit, JUMP(SLJIT_JUMP)); in compile_control_verb_backtrackingpath()
9419 add_jump(compiler, &common->quit, JUMP(SLJIT_JUMP)); in compile_control_verb_backtrackingpath()
9431 sljit_emit_ijump(compiler, SLJIT_CALL2, SLJIT_IMM, SLJIT_FUNC_OFFSET(do_search_mark)); in compile_control_verb_backtrackingpath()
9435 add_jump(compiler, &common->reset_match, CMP(SLJIT_NOT_EQUAL, STR_PTR, 0, SLJIT_IMM, -1)); in compile_control_verb_backtrackingpath()
9443 add_jump(compiler, &common->reset_match, JUMP(SLJIT_JUMP)); in compile_control_verb_backtrackingpath()
9468 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_then_trap_backtrackingpath()
9637 add_jump(compiler, &common->quit, JUMP(SLJIT_JUMP)); in compile_backtrackingpath()
9690 sljit_emit_fast_enter(compiler, TMP2, 0); in compile_recurse()
9720 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_recurse()
9723 add_jump(compiler, &common->accept, JUMP(SLJIT_JUMP)); in compile_recurse()
9726 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in compile_recurse()
9748 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_recurse()
9753 add_jump(compiler, &common->quit, JUMP(SLJIT_JUMP)); in compile_recurse()
9761 add_jump(compiler, &common->revertframes, JUMP(SLJIT_FAST_CALL)); in compile_recurse()
9785 sljit_emit_fast_return(compiler, SLJIT_MEM1(STACK_TOP), 0); in compile_recurse()
9794 struct sljit_compiler *compiler; in PRIV() local
9910 common->optimized_cbracket = (pcre_uint8 *)SLJIT_MALLOC(re->top_bracket + 1, compiler->allocator_da… in PRIV()
9926 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
9988 …T_MALLOC(total_length * (sizeof(sljit_si) + (common->has_then ? 1 : 0)), compiler->allocator_data); in PRIV()
9991 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
10000 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
10001 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
10012 compiler = sljit_create_compiler(NULL); in PRIV()
10013 if (!compiler) in PRIV()
10015 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
10016 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
10019 common->compiler = compiler; in PRIV()
10022 sljit_emit_enter(compiler, 0, 1, 5, 5, 0, 0, private_data_size); in PRIV()
10104 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in PRIV()
10106 sljit_free_compiler(compiler); in PRIV()
10107 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
10108 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
10109 free_read_only_data(common->read_only_data_head, compiler->allocator_data); in PRIV()
10132 sljit_emit_return(compiler, SLJIT_MOV, SLJIT_RETURN_REG, 0); in PRIV()
10144 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in PRIV()
10146 sljit_free_compiler(compiler); in PRIV()
10147 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
10148 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
10149 free_read_only_data(common->read_only_data_head, compiler->allocator_data); in PRIV()
10224 if (SLJIT_UNLIKELY(sljit_get_compiler_error(compiler))) in PRIV()
10226 sljit_free_compiler(compiler); in PRIV()
10227 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
10228 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
10229 free_read_only_data(common->read_only_data_head, compiler->allocator_data); in PRIV()
10242 sljit_emit_fast_enter(compiler, SLJIT_MEM1(SLJIT_SP), LOCALS0); in PRIV()
10249 sljit_emit_ijump(compiler, SLJIT_CALL2, SLJIT_IMM, SLJIT_FUNC_OFFSET(sljit_stack_resize)); in PRIV()
10256 sljit_emit_fast_return(compiler, SLJIT_MEM1(SLJIT_SP), LOCALS0); in PRIV()
10339 SLJIT_FREE(common->optimized_cbracket, compiler->allocator_data); in PRIV()
10340 SLJIT_FREE(common->private_data_ptrs, compiler->allocator_data); in PRIV()
10342 executable_func = sljit_generate_code(compiler); in PRIV()
10343 executable_size = sljit_get_generated_code_size(compiler); in PRIV()
10350 sljit_free_compiler(compiler); in PRIV()
10353 free_read_only_data(common->read_only_data_head, compiler->allocator_data); in PRIV()
10371 functions = SLJIT_MALLOC(sizeof(executable_functions), compiler->allocator_data); in PRIV()
10377 free_read_only_data(common->read_only_data_head, compiler->allocator_data); in PRIV()
10577 SLJIT_FREE(functions, compiler->allocator_data); in PRIV()