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

Issue 1078093002: Factor formal argument parsing into ParserBase (Closed)

Created:
5 years, 8 months ago by wingo
Modified:
5 years, 8 months ago
CC:
v8-dev, adamk
Base URL:
https://chromium.googlesource.com/v8/v8@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Factor formal argument parsing into ParserBase This commit is a precursor to making lazy arrow function parsing use similar logic to function(){} argument parsing. R=arv@chromium.org BUG=4020 LOG=N Committed: https://crrev.com/1dbc43272954e8cfdf7be9a57c953a74b2a4d9da Cr-Commit-Position: refs/heads/master@{#27773}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add message tests, re-add bad rest arg message, reword messages #

Patch Set 3 : Rebase on top of "undefined" error detection, remove bits of utils.h patch that crept in #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -123 lines) Patch
M src/messages.js View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/parser.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M src/parser.cc View 1 2 4 chunks +20 lines, -51 lines 0 comments Download
M src/preparser.h View 1 2 9 chunks +150 lines, -16 lines 0 comments Download
M src/preparser.cc View 1 2 2 chunks +10 lines, -44 lines 0 comments Download
A + test/message/formal-parameters-bad-rest.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
A test/message/formal-parameters-bad-rest.out View 1 1 chunk +4 lines, -0 lines 0 comments Download
A + test/message/formal-parameters-strict-body.js View 1 1 chunk +1 line, -3 lines 0 comments Download
A test/message/formal-parameters-strict-body.out View 1 1 chunk +4 lines, -0 lines 0 comments Download
A + test/message/formal-parameters-trailing-comma.js View 1 1 chunk +1 line, -3 lines 0 comments Download
A test/message/formal-parameters-trailing-comma.out View 1 1 chunk +4 lines, -0 lines 0 comments Download
A + test/message/strict-formal-parameters.js View 1 1 chunk +2 lines, -3 lines 0 comments Download
A test/message/strict-formal-parameters.out View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
wingo
5 years, 8 months ago (2015-04-10 14:19:53 UTC) #1
arv (Not doing code reviews)
Very nice. Maybe you can add some tests to test/message/ to verify the error message ...
5 years, 8 months ago (2015-04-10 14:35:50 UTC) #2
caitp (gmail)
+1 on getting rid of the separate parameter list parsers I would prefer it if ...
5 years, 8 months ago (2015-04-10 15:03:39 UTC) #3
wingo
On 2015/04/10 15:03:39, caitp wrote: > +1 on getting rid of the separate parameter list ...
5 years, 8 months ago (2015-04-10 16:47:02 UTC) #4
arv (Not doing code reviews)
On 2015/04/10 16:47:02, wingo wrote: > On 2015/04/10 15:03:39, caitp wrote: > > +1 on ...
5 years, 8 months ago (2015-04-10 16:51:05 UTC) #5
caitp (gmail)
On 2015/04/10 16:47:02, wingo wrote: > On 2015/04/10 15:03:39, caitp wrote: > > +1 on ...
5 years, 8 months ago (2015-04-10 16:53:46 UTC) #6
wingo
On 2015/04/10 16:53:46, caitp wrote: > On 2015/04/10 16:47:02, wingo wrote: > > On 2015/04/10 ...
5 years, 8 months ago (2015-04-10 17:02:41 UTC) #7
wingo
On 2015/04/10 17:02:41, wingo wrote: > Expect(Token::RPAREN) > > Funny, I came to the same ...
5 years, 8 months ago (2015-04-10 17:03:53 UTC) #8
wingo
Updated patch fixes nits; ptal. I'm knocking off for the day so if it looks ...
5 years, 8 months ago (2015-04-10 17:15:00 UTC) #9
caitp (gmail)
On 2015/04/10 17:15:00, wingo wrote: > Updated patch fixes nits; ptal. I'm knocking off for ...
5 years, 8 months ago (2015-04-10 17:37:49 UTC) #10
arv (Not doing code reviews)
LGTM It looks like you got some changes from another patch in there. This might ...
5 years, 8 months ago (2015-04-10 17:51:00 UTC) #11
wingo
On 2015/04/10 17:51:00, arv wrote: > LGTM > > It looks like you got some ...
5 years, 8 months ago (2015-04-13 07:40:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1078093002/40001
5 years, 8 months ago (2015-04-13 07:41:08 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-13 08:07:11 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-13 08:07:23 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1dbc43272954e8cfdf7be9a57c953a74b2a4d9da
Cr-Commit-Position: refs/heads/master@{#27773}

Powered by Google App Engine
This is Rietveld 408576698