Changeset 38465 in webkit for trunk/JavaScriptCore/runtime/RegExp.cpp
- Timestamp:
- Nov 16, 2008, 6:33:58 PM (17 years ago)
- File:
-
- 1 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) {
Note:
See TracChangeset
for help on using the changeset viewer.