Changeset 38461 in webkit for trunk/JavaScriptCore/runtime/RegExp.cpp
- Timestamp:
- Nov 16, 2008, 5:48:55 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/RegExp.cpp
r38438 r38461 22 22 #include "RegExp.h" 23 23 24 #include "CTI.h"25 24 #include "Lexer.h" 26 25 #include <pcre/pcre.h> … … 28 27 #include <stdlib.h> 29 28 #include <string.h> 30 #include <wrec/WREC.h>31 29 #include <wtf/Assertions.h> 32 30 #include <wtf/OwnArrayPtr.h> … … 46 44 { 47 45 #if ENABLE(WREC) 48 m_wrecFunction = WREC::compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError);46 m_wrecFunction = compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError); 49 47 if (m_wrecFunction) 50 48 return; … … 89 87 90 88 #if ENABLE(WREC) 91 m_wrecFunction = WREC::compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError, (m_flagBits & IgnoreCase), (m_flagBits & Multiline));89 m_wrecFunction = compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError, (m_flagBits & IgnoreCase), (m_flagBits & Multiline)); 92 90 if (m_wrecFunction) 93 91 return; … … 110 108 #if ENABLE(WREC) 111 109 if (m_wrecFunction) 112 WTF::fastFreeExecutable( m_wrecFunction);110 WTF::fastFreeExecutable(reinterpret_cast<void*>(m_wrecFunction)); 113 111 #endif 114 112 } … … 137 135 ovector->set(offsetVector); 138 136 139 int result = reinterpret_cast<WRECFunction>(m_wrecFunction)(s.data(), i, s.size(), offsetVector);137 int result = m_wrecFunction(s.data(), i, s.size(), offsetVector); 140 138 141 139 if (result < 0) {
Note:
See TracChangeset
for help on using the changeset viewer.