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

Issue 2279363002: Remove duplicated code from comma-separated Expression parsing (Closed)

Created:
4 years, 3 months ago by adamk
Modified:
4 years, 3 months ago
Reviewers:
nickie, Dan Ehrenberg
CC:
caitp, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Remove duplicated code from comma-separated Expression parsing This removes two bits of duplication: - Parsing of each AssignmentExpression, which previously was called first outside the loop and then inside the loop. - Parsing of arrow rest parameters, which previously was handled separately for the one-arg and N-arg cases. The only change in behavior is in a few error messages. Committed: https://crrev.com/9c00c889025f1a69c4f2f9fce793aff377b35b78 Cr-Commit-Position: refs/heads/master@{#39030}

Patch Set 1 #

Patch Set 2 : Remove unused message #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -109 lines) Patch
M src/messages.h View 1 1 chunk +0 lines, -2 lines 3 comments Download
M src/parsing/parser.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/parsing/parser-base.h View 2 chunks +43 lines, -85 lines 3 comments Download
M src/parsing/preparser.h View 6 chunks +13 lines, -4 lines 0 comments Download
M test/message/arrow-invalid-rest.out View 1 chunk +3 lines, -3 lines 0 comments Download
M test/message/arrow-invalid-rest-2.out View 1 chunk +3 lines, -3 lines 0 comments Download
M test/mjsunit/es8/syntactic-tail-call-parsing.js View 2 chunks +10 lines, -6 lines 2 comments Download
M test/mjsunit/es8/syntactic-tail-call-parsing-sloppy.js View 2 chunks +10 lines, -6 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
adamk
https://codereview.chromium.org/2279363002/diff/20001/src/messages.h File src/messages.h (left): https://codereview.chromium.org/2279363002/diff/20001/src/messages.h#oldcode458 src/messages.h:458: "Rest parameter must be an identifier or destructuring pattern") ...
4 years, 3 months ago (2016-08-26 20:13:04 UTC) #7
Dan Ehrenberg
https://codereview.chromium.org/2279363002/diff/20001/src/messages.h File src/messages.h (left): https://codereview.chromium.org/2279363002/diff/20001/src/messages.h#oldcode458 src/messages.h:458: "Rest parameter must be an identifier or destructuring pattern") ...
4 years, 3 months ago (2016-08-26 22:48:53 UTC) #10
nickie
I'm just adding a few comments regarding the error messages. Not done reviewing yet. https://codereview.chromium.org/2279363002/diff/20001/src/messages.h ...
4 years, 3 months ago (2016-08-29 08:42:59 UTC) #11
nickie
Modulo my comments, LGTM. If we want better error messages for spread parameters, I suggest ...
4 years, 3 months ago (2016-08-29 17:21:27 UTC) #12
adamk
I've filed https://bugs.chromium.org/p/v8/issues/detail?id=5325 to track the general badness of these errors. Dan, would you be ...
4 years, 3 months ago (2016-08-30 23:38:58 UTC) #13
Dan Ehrenberg
lgtm
4 years, 3 months ago (2016-08-31 00:06:31 UTC) #14
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/2279363002/20001
4 years, 3 months ago (2016-08-31 00:08:06 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel_ng/builds/7913) v8_mac_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 3 months ago (2016-08-31 00:46:37 UTC) #18
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/2279363002/20001
4 years, 3 months ago (2016-08-31 01:07:37 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-31 01:24:12 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 01:24:31 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9c00c889025f1a69c4f2f9fce793aff377b35b78
Cr-Commit-Position: refs/heads/master@{#39030}

Powered by Google App Engine
This is Rietveld 408576698