Changeset 177820 in webkit for trunk/Source/JavaScriptCore/yarr/YarrInterpreter.cpp
- Timestamp:
- Dec 29, 2014, 6:59:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/yarr/YarrInterpreter.cpp
r176553 r177820 1713 1713 1714 1714 unsigned numSubpatterns = lastSubpatternId - subpatternId + 1; 1715 OwnPtr<ByteDisjunction> parenthesesDisjunction = adoptPtr(new ByteDisjunction(numSubpatterns, callFrameSize));1715 auto parenthesesDisjunction = std::make_unique<ByteDisjunction>(numSubpatterns, callFrameSize); 1716 1716 1717 1717 unsigned firstTermInParentheses = beginTerm + 1; … … 1726 1726 1727 1727 m_bodyDisjunction->terms.append(ByteTerm(ByteTerm::TypeParenthesesSubpattern, subpatternId, parenthesesDisjunction.get(), capture, inputPosition)); 1728 m_allParenthesesInfo.append( parenthesesDisjunction.release());1728 m_allParenthesesInfo.append(WTF::move(parenthesesDisjunction)); 1729 1729 1730 1730 m_bodyDisjunction->terms[beginTerm].atom.quantityCount = quantityCount.unsafeGet(); … … 1924 1924 unsigned m_currentAlternativeIndex; 1925 1925 Vector<ParenthesesStackEntry> m_parenthesesStack; 1926 Vector< OwnPtr<ByteDisjunction>> m_allParenthesesInfo;1926 Vector<std::unique_ptr<ByteDisjunction>> m_allParenthesesInfo; 1927 1927 }; 1928 1928
Note:
See TracChangeset
for help on using the changeset viewer.