Changeset 72140 in webkit for trunk/JavaScriptCore/yarr/RegexInterpreter.h
- Timestamp:
- Nov 16, 2010, 3:27:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/yarr/RegexInterpreter.h
r68127 r72140 40 40 41 41 namespace JSC { namespace Yarr { 42 43 // TODO move the matchLimit constant and the JSRegExpResult enum to the JSRegExp.h when pcre is removed. 44 45 // The below limit restricts the number of "recursive" match calls in order to 46 // avoid spending exponential time on complex regular expressions. 47 static const unsigned matchLimit = 1000000; 48 49 enum JSRegExpResult { 50 JSRegExpMatch = 1, 51 JSRegExpNoMatch = 0, 52 JSRegExpErrorNoMatch = -1, 53 JSRegExpErrorHitLimit = -2, 54 JSRegExpErrorNoMemory = -3, 55 JSRegExpErrorInternal = -4 56 }; 42 57 43 58 class ByteDisjunction;
Note:
See TracChangeset
for help on using the changeset viewer.