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

Issue 2399423003: [builtins] Move StringIncludes to a builtin. (Closed)

Created:
4 years, 2 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 StringIncludes to a builtin. Also add a test for when the first argument is null or undefined, as there are no tests that cover this currently. BUG=v8:5364 Committed: https://crrev.com/8b48aa1cda024150ecbc8509ebdc40e399eddb0e Cr-Commit-Position: refs/heads/master@{#40127}

Patch Set 1 #

Patch Set 2 : Move to cpp builtin #

Patch Set 3 : clean up dead code #

Patch Set 4 : Change incorrect variable name #

Patch Set 5 : Only check properties on JSReceivers #

Patch Set 6 : Rename incorrectly named var #

Total comments: 1

Patch Set 7 : Add another test. Re-use IsRegExp logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -51 lines) Patch
M src/bootstrapper.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/builtins/builtins.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/builtins/builtins-regexp.cc View 1 2 3 4 5 6 2 chunks +1 line, -22 lines 0 comments Download
M src/builtins/builtins-string.cc View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
M src/js/string.js View 1 2 chunks +0 lines, -29 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
M test/mjsunit/es6/string-includes.js View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
petermarshall
PTAL
4 years, 2 months ago (2016-10-07 22:00:23 UTC) #6
Benedikt Meurer
lgtm
4 years, 2 months ago (2016-10-09 18:10:09 UTC) #7
Franzi
On 2016/10/09 at 18:10:09, bmeurer wrote: > lgtm lgtm
4 years, 2 months ago (2016-10-10 07:27:06 UTC) #8
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/2399423003/60001
4 years, 2 months ago (2016-10-10 07:53:20 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-10 08:31:28 UTC) #12
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/b374d719e79a5b32168c25c0cda30056f5e6e36c Cr-Commit-Position: refs/heads/master@{#40110}
4 years, 2 months ago (2016-10-10 08:31:51 UTC) #14
petermarshall
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2407793002/ by petermarshall@chromium.org. ...
4 years, 2 months ago (2016-10-10 11:22:57 UTC) #15
petermarshall
PTAL, fixed bug where GetProperty was called on null or undefined and added tests.
4 years, 2 months ago (2016-10-10 12:33:21 UTC) #21
Franzi
On 2016/10/10 at 12:33:21, petermarshall wrote: > PTAL, fixed bug where GetProperty was called on ...
4 years, 2 months ago (2016-10-10 12:58:00 UTC) #22
Franzi
https://codereview.chromium.org/2399423003/diff/100001/test/mjsunit/es6/string-includes.js File test/mjsunit/es6/string-includes.js (right): https://codereview.chromium.org/2399423003/diff/100001/test/mjsunit/es6/string-includes.js#newcode33 test/mjsunit/es6/string-includes.js:33: Can we add assertFalse(s.includes()); just to prevent mistakes in ...
4 years, 2 months ago (2016-10-10 12:58:59 UTC) #23
petermarshall
PTAL one last time, I added the extra test case s.includes() (no params) and I ...
4 years, 2 months ago (2016-10-10 14:34:36 UTC) #25
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/2399423003/120001
4 years, 2 months ago (2016-10-10 14:34:45 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-10 15:01:25 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-10-10 15:01:37 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8b48aa1cda024150ecbc8509ebdc40e399eddb0e
Cr-Commit-Position: refs/heads/master@{#40127}

Powered by Google App Engine
This is Rietveld 408576698