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

Issue 2348493003: [builtins] move String.prototype[@@iterator] to C++ builtin (Closed)

Created:
4 years, 3 months ago by caitp
Modified:
4 years, 3 months ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan, Franzi
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[builtins] move String.prototype[@@iterator] to C++ builtin BUG=v8:5388 R=bmeurer@chromium.org, adamk@chromium.org TBR=hpayer@chromium.org Committed: https://crrev.com/5784773feb92d06e76d4eb0fb93ed9496b9df30b Cr-Commit-Position: refs/heads/master@{#39598}

Patch Set 1 #

Total comments: 14

Patch Set 2 : V2 #

Total comments: 14

Patch Set 3 : V3 (fix CallRuntime.golden) #

Patch Set 4 : V4 (Fixup verifier and simplify index accessor) #

Patch Set 5 : V5 (try to make gcmole happy) #

Total comments: 20

Patch Set 6 : V6 (cleanup) #

Total comments: 2

Patch Set 7 : V7 (Adam's nit) #

Patch Set 8 : V8 (rebase + fix bytecode expectations) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -141 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M src/ast/ast-types.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 3 chunks +47 lines, -10 lines 0 comments Download
M src/builtins/builtins.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
A + src/builtins/builtins-iterator.cc View 1 1 chunk +6 lines, -7 lines 0 comments Download
M src/builtins/builtins-string.cc View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
M src/compiler/types.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/contexts.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 3 chunks +33 lines, -0 lines 0 comments Download
M src/heap/objects-visiting.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
D src/js/iterator-prototype.js View 1 1 chunk +0 lines, -21 lines 0 comments Download
D src/js/string-iterator.js View 1 chunk +0 lines, -98 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 6 chunks +30 lines, -0 lines 0 comments Download
M src/objects-body-descriptors-inl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 4 chunks +10 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallRuntime.golden View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 55 (35 generated)
Benedikt Meurer
Wow, very impressive and amazingly fast! :-) First round of comments. https://codereview.chromium.org/2348493003/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): ...
4 years, 3 months ago (2016-09-15 17:34:33 UTC) #6
caitp
https://codereview.chromium.org/2348493003/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/2348493003/diff/1/src/bootstrapper.cc#newcode1416 src/bootstrapper.cc:1416: iterator->shared()->set_language_mode(STRICT); On 2016/09/15 17:34:33, Benedikt Meurer wrote: > Why ...
4 years, 3 months ago (2016-09-15 19:02:40 UTC) #9
caitp
https://codereview.chromium.org/2348493003/diff/20001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/2348493003/diff/20001/src/bootstrapper.cc#newcode1434 src/bootstrapper.cc:1434: JSObject::ForceSetPrototype(string_iterator_prototype, iterator_prototype); On 2016/09/15 19:02:39, caitp wrote: > TODO: ...
4 years, 3 months ago (2016-09-15 19:14:57 UTC) #12
Benedikt Meurer
GCmole complains about the Handle return being immediately dereferenced. https://codereview.chromium.org/2348493003/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/2348493003/diff/1/src/bootstrapper.cc#newcode1416 src/bootstrapper.cc:1416: ...
4 years, 3 months ago (2016-09-16 03:16:37 UTC) #17
Benedikt Meurer
franzih: FYI
4 years, 3 months ago (2016-09-16 03:18:18 UTC) #18
caitp
Okay, PTAL --- I think this is ready for a proper look, whenever folks have ...
4 years, 3 months ago (2016-09-16 17:23:34 UTC) #23
Benedikt Meurer
Really nice. Next round of comments (getting close). https://codereview.chromium.org/2348493003/diff/80001/src/builtins/builtins-string.cc File src/builtins/builtins-string.cc (right): https://codereview.chromium.org/2348493003/diff/80001/src/builtins/builtins-string.cc#newcode635 src/builtins/builtins-string.cc:635: if ...
4 years, 3 months ago (2016-09-19 04:05:18 UTC) #24
caitp
https://codereview.chromium.org/2348493003/diff/80001/src/builtins/builtins-string.cc File src/builtins/builtins-string.cc (right): https://codereview.chromium.org/2348493003/diff/80001/src/builtins/builtins-string.cc#newcode635 src/builtins/builtins-string.cc:635: if (*string != isolate->heap()->empty_string()) { On 2016/09/19 04:05:18, Benedikt ...
4 years, 3 months ago (2016-09-19 16:03:05 UTC) #25
caitp
4 years, 3 months ago (2016-09-19 16:03:06 UTC) #26
adamk
Overall looks great to me (will defer to Benedikt's review); just one nit. https://codereview.chromium.org/2348493003/diff/90001/src/objects.h File ...
4 years, 3 months ago (2016-09-19 17:44:50 UTC) #31
Benedikt Meurer
Awesome, thanks. LGTM! https://codereview.chromium.org/2348493003/diff/80001/src/builtins/builtins-string.cc File src/builtins/builtins-string.cc (right): https://codereview.chromium.org/2348493003/diff/80001/src/builtins/builtins-string.cc#newcode648 src/builtins/builtins-string.cc:648: Handle<String> value = isolate->factory()->NewProperSubString( On 2016/09/19 ...
4 years, 3 months ago (2016-09-20 04:57:53 UTC) #32
caitp
Alright, thanks. If there are no other comments, will update with Adam's nit addressed and ...
4 years, 3 months ago (2016-09-20 13:28:15 UTC) #33
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/2348493003/110001
4 years, 3 months ago (2016-09-20 15:39:31 UTC) #40
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/24512)
4 years, 3 months ago (2016-09-20 15:50:40 UTC) #42
caitp
guess I'm blocked on a src/heap LGTM
4 years, 3 months ago (2016-09-20 16:40:16 UTC) #43
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/2348493003/110001
4 years, 3 months ago (2016-09-21 13:23:44 UTC) #46
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/24611)
4 years, 3 months ago (2016-09-21 13:27:14 UTC) #48
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/2348493003/130001
4 years, 3 months ago (2016-09-21 13:46:27 UTC) #51
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years, 3 months ago (2016-09-21 14:17:50 UTC) #53
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 14:18:10 UTC) #55
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/5784773feb92d06e76d4eb0fb93ed9496b9df30b
Cr-Commit-Position: refs/heads/master@{#39598}

Powered by Google App Engine
This is Rietveld 408576698