Changeset 168776 in webkit for trunk/Source/JavaScriptCore/yarr/YarrJIT.cpp
- Timestamp:
- May 13, 2014, 8:57:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/yarr/YarrJIT.cpp
r158208 r168776 1640 1640 ASSERT(term->quantityCount == 1); 1641 1641 1642 #ifndef NDEBUG1643 1642 // Runtime ASSERT to make sure that the nested alternative handled the 1644 1643 // "no input consumed" check. 1645 if ( term->quantityType != QuantifierFixedCount && !term->parentheses.disjunction->m_minimumSize) {1644 if (!ASSERT_DISABLED && term->quantityType != QuantifierFixedCount && !term->parentheses.disjunction->m_minimumSize) { 1646 1645 Jump pastBreakpoint; 1647 1646 pastBreakpoint = branch32(NotEqual, index, Address(stackPointerRegister, term->frameLocation * sizeof(void*))); 1648 breakpoint();1647 abortWithReason(YARRNoInputConsumed); 1649 1648 pastBreakpoint.link(this); 1650 1649 } 1651 #endif1652 1650 1653 1651 // If the parenthese are capturing, store the ending index value to the … … 1696 1694 case OpParenthesesSubpatternTerminalEnd: { 1697 1695 YarrOp& beginOp = m_ops[op.m_previousOp]; 1698 #ifndef NDEBUG 1699 PatternTerm* term = op.m_term;1700 1701 // Runtime ASSERT to make sure that the nested alternative handled the1702 // "no input consumed" check.1703 Jump pastBreakpoint;1704 pastBreakpoint = branch32(NotEqual, index, Address(stackPointerRegister, term->frameLocation * sizeof(void*)));1705 breakpoint();1706 pastBreakpoint.link(this);1707 #endif 1696 if (!ASSERT_DISABLED) { 1697 PatternTerm* term = op.m_term; 1698 1699 // Runtime ASSERT to make sure that the nested alternative handled the 1700 // "no input consumed" check. 1701 Jump pastBreakpoint; 1702 pastBreakpoint = branch32(NotEqual, index, Address(stackPointerRegister, term->frameLocation * sizeof(void*))); 1703 abortWithReason(YARRNoInputConsumed); 1704 pastBreakpoint.link(this); 1705 } 1708 1706 1709 1707 // We know that the match is non-zero, we can accept it and
Note:
See TracChangeset
for help on using the changeset viewer.