Changeset 72489 in webkit for trunk/JavaScriptCore/yarr/RegexInterpreter.cpp
- Timestamp:
- Nov 20, 2010, 6:48:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/yarr/RegexInterpreter.cpp
r72207 r72489 36 36 #endif 37 37 38 #if ENABLE(YARR)39 40 38 using namespace WTF; 41 39 … … 1342 1340 pattern->m_allocator->stopAllocator(); 1343 1341 1344 if (output[0] == -1 && result != JSRegExpNoMatch) 1345 return result; 1346 1342 // RegExp.cpp currently expects all error to be converted to -1. 1343 ASSERT((result == JSRegExpMatch) == (output[0] != -1)); 1347 1344 return output[0]; 1348 1345 } … … 1743 1740 } 1744 1741 1742 PassOwnPtr<BytecodePattern> byteCompileRegex(RegexPattern& pattern, BumpPointerAllocator* allocator) 1743 { 1744 return ByteCompiler(pattern).compile(allocator); 1745 } 1746 1745 1747 int interpretRegex(BytecodePattern* regex, const UChar* input, unsigned start, unsigned length, int* output) 1746 1748 { … … 1759 1761 1760 1762 } } 1761 1762 #endif
Note:
See TracChangeset
for help on using the changeset viewer.