Changeset 42800 in webkit for trunk/JavaScriptCore/yarr/RegexCompiler.cpp
- Timestamp:
- Apr 23, 2009, 5:32:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/yarr/RegexCompiler.cpp
r42481 r42800 542 542 // NOTE: this term is interesting from an analysis perspective, in that it can be ignored..... 543 543 m_alternative->lastTerm().quantify((max == UINT_MAX) ? max : max - min, greedy ? QuantifierGreedy : QuantifierNonGreedy); 544 if (m_alternative->lastTerm().type == PatternTerm::TypeParenthesesSubpattern) 545 m_alternative->lastTerm().parentheses.isCopy = true; 544 546 } 545 547 } … … 608 610 // Note: for fixed once parentheses we will ensure at least the minimum is available; others are on their own. 609 611 term.frameLocation = currentCallFrameSize; 610 if ( term.quantityCount == 1) {612 if ((term.quantityCount == 1) && !term.parentheses.isCopy) { 611 613 if (term.quantityType == QuantifierFixedCount) { 612 614 currentCallFrameSize = setupDisjunctionOffsets(term.parentheses.disjunction, currentCallFrameSize, currentInputPosition);
Note:
See TracChangeset
for help on using the changeset viewer.