Changeset 72999 in webkit for trunk/JavaScriptCore/yarr/RegexInterpreter.cpp
- Timestamp:
- Nov 30, 2010, 6:46:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/yarr/RegexInterpreter.cpp
r72781 r72999 720 720 // Technically this access to inputPosition should be accessing the begin term's 721 721 // inputPosition, but for repeats other than fixed these values should be 722 // the same anyway! ( we don't pre-check for greedy or non-greedy matches.)722 // the same anyway! (We don't pre-check for greedy or non-greedy matches.) 723 723 ASSERT((&term - term.atom.parenthesesWidth)->type == ByteTerm::TypeParenthesesSubpatternOnceBegin); 724 724 ASSERT((&term - term.atom.parenthesesWidth)->inputPosition == term.inputPosition); … … 740 740 ASSERT(term.type == ByteTerm::TypeParenthesesSubpatternTerminalBegin); 741 741 ASSERT(term.atom.quantityType == QuantifierGreedy); 742 ASSERT(term.atom.quantityCount == UINT_MAX);742 ASSERT(term.atom.quantityCount == quantifyInfinite); 743 743 ASSERT(!term.capture()); 744 744 … … 766 766 ASSERT(term.type == ByteTerm::TypeParenthesesSubpatternTerminalBegin); 767 767 ASSERT(term.atom.quantityType == QuantifierGreedy); 768 ASSERT(term.atom.quantityCount == UINT_MAX);768 ASSERT(term.atom.quantityCount == quantifyInfinite); 769 769 ASSERT(!term.capture()); 770 770 … … 778 778 { 779 779 // 'Terminal' parentheses are at the end of the regex, and as such a match past end 780 // should always be returned as a successful match - we should never b ecktrack to here.780 // should always be returned as a successful match - we should never backtrack to here. 781 781 ASSERT_NOT_REACHED(); 782 782 return false;
Note:
See TracChangeset
for help on using the changeset viewer.