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

Issue 1168643005: [es6] parse destructuring assignment (Closed)

Created:
5 years, 6 months ago by caitp (gmail)
Modified:
4 years, 11 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

[es6] parse destructuring assignment BUG=v8:811 LOG=N R=dslomov@chromium.org, arv@chromium.org

Patch Set 1 #

Patch Set 2 : Fix arrow function parsing #

Total comments: 18

Patch Set 3 : Slight cleanup #

Patch Set 4 : Fix DestructuringAssignmentTarget validation #

Patch Set 5 : Parse <pattern> = <pattern> = <expression> properly #

Patch Set 6 : Nits ForIn/Of tests #

Total comments: 2

Patch Set 7 : Verify arrow formals with commas still produce valid PrimaryExpression #

Patch Set 8 : Add additional tests for ArrowFn primary expressions #

Patch Set 9 : Rewrite only left-most destructuring assignment expression #

Patch Set 10 : More test-cases, rewrite only when necessary #

Patch Set 11 : Rebased #

Patch Set 12 : Rebase on top of rest+arrow functions #

Total comments: 12

Patch Set 13 : Rebase + Bunch of tests + Nits fixed #

Total comments: 1

Patch Set 14 : Fix brokenness when flag flipped #

Patch Set 15 : Make the error message slightly better #

Patch Set 16 : WIP rebase (breaks some tests) #

Patch Set 17 : WIP #1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+459 lines, -36 lines) Patch
M src/ast.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +9 lines, -0 lines 0 comments Download
M src/expression-classifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -0 lines 0 comments Download
M src/messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M src/parser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +10 lines, -0 lines 0 comments Download
M src/parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +11 lines, -0 lines 0 comments Download
M src/preparser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 30 chunks +196 lines, -32 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +225 lines, -4 lines 0 comments Download

Messages

