Description[string] Widen StringIndexOf fast path
The StringIndexOf fast path used to be very narrow, only allowing
one-byte single-char search strings (and a one-byte subject string).
This changes the CSA fast path to call into our internal SearchString C++
function instead (after attempting to unpack both Strings), and can handle
strings of arbitrary length and encoding. The only remaining runtime call is
when either string needs to be flattened.
BUG=
Review-Url: https://codereview.chromium.org/2814373002
Cr-Commit-Position: refs/heads/master@{#44718}
Committed: https://chromium.googlesource.com/v8/v8/+/4cb011885b95d1f0edcfda5a80906bd9fb2376a3
Patch Set 1 #Patch Set 2 : Remove memchr TODO #Patch Set 3 : Revert "Specialize FindFirstCharacter" #Patch Set 4 : Fix search type #
Total comments: 12
Patch Set 5 : Address comments #
Messages
Total messages: 35 (26 generated)
|