Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(662)

Issue 2814373002: [string] Widen StringIndexOf fast path (Closed)

Created:
3 years, 8 months ago by jgruber
Modified:
3 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -109 lines) Patch
M src/assembler.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/assembler.cc View 1 2 chunks +17 lines, -0 lines 0 comments Download
M src/builtins/builtins-string-gen.cc View 1 2 3 4 5 chunks +182 lines, -109 lines 0 comments Download
M src/compiler/code-assembler.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M src/compiler/code-assembler.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M src/compiler/raw-machine-assembler.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/compiler/raw-machine-assembler.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M src/external-reference-table.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M src/string-search.h View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (26 generated)
jgruber
As discussed offline, dispatch logic could be moved to C++ (with the caveat that bailouts ...
3 years, 8 months ago (2017-04-18 13:00:03 UTC) #14
Camillo Bruni
LGTM with nits. And +1 on future CL to migrate the majority of this to ...
3 years, 8 months ago (2017-04-18 14:12:36 UTC) #17
jgruber
https://codereview.chromium.org/2814373002/diff/60001/src/builtins/builtins-string-gen.cc File src/builtins/builtins-string-gen.cc (right): https://codereview.chromium.org/2814373002/diff/60001/src/builtins/builtins-string-gen.cc#newcode108 src/builtins/builtins-string-gen.cc:108: ExternalConstant(ExternalReference::isolate_address(isolate())); On 2017/04/18 14:12:36, Camillo Bruni wrote: > I ...
3 years, 8 months ago (2017-04-19 06:59:05 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2814373002/80001
3 years, 8 months ago (2017-04-19 07:52:08 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/39368)
3 years, 8 months ago (2017-04-19 07:54:58 UTC) #27
jgruber
+mstarzinger for compiler/, PTAL
3 years, 8 months ago (2017-04-19 08:00:10 UTC) #29
Michael Starzinger
LGTM on "compiler".
3 years, 8 months ago (2017-04-19 10:42:53 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2814373002/80001
3 years, 8 months ago (2017-04-19 10:44:09 UTC) #32
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 10:47:10 UTC) #35
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/4cb011885b95d1f0edcfda5a80906bd9fb2...

Powered by Google App Engine
This is Rietveld 408576698