-
benjamin@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=115952 Reviewed by Geoffrey Garen. Source/JavaScriptCore: * runtime/StringPrototype.cpp: (JSC::stringProtoFuncLastIndexOf): Use the optimized string search when possible. On Joseph Pecoraro's tests, this gives a ~30% speed improvement. Source/WTF: Add an optimized version of StringImpl::startsWith() for JavaScriptCore. * wtf/text/StringImpl.cpp: (WTF::StringImpl::startsWith): * wtf/text/StringImpl.h: (StringImpl): (WTF::StringImpl::startsWith): * wtf/text/WTFString.h: (WTF::String::startsWith): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
9a1ba8f2