Home | History | Annotate | Download | only in regex_src

Lines Matching defs:search_states

395 	struct stack_item *search_states;
1066 struct stack_item *search_states_ptr = compiler_common->search_states;
1178 compiler_common->search_states = SLJIT_MALLOC(sizeof(struct stack_item) * compiler_common->dfa_size, NULL);
1179 if (!compiler_common->search_states)
1182 search_states_ptr = compiler_common->search_states;
1237 struct stack_item *search_states = compiler_common->search_states;
1239 SLJIT_ASSERT(search_states[from].type >= 0);
1249 if (search_states[from].value < id) {
1251 if (search_states[from].value == -1)
1254 search_states[from].value = id;
1266 else if (search_states[from].type < 0) {
1317 struct stack_item *search_states = compiler_common->search_states;
1332 if (search_states[value].type >= 0) {
1333 offset = TERM_OFFSET_OF(search_states[value].type, 0);
1341 EMIT_OP1(SLJIT_MOV, SLJIT_MEM1(reg), TERM_REL_OFFSET_OF(offset, 3), SLJIT_IMM, search_states[value].value);
1345 EMIT_OP1(SLJIT_MOV, SLJIT_MEM1(reg), TERM_REL_OFFSET_OF(offset, 2), SLJIT_IMM, search_states[value].value);
1348 search_states[value].value = -1;
1355 offset = TERM_OFFSET_OF(search_states[1].type, 0);
1375 struct stack_item *search_states = compiler_common->search_states;
1397 if (search_states[value].type >= 0) {
1400 printf("-> (%3d:%3d) ", search_states[value].type, search_states[value].value);
1402 offset = TERM_OFFSET_OF(search_states[value].type, 0);
1460 if (search_states[value].value > 0) {
1461 EMIT_CMP(jump4, SLJIT_GREATER, R_TEMP, 0, SLJIT_IMM, search_states[value].value);
1463 EMIT_OP1(SLJIT_MOV, R_TEMP, 0, SLJIT_IMM, search_states[value].value);
1479 if (search_states[value].value > 0) {
1480 EMIT_CMP(jump3, SLJIT_GREATER, R_TEMP, 0, SLJIT_IMM, search_states[value].value);
1482 EMIT_OP1(SLJIT_MOV, R_TEMP, 0, SLJIT_IMM, search_states[value].value);
1499 if (search_states[value].value > 0) {
1500 EMIT_CMP(jump1, SLJIT_GREATER, R_TEMP, 0, SLJIT_IMM, search_states[value].value);
1502 EMIT_OP1(SLJIT_MOV, R_TEMP, 0, SLJIT_IMM, search_states[value].value);
1530 search_states[value].value = -1;
1637 struct stack_item *search_states = compiler_common->search_states;
1644 search_states[ind].value = -1;
1645 if (search_states[ind].type >= 0) {
1708 offset = TERM_OFFSET_OF(compiler_common->search_states[ind].type, 1);
1779 offset = TERM_OFFSET_OF(compiler_common->search_states[ind].type, 1);
1939 if (compiler_common.search_states[ind].type == 0) {
1942 empty_match_id = compiler_common.search_states[ind].value;
1944 else if (compiler_common.search_states[ind].type > 0) {
1949 compiler_common.search_states[ind].value = -1;
1957 if (compiler_common.search_states[ind].type == 0) {
1960 empty_match_id = compiler_common.search_states[ind].value;
1962 compiler_common.search_states[ind].value = -1;
2046 if (compiler_common.search_states[ind].type >= 0)
2047 printf("-> (%3d:%3d) ", compiler_common.search_states[ind].type, compiler_common.search_states[ind].value);
2048 compiler_common.search_states[ind].value = -1;
2092 if (compiler_common.search_states[ind].type >= 0) {
2093 EMIT_OP1(SLJIT_MOV, SLJIT_MEM1(R_CURR_STATE), TERM_OFFSET_OF(compiler_common.search_states[ind].type, 2), R_TEMP, 0);
2095 compiler_common.search_states[ind].value = -1;
2191 if (compiler_common.search_states[ind].type >= 0) {
2192 SLJIT_ASSERT(compiler_common.search_states[ind].type < compiler_common.terms_size);
2194 compiler_common.machine->entry_addrs[compiler_common.search_states[ind].type] = (sljit_uw)label;
2211 printf("(%3d): ", compiler_common.search_states[ind].type);
2213 CHECK(compile_cond_tran(&compiler_common, compiler_common.search_states[ind].type));
2228 EMIT_OP1(SLJIT_MOV, R_TEMP, 0, SLJIT_MEM1(R_CURR_STATE), TERM_OFFSET_OF(compiler_common.search_states[ind].type, 1));
2229 EMIT_OP1(SLJIT_MOV, SLJIT_MEM1(R_CURR_STATE), TERM_OFFSET_OF(compiler_common.search_states[ind].type, 1), SLJIT_IMM, -1);
2285 SLJIT_FREE(compiler_common.search_states, NULL);