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

Issue 1130623004: [destructuring] Implement basic binding destructuring infrastructure (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 basic binding destructuring infrastructure This patch: - Refactors Parser::ParseVariableDeclarations - Introduces Parser::PatternMatcher class - Implements matching a single variable pattern - Implements rudimentary matching against object literal pattern as a proof of concept R=arv@chromium.org,rossberg@chromium.org BUG=v8:811 LOG=N Committed: https://crrev.com/5bbe7992db92710e6615c4d2aab6a6ef45a3620f Cr-Commit-Position: refs/heads/master@{#28345}

Patch Set 1 #

Total comments: 21

Patch Set 2 : CR feedback #

Total comments: 11

Patch Set 3 : Minor changes + rebase #

Patch Set 4 : CR feedback #

Total comments: 2

Patch Set 5 : Moar feedbcks #

Total comments: 11

Patch Set 6 : arv's comments addressed #

Total comments: 2

Patch Set 7 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+451 lines, -203 lines) Patch
M BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/parser.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/parser.cc View 1 2 3 4 5 6 7 chunks +53 lines, -203 lines 0 comments Download
A src/pattern-rewriter.h View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download
A src/pattern-rewriter.cc View 1 2 3 4 5 6 1 chunk +297 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/destructuring.js View 1 1 chunk +14 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (2 generated)
Dmitry Lomov (no reviews)
Please take initial look at your leisure. I will do a round of cleanups later, ...
5 years, 7 months ago (2015-05-08 18:04:55 UTC) #1
arv (Not doing code reviews)
Looks like a good approach. Some high level comments - Use macro for visitor - ...
5 years, 7 months ago (2015-05-08 19:09:49 UTC) #2
Dmitry Lomov (no reviews)
On 2015/05/08 19:09:49, arv wrote: > Looks like a good approach. > > Some high ...
5 years, 7 months ago (2015-05-08 19:17:27 UTC) #3
arv (Not doing code reviews)
On 2015/05/08 19:17:27, Dmitry Lomov (chromium) wrote: > On 2015/05/08 19:09:49, arv wrote: > > ...
5 years, 7 months ago (2015-05-08 19:35:51 UTC) #4
Dmitry Lomov (no reviews)
PTAL https://codereview.chromium.org/1130623004/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1130623004/diff/1/src/parser.cc#newcode2496 src/parser.cc:2496: // statements). On 2015/05/08 19:09:48, arv wrote: > ...
5 years, 7 months ago (2015-05-11 11:07:28 UTC) #5
Dmitry Lomov (no reviews)
PTAL, this is ready for proper review.
5 years, 7 months ago (2015-05-11 11:19:23 UTC) #6
rossberg
https://codereview.chromium.org/1130623004/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1130623004/diff/20001/src/parser.cc#newcode2373 src/parser.cc:2373: // Create new block with one expected declaration. Nit: ...
5 years, 7 months ago (2015-05-11 11:49:33 UTC) #7
Dmitry Lomov (no reviews)
PTAL - comments addressed https://codereview.chromium.org/1130623004/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1130623004/diff/20001/src/parser.cc#newcode2373 src/parser.cc:2373: // Create new block with ...
5 years, 7 months ago (2015-05-11 12:52:58 UTC) #8
rossberg
https://codereview.chromium.org/1130623004/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1130623004/diff/20001/src/parser.cc#newcode2376 src/parser.cc:2376: decl.nvars = &nvars; On 2015/05/11 12:52:57, Dmitry Lomov (chromium) ...
5 years, 7 months ago (2015-05-11 13:18:29 UTC) #9
Dmitry Lomov (no reviews)
Great suggestions, all addressed, PTAL https://codereview.chromium.org/1130623004/diff/60001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1130623004/diff/60001/src/parser.cc#newcode2418 src/parser.cc:2418: decl.initialization_scope = On 2015/05/11 ...
5 years, 7 months ago (2015-05-11 13:57:19 UTC) #10
arv (Not doing code reviews)
LGTM with nits/improvements that can be done in the future. https://codereview.chromium.org/1130623004/diff/80001/src/pattern-rewriter.cc File src/pattern-rewriter.cc (right): https://codereview.chromium.org/1130623004/diff/80001/src/pattern-rewriter.cc#newcode222 ...
5 years, 7 months ago (2015-05-11 14:25:17 UTC) #11
Dmitry Lomov (no reviews)
Comments addressed https://codereview.chromium.org/1130623004/diff/80001/src/pattern-rewriter.cc File src/pattern-rewriter.cc (right): https://codereview.chromium.org/1130623004/diff/80001/src/pattern-rewriter.cc#newcode222 src/pattern-rewriter.cc:222: // TODO(dslomov): computed property names. On 2015/05/11 ...
5 years, 7 months ago (2015-05-11 14:53:26 UTC) #12
arv (Not doing code reviews)
Still LGTM https://codereview.chromium.org/1130623004/diff/80001/src/pattern-rewriter.cc File src/pattern-rewriter.cc (right): https://codereview.chromium.org/1130623004/diff/80001/src/pattern-rewriter.cc#newcode222 src/pattern-rewriter.cc:222: // TODO(dslomov): computed property names. On 2015/05/11 ...
5 years, 7 months ago (2015-05-11 15:09:23 UTC) #13
rossberg
lgtm https://codereview.chromium.org/1130623004/diff/100001/src/pattern-rewriter.cc File src/pattern-rewriter.cc (right): https://codereview.chromium.org/1130623004/diff/100001/src/pattern-rewriter.cc#newcode84 src/pattern-rewriter.cc:84: Nit: remove empty line
5 years, 7 months ago (2015-05-11 15:36:24 UTC) #14
Dmitry Lomov (no reviews)
https://codereview.chromium.org/1130623004/diff/100001/src/pattern-rewriter.cc File src/pattern-rewriter.cc (right): https://codereview.chromium.org/1130623004/diff/100001/src/pattern-rewriter.cc#newcode84 src/pattern-rewriter.cc:84: On 2015/05/11 15:36:24, rossberg wrote: > Nit: remove empty ...
5 years, 7 months ago (2015-05-11 15:44:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130623004/120001
5 years, 7 months ago (2015-05-11 15:44:32 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-11 16:28:34 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-05-11 16:28:46 UTC) #20
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5bbe7992db92710e6615c4d2aab6a6ef45a3620f
Cr-Commit-Position: refs/heads/master@{#28345}

Powered by Google App Engine
This is Rietveld 408576698