Changeset 38465 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Nov 16, 2008, 6:33:58 PM (17 years ago)
- Location:
- trunk/JavaScriptCore/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/RegExp.cpp
r38463 r38465 32 32 #include <wtf/OwnArrayPtr.h> 33 33 34 namespace JSC { 35 34 36 #if ENABLE(WREC) 35 37 using namespace WREC; 36 38 #endif 37 38 namespace JSC {39 39 40 40 inline RegExp::RegExp(JSGlobalData* globalData, const UString& pattern) … … 46 46 { 47 47 #if ENABLE(WREC) 48 m_wrecFunction = WREC::compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError);48 m_wrecFunction = compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError); 49 49 if (m_wrecFunction) 50 50 return; … … 89 89 90 90 #if ENABLE(WREC) 91 m_wrecFunction = WREC::compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError, (m_flagBits & IgnoreCase), (m_flagBits & Multiline));91 m_wrecFunction = compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError, (m_flagBits & IgnoreCase), (m_flagBits & Multiline)); 92 92 if (m_wrecFunction) 93 93 return; … … 110 110 #if ENABLE(WREC) 111 111 if (m_wrecFunction) 112 WTF::fastFreeExecutable( m_wrecFunction);112 WTF::fastFreeExecutable(reinterpret_cast<void*>(m_wrecFunction)); 113 113 #endif 114 114 } … … 137 137 ovector->set(offsetVector); 138 138 139 int result = reinterpret_cast<WRECFunction>(m_wrecFunction)(s.data(), i, s.size(), offsetVector);139 int result = m_wrecFunction(s.data(), i, s.size(), offsetVector); 140 140 141 141 if (result < 0) { -
trunk/JavaScriptCore/runtime/RegExp.h
r38463 r38465 23 23 24 24 #include "UString.h" 25 #include "WREC.h" 25 26 #include <wtf/Forward.h> 26 27 #include <wtf/RefCounted.h> … … 67 68 68 69 #if ENABLE(WREC) 69 // Called as a WRECFunction 70 void* m_wrecFunction; 70 WREC::CompiledRegExp m_wrecFunction; 71 71 #endif 72 72 };
Note:
See TracChangeset
for help on using the changeset viewer.