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

Issue 1151503002: [destructuring] Implement spread binding patterns. (Closed)

Created:
5 years, 7 months ago by Dmitry Lomov (no reviews)
Modified:
5 years, 7 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[destructuring] Implement spread binding patterns. R=arv@chromium.org,rossberg@chromium.org BUG=v8:811 LOG=N Committed: https://crrev.com/aca4735becf173556e96c2a32cc97301c25e8093 Cr-Commit-Position: refs/heads/master@{#28522}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Comments addressed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -1 line) Patch
M src/ast-value-factory.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pattern-rewriter.cc View 1 2 chunks +40 lines, -0 lines 1 comment Download
M src/preparser.h View 1 2 chunks +13 lines, -0 lines 0 comments Download
M src/runtime.js View 1 2 chunks +9 lines, -0 lines 0 comments Download
M test/cctest/test-parsing.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/destructuring.js View 2 chunks +56 lines, -1 line 0 comments Download

Messages

Total messages: 24 (7 generated)
Dmitry Lomov (no reviews)
PTAL. I have shamelessly stolen bits and pieces of arv@'s patch here :) I only ...
5 years, 7 months ago (2015-05-20 11:55:25 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151503002/1
5 years, 7 months ago (2015-05-20 12:13:31 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-20 12:37:59 UTC) #5
rossberg
lgtm https://codereview.chromium.org/1151503002/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/1151503002/diff/1/src/ast.h#newcode2224 src/ast.h:2224: // Literal index is only used when Spread ...
5 years, 7 months ago (2015-05-20 12:57:35 UTC) #6
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/1151503002/diff/1/src/runtime.js File src/runtime.js (right): https://codereview.chromium.org/1151503002/diff/1/src/runtime.js#newcode732 src/runtime.js:732: undo this line removal... (it was probably from ...
5 years, 7 months ago (2015-05-20 13:34:15 UTC) #7
arv (Not doing code reviews)
https://codereview.chromium.org/1151503002/diff/1/src/runtime.js File src/runtime.js (right): https://codereview.chromium.org/1151503002/diff/1/src/runtime.js#newcode932 src/runtime.js:932: function SpreadIntoArray(target, iterable) { On 2015/05/20 13:34:14, arv wrote: ...
5 years, 7 months ago (2015-05-20 13:39:45 UTC) #8
rossberg
https://codereview.chromium.org/1151503002/diff/1/src/runtime.js File src/runtime.js (right): https://codereview.chromium.org/1151503002/diff/1/src/runtime.js#newcode932 src/runtime.js:932: function SpreadIntoArray(target, iterable) { On 2015/05/20 13:34:14, arv wrote: ...
5 years, 7 months ago (2015-05-20 13:49:39 UTC) #9
arv (Not doing code reviews)
https://codereview.chromium.org/1151503002/diff/1/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1151503002/diff/1/src/preparser.h#newcode2518 src/preparser.h:2518: int literal_index = function_state_->NextMaterializedLiteralIndex(); Is this going to be ...
5 years, 7 months ago (2015-05-20 13:52:25 UTC) #10
arv (Not doing code reviews)
https://codereview.chromium.org/1151503002/diff/1/src/pattern-rewriter.cc File src/pattern-rewriter.cc (right): https://codereview.chromium.org/1151503002/diff/1/src/pattern-rewriter.cc#newcode308 src/pattern-rewriter.cc:308: // array = []; Lets change this to not ...
5 years, 7 months ago (2015-05-20 13:58:05 UTC) #11
arv (Not doing code reviews)
On 2015/05/20 13:58:05, arv wrote: > https://codereview.chromium.org/1151503002/diff/1/src/pattern-rewriter.cc > File src/pattern-rewriter.cc (right): > > https://codereview.chromium.org/1151503002/diff/1/src/pattern-rewriter.cc#newcode308 > ...
5 years, 7 months ago (2015-05-20 13:59:17 UTC) #12
Dmitry Lomov (no reviews)
Quick responses to comments (I'll address others) https://codereview.chromium.org/1151503002/diff/1/src/pattern-rewriter.cc File src/pattern-rewriter.cc (right): https://codereview.chromium.org/1151503002/diff/1/src/pattern-rewriter.cc#newcode308 src/pattern-rewriter.cc:308: // array ...
5 years, 7 months ago (2015-05-20 14:07:19 UTC) #13
Dmitry Lomov (no reviews)
Addressed comments + do not allocate a literal index for Spread. PTAL https://codereview.chromium.org/1151503002/diff/1/src/ast.h File src/ast.h ...
5 years, 7 months ago (2015-05-20 14:22:03 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151503002/20001
5 years, 7 months ago (2015-05-20 14:37:55 UTC) #17
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/1151503002/diff/20001/src/pattern-rewriter.cc File src/pattern-rewriter.cc (right): https://codereview.chromium.org/1151503002/diff/20001/src/pattern-rewriter.cc#newcode313 src/pattern-rewriter.cc:313: // Reuse pattern's literal index - it is ...
5 years, 7 months ago (2015-05-20 14:40:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151503002/20001
5 years, 7 months ago (2015-05-20 14:41:20 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-20 15:06:05 UTC) #23
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 15:06:18 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/aca4735becf173556e96c2a32cc97301c25e8093
Cr-Commit-Position: refs/heads/master@{#28522}

Powered by Google App Engine
This is Rietveld 408576698