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

Issue 2638393002: [builtins] Add String.prototype.indexOf fast path in TF (Closed)

Created:
3 years, 11 months ago by Camillo Bruni
Modified:
3 years, 10 months ago
Reviewers:
Benedikt Meurer
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[builtins] Add String.prototype.indexOf fast path in TF Review-Url: https://codereview.chromium.org/2638393002 Cr-Commit-Position: refs/heads/master@{#42695} Committed: https://chromium.googlesource.com/v8/v8/+/439a8edcf77947777c5c757b0dec0363d9446093

Patch Set 1 #

Patch Set 2 : update comments #

Total comments: 10

Patch Set 3 : reverting cleanups #

Patch Set 4 : merge with master #

Patch Set 5 : address comments and no longer pass the context to fast StringIndexOf #

Patch Set 6 : fix return statement #

Total comments: 3

Patch Set 7 : addressing comments #

Patch Set 8 : fixing function name #

Patch Set 9 : hardcode paramater massaging #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -67 lines) Patch
M src/builtins/builtins.h View 1 2 3 4 5 1 chunk +6 lines, -5 lines 0 comments Download
M src/builtins/builtins-string.cc View 1 2 3 4 5 4 chunks +95 lines, -62 lines 0 comments Download
M src/code-factory.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/code-factory.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/js-builtin-reducer.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/js-builtin-reducer.cc View 1 2 3 4 5 6 7 8 3 chunks +42 lines, -0 lines 0 comments Download
M src/interface-descriptors.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M test/mjsunit/string-indexof-1.js View 1 2 3 4 5 2 chunks +78 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (24 generated)
Camillo Bruni
PTAL minus merge conflicts due to list sorting...
3 years, 11 months ago (2017-01-18 14:00:25 UTC) #6
Benedikt Meurer
I'd prefer to add only the indexOf change, and do all the cleanups in separate ...
3 years, 11 months ago (2017-01-18 18:10:41 UTC) #7
Camillo Bruni
PTAL again https://codereview.chromium.org/2638393002/diff/20001/src/compiler/js-builtin-reducer.cc File src/compiler/js-builtin-reducer.cc (right): https://codereview.chromium.org/2638393002/diff/20001/src/compiler/js-builtin-reducer.cc#newcode1755 src/compiler/js-builtin-reducer.cc:1755: if (!(search_string = GetInputStringWitness(node, 2))) return NoChange(); ...
3 years, 11 months ago (2017-01-24 15:51:43 UTC) #16
Benedikt Meurer
https://codereview.chromium.org/2638393002/diff/100001/src/compiler/js-builtin-reducer.cc File src/compiler/js-builtin-reducer.cc (right): https://codereview.chromium.org/2638393002/diff/100001/src/compiler/js-builtin-reducer.cc#newcode1603 src/compiler/js-builtin-reducer.cc:1603: Node* GetInputStringWitness(Node* node, int input_index) { Please undo this ...
3 years, 11 months ago (2017-01-24 18:12:26 UTC) #17
Camillo Bruni
PTAL again. I somehow randomly tried to massage the arguments and figuring out ways to ...
3 years, 11 months ago (2017-01-25 23:11:40 UTC) #26
Benedikt Meurer
Thanks, LGTM
3 years, 11 months ago (2017-01-26 11:33:01 UTC) #27
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/2638393002/150001
3 years, 11 months ago (2017-01-26 12:45:02 UTC) #29
commit-bot: I haz the power
Committed patchset #9 (id:150001) as https://chromium.googlesource.com/v8/v8/+/439a8edcf77947777c5c757b0dec0363d9446093
3 years, 11 months ago (2017-01-26 12:46:50 UTC) #32
Michael Achenbach
3 years, 10 months ago (2017-01-27 09:09:00 UTC) #33
Message was sent while issue was closed.
Note, this flaky check failures goes back to this CL:
https://build.chromium.org/p/client.v8/builders/V8%20Linux64/builds/15597/ste...

Powered by Google App Engine
This is Rietveld 408576698