Changeset 226128 in webkit for trunk/Source/JavaScriptCore/runtime/RegExp.cpp
- Timestamp:
- Dec 19, 2017, 11:16:21 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/RegExp.cpp
r226011 r226128 215 215 , m_patternString(patternString) 216 216 , m_flags(flags) 217 , m_constructionError(0)218 , m_numSubpatterns(0)219 #if ENABLE(REGEXP_TRACING)220 , m_rtMatchOnlyTotalSubjectStringLen(0.0)221 , m_rtMatchTotalSubjectStringLen(0.0)222 , m_rtMatchOnlyCallCount(0)223 , m_rtMatchOnlyFoundCount(0)224 , m_rtMatchCallCount(0)225 , m_rtMatchFoundCount(0)226 #endif227 217 { 228 218 } … … 231 221 { 232 222 Base::finishCreation(vm); 233 Yarr::YarrPattern pattern(m_patternString, m_flags, &m_constructionError, vm.stackLimit());223 Yarr::YarrPattern pattern(m_patternString, m_flags, m_constructionErrorCode, vm.stackLimit()); 234 224 if (!isValid()) 235 225 m_state = ParseError; … … 283 273 return; 284 274 285 Yarr::YarrPattern pattern(m_patternString, m_flags, &m_constructionError, vm->stackLimit());286 if ( m_constructionError) {275 Yarr::YarrPattern pattern(m_patternString, m_flags, m_constructionErrorCode, vm->stackLimit()); 276 if (hasError(m_constructionErrorCode)) { 287 277 RELEASE_ASSERT_NOT_REACHED(); 288 278 #if COMPILER_QUIRK(CONSIDERS_UNREACHABLE_CODE) … … 300 290 ConcurrentJSLocker locker(m_lock); 301 291 302 Yarr::YarrPattern pattern(m_patternString, m_flags, &m_constructionError, vm->stackLimit());303 if ( m_constructionError) {292 Yarr::YarrPattern pattern(m_patternString, m_flags, m_constructionErrorCode, vm->stackLimit()); 293 if (hasError(m_constructionErrorCode)) { 304 294 RELEASE_ASSERT_NOT_REACHED(); 305 295 #if COMPILER_QUIRK(CONSIDERS_UNREACHABLE_CODE) … … 356 346 ConcurrentJSLocker locker(m_lock); 357 347 358 Yarr::YarrPattern pattern(m_patternString, m_flags, &m_constructionError, vm->stackLimit());359 if ( m_constructionError) {348 Yarr::YarrPattern pattern(m_patternString, m_flags, m_constructionErrorCode, vm->stackLimit()); 349 if (hasError(m_constructionErrorCode)) { 360 350 RELEASE_ASSERT_NOT_REACHED(); 361 351 #if COMPILER_QUIRK(CONSIDERS_UNREACHABLE_CODE)
Note:
See TracChangeset
for help on using the changeset viewer.