We can avoid creating new StringImpls in indexOf() if we use JSString::view() to search through the string. This requires adding a StringView::find(StringView, start) implementation.
Created attachment 253650 [details] Patch
Comment on attachment 253650 [details] Patch Clearing flags on attachment: 253650 Committed r184867: <http://trac.webkit.org/changeset/184867>
All reviewed patches have been landed. Closing bug.
Re-opening to attach the StringPrototype parts, too. (Duh.)
Created attachment 254547 [details] Patch
Comment on attachment 254547 [details] Patch Clearing flags on attachment: 254547 Committed r185367: <http://trac.webkit.org/changeset/185367>