Total messages: 38 (10 generated)
caitp (gmail)
PTAL, I hacked around on this for a bit and now, make check is passing ...
5 years, 6 months ago (2015-06-04 18:35:49 UTC) #1
arv (Not doing code reviews)
Looks solid to me. A few nits and comments. https://codereview.chromium.org/1168643005/diff/20001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1168643005/diff/20001/src/preparser.h#newcode626 src/preparser.h:626: ...
5 years, 6 months ago (2015-06-04 20:08:04 UTC) #2
caitp (gmail)
https://codereview.chromium.org/1168643005/diff/20001/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/1168643005/diff/20001/test/cctest/test-parsing.cc#newcode6616 test/cctest/test-parsing.cc:6616: "{ x: new.target }", On 2015/06/04 20:08:04, arv wrote: ...
5 years, 6 months ago (2015-06-04 20:54:15 UTC) #3
arv (Not doing code reviews)
On 2015/06/04 20:54:15, caitp wrote: > https://codereview.chromium.org/1168643005/diff/20001/test/cctest/test-parsing.cc > File test/cctest/test-parsing.cc (right): > > https://codereview.chromium.org/1168643005/diff/20001/test/cctest/test-parsing.cc#newcode6616 > ...
5 years, 6 months ago (2015-06-04 20:55:09 UTC) #4
caitp (gmail)
I'm a bit worried about this affecting parse performance, due to the increased shuffling around ...
5 years, 6 months ago (2015-06-05 18:37:14 UTC) #6
arv (Not doing code reviews)
https://codereview.chromium.org/1168643005/diff/120001/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/1168643005/diff/120001/test/cctest/test-parsing.cc#newcode6556 test/cctest/test-parsing.cc:6556: {"var x, y, z; for (x in ", " ...
5 years, 6 months ago (2015-06-05 18:45:26 UTC) #7
caitp (gmail)
https://codereview.chromium.org/1168643005/diff/120001/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/1168643005/diff/120001/test/cctest/test-parsing.cc#newcode6556 test/cctest/test-parsing.cc:6556: {"var x, y, z; for (x in ", " ...
5 years, 6 months ago (2015-06-05 19:00:20 UTC) #8
caitp (gmail)
So, do we have any comments about this patch? I'd like to do something with ...
5 years, 6 months ago (2015-06-09 15:35:49 UTC) #12
Dmitry Lomov (no reviews)
On 2015/06/09 15:35:49, caitp wrote: > So, do we have any comments about this patch? ...
5 years, 6 months ago (2015-06-09 16:26:36 UTC) #13
Dmitry Lomov (no reviews)
On 2015/06/09 16:26:36, Dmitry S. Lomov wrote: > On 2015/06/09 15:35:49, caitp wrote: > > ...
5 years, 6 months ago (2015-06-10 08:08:33 UTC) #14
Dmitry Lomov (no reviews)
On 2015/06/10 08:08:33, Dmitry S. Lomov wrote: > On 2015/06/09 16:26:36, Dmitry S. Lomov wrote: ...
5 years, 6 months ago (2015-06-10 09:34:47 UTC) #15
caitp (gmail)
On 2015/06/10 09:34:47, Dmitry S. Lomov wrote: > On 2015/06/10 08:08:33, Dmitry S. Lomov wrote: ...
5 years, 6 months ago (2015-06-10 11:41:14 UTC) #16
noordhuis
Sorry Caitlin, nothing insightful here, just some nits. The general approach looks alright to me. ...
5 years, 6 months ago (2015-06-15 22:01:09 UTC) #18
Dmitry Lomov (no reviews)
Very sorry for a looong delay :( Looks good to me modulo other people's comments ...
5 years, 6 months ago (2015-06-19 08:57:30 UTC) #19
caitp (gmail)
https://codereview.chromium.org/1168643005/diff/300001/src/expression-classifier.h File src/expression-classifier.h (right): https://codereview.chromium.org/1168643005/diff/300001/src/expression-classifier.h#newcode91 src/expression-classifier.h:91: TARGET_RESTRICTED, On 2015/06/15 22:01:09, noordhuis wrote: > TARGET_RESTRICTED doesn't ...
5 years, 6 months ago (2015-06-19 14:23:21 UTC) #20
Dmitry Lomov (no reviews)
lgtm
5 years, 6 months ago (2015-06-19 15:37:28 UTC) #21
caitp (gmail)
arv: what do you think? I want to make sure I don't accidentally break "normal" ...
5 years, 6 months ago (2015-06-19 18:09:47 UTC) #22
arv (Not doing code reviews)
https://codereview.chromium.org/1168643005/diff/320001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1168643005/diff/320001/src/preparser.h#newcode2936 src/preparser.h:2936: rhs_flags, needs_destructuring, &rhs_classifier, CHECK_OK); Don't we need to pass ...
5 years, 6 months ago (2015-06-19 18:49:05 UTC) #23
caitp (gmail)
On 2015/06/19 18:49:05, arv wrote: > https://codereview.chromium.org/1168643005/diff/320001/src/preparser.h > File src/preparser.h (right): > > https://codereview.chromium.org/1168643005/diff/320001/src/preparser.h#newcode2936 > ...
5 years, 6 months ago (2015-06-19 18:52:38 UTC) #24
caitp (gmail)
On 2015/06/19 18:49:05, arv wrote: > https://codereview.chromium.org/1168643005/diff/320001/src/preparser.h > File src/preparser.h (right): > > https://codereview.chromium.org/1168643005/diff/320001/src/preparser.h#newcode2936 > ...
5 years, 6 months ago (2015-06-19 18:52:41 UTC) #25
arv (Not doing code reviews)
On 2015/06/19 at 18:52:41, caitpotter88 wrote: > I thought about this --- My thinking was ...
5 years, 6 months ago (2015-06-19 18:54:47 UTC) #26
arv (Not doing code reviews)
LGTM
5 years, 6 months ago (2015-06-19 18:54:55 UTC) #27
caitp (gmail)
On 2015/06/19 18:54:55, arv wrote: > LGTM It was actually failing pretty bad with the ...
5 years, 6 months ago (2015-06-19 21:08:53 UTC) #28
arv (Not doing code reviews)
LGTM
5 years, 6 months ago (2015-06-19 21:21:25 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1168643005/360001
5 years, 6 months ago (2015-06-19 21:24:37 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/5278)
5 years, 6 months ago (2015-06-19 21:57:30 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1168643005/360001
5 years, 6 months ago (2015-06-22 12:01:28 UTC) #36
commit-bot: I haz the power
5 years, 6 months ago (2015-06-22 12:19:24 UTC) #38
Try jobs failed on following builders:
  v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED,
http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/...)

Powered by Google App Engine
This is Rietveld 408576698