Changeset 42481 in webkit for trunk/JavaScriptCore/runtime/RegExp.h
- Timestamp:
- Apr 14, 2009, 12:06:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/RegExp.h
r39554 r42481 27 27 #include <wtf/Forward.h> 28 28 #include <wtf/RefCounted.h> 29 #include "RegexJIT.h" 30 #include "RegexInterpreter.h" 29 31 30 32 struct JSRegExp; … … 38 40 static PassRefPtr<RegExp> create(JSGlobalData* globalData, const UString& pattern); 39 41 static PassRefPtr<RegExp> create(JSGlobalData* globalData, const UString& pattern, const UString& flags); 42 #if !ENABLE(YARR) 40 43 ~RegExp(); 44 #endif 41 45 42 46 bool global() const { return m_flagBits & Global; } … … 57 61 RegExp(JSGlobalData* globalData, const UString& pattern, const UString& flags); 58 62 59 void compile( );63 void compile(JSGlobalData*); 60 64 61 65 enum FlagBits { Global = 1, IgnoreCase = 2, Multiline = 4 }; … … 64 68 UString m_flags; // FIXME: Just decompile m_regExp instead of storing this. 65 69 int m_flagBits; 66 JSRegExp* m_regExp;67 70 const char* m_constructionError; 68 71 unsigned m_numSubpatterns; 69 72 73 #if ENABLE(YARR_JIT) 74 Yarr::RegexCodeBlock m_regExpJITCode; 75 #elif ENABLE(YARR) 76 OwnPtr<Yarr::BytecodePattern> m_regExpBytecode; 77 #else 70 78 #if ENABLE(WREC) 71 79 WREC::CompiledRegExp m_wrecFunction; 72 80 RefPtr<ExecutablePool> m_executablePool; 81 #endif 82 JSRegExp* m_regExp; 73 83 #endif 74 84 };
Note:
See TracChangeset
for help on using the changeset viewer.