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

Issue 2350963004: [builtins] Move StringIndexOf to a C++ builtin. (Closed)

Created:
4 years, 3 months ago by petermarshall
Modified:
4 years, 2 months ago
Reviewers:
Benedikt Meurer, Franzi
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[builtins] Move StringIndexOf to a C++ builtin. BUG=v8:5364 Committed: https://crrev.com/58529ed3a05d086ed25047ddf170c69d1491f55e Cr-Commit-Position: refs/heads/master@{#40093}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address Franzi's comments #

Total comments: 1

Patch Set 3 : Factor out arg checking to a differnet function #

Patch Set 4 : Change IndexOf usage to use unchecked version #

Total comments: 4

Patch Set 5 : Try to factor out some logic, address Franzi's comments #

Patch Set 6 : Add anon namespace #

Patch Set 7 : Sync to head #

Patch Set 8 : Fix formatting errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -60 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/builtins/builtins.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/builtins/builtins-string.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M src/js/i18n.js View 1 2 3 4 5 6 4 chunks +2 lines, -4 lines 0 comments Download
M src/js/string.js View 1 2 3 4 5 6 3 chunks +0 lines, -17 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -3 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 1 chunk +59 lines, -25 lines 0 comments Download
M src/runtime/runtime-strings.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -11 lines 0 comments Download

Messages

Total messages: 44 (29 generated)
petermarshall
I created a new CL for this, you can just ignore the old closed one ...
4 years, 3 months ago (2016-09-20 15:01:18 UTC) #6
Franzi
https://codereview.chromium.org/2350963004/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2350963004/diff/1/src/objects.cc#newcode11604 src/objects.cc:11604: "String.prototype.lastIndexOf"))); Should this be String.prototpye.indexOf? https://codereview.chromium.org/2350963004/diff/1/src/objects.cc#newcode11629 src/objects.cc:11629: int first_index ...
4 years, 3 months ago (2016-09-20 17:03:28 UTC) #7
petermarshall
Have addressed Franzi's comments, PTAL https://codereview.chromium.org/2350963004/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2350963004/diff/1/src/objects.cc#newcode11604 src/objects.cc:11604: "String.prototype.lastIndexOf"))); On 2016/09/20 at ...
4 years, 3 months ago (2016-09-22 13:54:25 UTC) #12
Benedikt Meurer
https://codereview.chromium.org/2350963004/diff/20001/src/objects.cc File src/objects.cc (left): https://codereview.chromium.org/2350963004/diff/20001/src/objects.cc#oldcode11599 src/objects.cc:11599: int start_index) { I'd like to keep this version ...
4 years, 3 months ago (2016-09-23 03:51:33 UTC) #14
petermarshall
On 2016/09/23 at 03:51:33, bmeurer wrote: > https://codereview.chromium.org/2350963004/diff/20001/src/objects.cc > File src/objects.cc (left): > > https://codereview.chromium.org/2350963004/diff/20001/src/objects.cc#oldcode11599 ...
4 years, 3 months ago (2016-09-23 09:34:02 UTC) #15
petermarshall
PTAL
4 years, 3 months ago (2016-09-23 09:34:16 UTC) #16
Benedikt Meurer
lgtm
4 years, 3 months ago (2016-09-23 11:03:11 UTC) #21
Franzi
Hi Peter, I have a few minor nits. Cheers, Franzi https://codereview.chromium.org/2350963004/diff/60001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2350963004/diff/60001/src/objects.cc#newcode11617 ...
4 years, 3 months ago (2016-09-23 11:37:00 UTC) #22
petermarshall
On 2016/09/23 at 11:37:00, franzih wrote: > Hi Peter, > > I have a few ...
4 years, 2 months ago (2016-10-06 22:42:51 UTC) #35
petermarshall
Franzi PTAL :) https://codereview.chromium.org/2350963004/diff/60001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2350963004/diff/60001/src/objects.cc#newcode11617 src/objects.cc:11617: double position_number = std::max(position->Number(), 0.0); On ...
4 years, 2 months ago (2016-10-06 22:43:11 UTC) #36
Benedikt Meurer
LGTM.
4 years, 2 months ago (2016-10-07 03:21:59 UTC) #37
Franzi
On 2016/10/07 at 03:21:59, bmeurer wrote: > LGTM. Thanks! LGTM.
4 years, 2 months ago (2016-10-07 07:29:16 UTC) #38
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/2350963004/140001
4 years, 2 months ago (2016-10-07 17:02:00 UTC) #40
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-10-07 17:04:01 UTC) #42
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 17:04:24 UTC) #44
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/58529ed3a05d086ed25047ddf170c69d1491f55e
Cr-Commit-Position: refs/heads/master@{#40093}

Powered by Google App Engine
This is Rietveld 408576698