Changeset 112454 in webkit for trunk/Source/JavaScriptCore/runtime/RegExp.h
- Timestamp:
- Mar 28, 2012, 3:18:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/RegExp.h
r106189 r112454 23 23 #define RegExp_h 24 24 25 #include "ExecutableAllocator.h" 26 #include "MatchResult.h" 27 #include "RegExpKey.h" 28 #include "Structure.h" 25 29 #include "UString.h" 26 #include "ExecutableAllocator.h"27 #include "Structure.h"28 #include "RegExpKey.h"29 30 #include "yarr/Yarr.h" 30 31 #include <wtf/Forward.h> 31 32 #include <wtf/RefCounted.h> 33 34 #if ENABLE(YARR_JIT) 35 #include "yarr/YarrJIT.h" 36 #endif 32 37 33 38 namespace JSC { … … 54 59 const char* errorMessage() const { return m_constructionError; } 55 60 56 JS_EXPORT_PRIVATE int match(JSGlobalData&, const UString&, unsigned startOffset, Vector<int, 32>* ovector = 0); 61 JS_EXPORT_PRIVATE int match(JSGlobalData&, const UString&, unsigned startOffset, Vector<int, 32>& ovector); 62 MatchResult match(JSGlobalData&, const UString&, unsigned startOffset); 57 63 unsigned numSubpatterns() const { return m_numSubpatterns; } 58 64 59 65 bool hasCode() 60 66 { 61 return m_ representation;67 return m_state != NotCompiled; 62 68 } 63 69 … … 96 102 void compileIfNecessary(JSGlobalData&, Yarr::YarrCharSize); 97 103 104 void compileMatchOnly(JSGlobalData*, Yarr::YarrCharSize); 105 void compileIfNecessaryMatchOnly(JSGlobalData&, Yarr::YarrCharSize); 106 98 107 #if ENABLE(YARR_JIT_DEBUG) 99 108 void matchCompareWithInterpreter(const UString&, int startOffset, int* offsetVector, int jitResult); … … 109 118 #endif 110 119 111 OwnPtr<RegExpRepresentation> m_representation; 120 #if ENABLE(YARR_JIT) 121 Yarr::YarrCodeBlock m_regExpJITCode; 122 #endif 123 OwnPtr<Yarr::BytecodePattern> m_regExpBytecode; 112 124 }; 113 125
Note:
See TracChangeset
for help on using the changeset viewer.