Lines Matching defs:opcode

292   /* Points to the starting opcode. */
308 /* Points to the starting opcode. */
323 /* Maps private data offset to each opcode. */
490 /* These two locals can be used by the current opcode. */
823 /* Only AUTO_CALLOUT can insert this opcode. We do
6415 pcre_uchar opcode;
6446 opcode = *cc;
6447 SLJIT_ASSERT(opcode >= OP_ASSERT && opcode <= OP_ASSERTBACK_NOT);
6448 found = (opcode == OP_ASSERT || opcode == OP_ASSERTBACK) ? &tmp : target;
6497 if (opcode == OP_ASSERT_NOT || opcode == OP_ASSERTBACK_NOT)
6523 if (opcode == OP_ASSERT_NOT || opcode == OP_ASSERTBACK_NOT)
6552 if ((opcode != OP_ASSERT_NOT && opcode != OP_ASSERTBACK_NOT) || conditional)
6568 if (opcode == OP_ASSERT_NOT || opcode == OP_ASSERTBACK_NOT)
6597 if (opcode == OP_ASSERT_NOT || opcode == OP_ASSERTBACK_NOT)
6619 if (opcode == OP_ASSERT_NOT || opcode == OP_ASSERTBACK_NOT)
6646 if (opcode == OP_ASSERT || opcode == OP_ASSERTBACK)
6790 if (opcode == OP_ASSERT_NOT || opcode == OP_ASSERTBACK_NOT)
6933 pcre_uchar opcode;
6958 opcode = *cc;
6961 opcode = *cc;
6978 if ((opcode == OP_COND || opcode == OP_SCOND) && cc[1 + LINK_SIZE] == OP_DEF)
6991 if (SLJIT_UNLIKELY(opcode == OP_COND || opcode == OP_SCOND))
6994 if (SLJIT_UNLIKELY(opcode == OP_COND) && (*cc == OP_KETRMAX || *cc == OP_KETRMIN))
6995 opcode = OP_SCOND;
6996 if (SLJIT_UNLIKELY(opcode == OP_ONCE_NC))
6997 opcode = OP_ONCE;
6999 if (opcode == OP_CBRA || opcode == OP_SCBRA)
7016 else if (opcode == OP_ONCE || opcode == OP_SBRA || opcode == OP_SCOND)
7022 if (opcode == OP_ONCE)
7057 if (opcode == OP_ONCE || opcode >= OP_SBRA)
7065 if (opcode != OP_ONCE || BACKTRACK_AS(bracket_backtrack)->u.framesize < 0)
7100 if (has_alternatives && opcode != OP_ONCE && opcode < OP_SBRA && repeat_type == 0)
7105 if (opcode == OP_ONCE)
7183 else if (opcode == OP_CBRA || opcode == OP_SCBRA)
7204 else if (opcode == OP_SBRA || opcode == OP_SCOND)
7220 if (opcode == OP_COND || opcode == OP_SCOND)
7323 if (opcode == OP_ONCE)
7342 if (has_alternatives && opcode != OP_ONCE)
7370 if (opcode != OP_ONCE)
7392 if (opcode != OP_ONCE)
7395 else if (opcode == OP_ONCE || opcode >= OP_SBRA)
7400 if (opcode != OP_ONCE)
7443 if (opcode == OP_ONCE && BACKTRACK_AS(bracket_backtrack)->u.framesize >= 0)
7448 else if (ket == OP_KETRMIN && opcode != OP_ONCE)
7463 if (opcode == OP_ONCE)
7472 pcre_uchar opcode;
7492 opcode = *cc;
7496 switch(opcode)
7646 if (opcode == OP_SBRAPOS)
7651 if (opcode == OP_SBRAPOS || opcode == OP_SCBRAPOS)
7673 if (opcode == OP_SBRAPOS)
7678 if (opcode == OP_SBRAPOS || opcode == OP_SCBRAPOS)
7746 static SLJIT_INLINE pcre_uchar *get_iterator_parameters(compiler_common *common, pcre_uchar *cc, pcre_uchar *opcode, pcre_uchar *type, int *max, int *min, pcre_uchar **end)
7750 *opcode = *cc;
7751 if (*opcode >= OP_STAR && *opcode <= OP_POSUPTO)
7756 else if (*opcode >= OP_STARI && *opcode <= OP_POSUPTOI)
7760 *opcode -= OP_STARI - OP_STAR;
7762 else if (*opcode >= OP_NOTSTAR && *opcode <= OP_NOTPOSUPTO)
7766 *opcode -= OP_NOTSTAR - OP_STAR;
7768 else if (*opcode >= OP_NOTSTARI && *opcode <= OP_NOTPOSUPTOI)
7772 *opcode -= OP_NOTSTARI - OP_STAR;
7774 else if (*opcode >= OP_TYPESTAR && *opcode <= OP_TYPEPOSUPTO)
7777 *opcode -= OP_TYPESTAR - OP_STAR;
7782 SLJIT_ASSERT(*opcode == OP_CLASS || *opcode == OP_NCLASS || *opcode == OP_XCLASS);
7783 *type = *opcode;
7786 *opcode = cc[class_len - 1];
7787 if (*opcode >= OP_CRSTAR && *opcode <= OP_CRMINQUERY)
7789 *opcode -= OP_CRSTAR - OP_STAR;
7793 else if (*opcode >= OP_CRPOSSTAR && *opcode <= OP_CRPOSQUERY)
7795 *opcode -= OP_CRPOSSTAR - OP_POSSTAR;
7801 SLJIT_ASSERT(*opcode == OP_CRRANGE || *opcode == OP_CRMINRANGE || *opcode == OP_CRPOSRANGE);
7808 *opcode = (*opcode == OP_CRRANGE) ? OP_UPTO : (*opcode == OP_CRMINRANGE ? OP_MINUPTO : OP_POSUPTO);
7811 *opcode = OP_EXACT;
7819 if (*opcode == OP_UPTO || *opcode == OP_MINUPTO || *opcode == OP_EXACT || *opcode == OP_POSUPTO)
7848 pcre_uchar opcode;
7863 cc = get_iterator_parameters(common, cc, &opcode, &type, &max, &min, &end);
7904 switch(opcode)
7913 if (opcode == OP_STAR || opcode == OP_UPTO)
7925 if (opcode == OP_UPTO || opcode == OP_CRRANGE)
7930 if (opcode == OP_UPTO || opcode == OP_CRRANGE)
7934 if (opcode == OP_CRRANGE && min > 0)
7936 if (opcode == OP_UPTO || (opcode == OP_CRRANGE && max > 0))
7950 if (opcode == OP_PLUS)
7955 if (opcode <= OP_PLUS)
7962 if (opcode <= OP_PLUS)
7964 else if (opcode == OP_CRRANGE && max == 0)
7977 if (opcode == OP_CRRANGE)
7986 if (opcode == OP_MINPLUS)
8000 if (opcode == OP_CRMINRANGE)
8010 if (opcode == OP_QUERY)
8026 if (opcode == OP_POSPLUS)
8028 if (opcode == OP_POSUPTO)
8034 if (opcode != OP_POSUPTO)
8157 pcre_uchar opcode = *cc;
8160 if (opcode == OP_PRUNE_ARG || opcode == OP_SKIP_ARG || opcode == OP_THEN_ARG)
8165 if (opcode == OP_SKIP)
8172 if (opcode == OP_PRUNE_ARG || opcode == OP_THEN_ARG)
8544 pcre_uchar opcode;
8555 cc = get_iterator_parameters(common, cc, &opcode, &type, &max, &min, NULL);
8557 switch(opcode)
8573 if (opcode == OP_UPTO)
8575 if (opcode <= OP_PLUS)
8590 if (opcode == OP_CRRANGE)
8595 if (opcode == OP_PLUS)
8609 if (opcode == OP_MINPLUS)
8615 if (opcode == OP_CRMINRANGE)
8628 if (opcode == OP_CRMINRANGE)
8631 if (opcode == OP_CRMINRANGE && max == 0)
8805 int opcode, stacksize, alt_count, alt_max;
8832 opcode = *cc;
8849 if (SLJIT_UNLIKELY(opcode == OP_COND) || SLJIT_UNLIKELY(opcode == OP_SCOND))
8851 if (opcode == OP_CBRA || opcode == OP_SCBRA)
8853 if (SLJIT_UNLIKELY(opcode == OP_COND) && (*cc == OP_KETRMAX || *cc == OP_KETRMIN))
8854 opcode = OP_SCOND;
8855 if (SLJIT_UNLIKELY(opcode == OP_ONCE_NC))
8856 opcode = OP_ONCE;
8861 if (opcode == OP_ONCE)
8897 if (opcode != OP_ONCE)
8900 else if (opcode >= OP_SBRA || opcode == OP_ONCE)
8903 if (opcode != OP_ONCE || CURRENT_AS(bracket_backtrack)->u.framesize < 0)
8911 if (opcode != OP_ONCE)
8956 if (SLJIT_UNLIKELY(opcode == OP_ONCE))
8965 else if (SLJIT_UNLIKELY(opcode == OP_COND) || SLJIT_UNLIKELY(opcode == OP_SCOND))
9002 if (SLJIT_UNLIKELY(opcode == OP_COND) || SLJIT_UNLIKELY(opcode == OP_SCOND))
9041 if (opcode != OP_COND && opcode != OP_SCOND)
9043 if (opcode != OP_ONCE)
9060 if (opcode == OP_ONCE)
9079 if (opcode != OP_ONCE)
9105 if (opcode != OP_ONCE)
9117 if (opcode != OP_ONCE)
9148 SLJIT_ASSERT(opcode == OP_COND || opcode == OP_SCOND);
9182 else if (opcode == OP_SBRA || opcode == OP_SCOND)
9187 else if (opcode == OP_ONCE)
9245 if (opcode != OP_ONCE)
9248 if (opcode == OP_ONCE)
9327 pcre_uchar opcode = *current->cc;
9331 if (opcode == OP_THEN || opcode == OP_THEN_ARG)
9366 if (opcode == OP_SKIP_ARG)
9380 if (opcode == OP_SKIP)
9591 /* A virtual opcode for then traps. */