Changeset 50143 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 27, 2009, 6:51:42 AM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r50120 r50143 1 2009-10-27 Peter Varga <[email protected]> 2 3 Rubber-stamped by Tor Arne Vestbø. 4 5 Fix typo in RegexInterpreter.cpp and RegexJIT.cpp alterantive to 6 alternative. 7 8 * yarr/RegexInterpreter.cpp: 9 (JSC::Yarr::ByteCompiler::alternativeBodyDisjunction): 10 (JSC::Yarr::ByteCompiler::alternativeDisjunction): 11 (JSC::Yarr::ByteCompiler::emitDisjunction): 12 * yarr/RegexJIT.cpp: 13 (JSC::Yarr::RegexGenerator::generateDisjunction): 14 1 15 2009-10-26 Laszlo Gombos <[email protected]> 2 16 -
trunk/JavaScriptCore/yarr/RegexInterpreter.cpp
r47338 r50143 1491 1491 } 1492 1492 1493 void alter antiveBodyDisjunction()1493 void alternativeBodyDisjunction() 1494 1494 { 1495 1495 int newAlternativeIndex = m_bodyDisjunction->terms.size(); … … 1500 1500 } 1501 1501 1502 void alter antiveDisjunction()1502 void alternativeDisjunction() 1503 1503 { 1504 1504 int newAlternativeIndex = m_bodyDisjunction->terms.size(); … … 1516 1516 if (alt) { 1517 1517 if (disjunction == m_pattern.m_body) 1518 alter antiveBodyDisjunction();1518 alternativeBodyDisjunction(); 1519 1519 else 1520 alter antiveDisjunction();1520 alternativeDisjunction(); 1521 1521 } 1522 1522 -
trunk/JavaScriptCore/yarr/RegexJIT.cpp
r50109 r50143 1265 1265 // 1266 1266 // FIXME: a nice improvement here may be to stop trying to match sooner, based on the least 1267 // of the minimum-alter antive-lengths. E.g. if I have two alternatives of length 200 and 150,1267 // of the minimum-alternative-lengths. E.g. if I have two alternatives of length 200 and 150, 1268 1268 // and a string of length 100, we'll end up looping index from 0 to 100, checking whether there 1269 1269 // is sufficient input to run either alternative (constantly failing). If there had been only
Note:
See TracChangeset
for help on using the changeset viewer.