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

Issue 1407633002: [es6] parse arrow ConciseBody with accept_IN flag (Closed)

Created:
5 years, 2 months ago by caitp (gmail)
Modified:
5 years, 2 months ago
Reviewers:
wingo, adamk, rossberg
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[es6] parse arrow ConciseBody with accept_IN flag Fixes corner case where arrow function ConciseBody expression does not accept 'in' in productions. BUG=v8:4472 LOG=N R=wingo@igalia.com, adamk@chromium.org, rossberg@chromium.org Committed: https://crrev.com/6b4d7f81a9faf2b0c4a4ce6e9c671ebbe5c62f79 Cr-Commit-Position: refs/heads/master@{#31271}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove extras from AST node + SharedFunctionInfo, hope for the best #

Total comments: 1

Patch Set 3 : Remove pesky stray var #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -7 lines) Patch
M src/parser.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/preparser.h View 1 2 4 chunks +7 lines, -6 lines 0 comments Download
M test/cctest/test-parsing.cc View 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
caitp (gmail)
PTAL I'm not a huge fan of this, because it adds an extra bit to ...
5 years, 2 months ago (2015-10-13 21:50:00 UTC) #1
adamk
It certainly seems odd to have to store this bit of information just to make ...
5 years, 2 months ago (2015-10-14 12:46:44 UTC) #2
caitp (gmail)
On 2015/10/14 12:46:44, adamk wrote: > It certainly seems odd to have to store this ...
5 years, 2 months ago (2015-10-14 13:20:18 UTC) #3
adamk
Isn't the extra data needed not for "lazy parsing" but rather "lazy compilation"? Presumably this ...
5 years, 2 months ago (2015-10-14 13:31:16 UTC) #4
adamk
https://codereview.chromium.org/1407633002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1407633002/diff/1/src/parser.cc#newcode1221 src/parser.cc:1221: shared_info->accept_IN(), formals, formals_classifier, &ok); So I patched this in ...
5 years, 2 months ago (2015-10-14 13:37:19 UTC) #5
adamk
On 2015/10/14 13:37:19, adamk wrote: > https://codereview.chromium.org/1407633002/diff/1/src/parser.cc > File src/parser.cc (right): > > https://codereview.chromium.org/1407633002/diff/1/src/parser.cc#newcode1221 > ...
5 years, 2 months ago (2015-10-14 13:38:07 UTC) #6
caitp (gmail)
On 2015/10/14 13:37:19, adamk wrote: > https://codereview.chromium.org/1407633002/diff/1/src/parser.cc > File src/parser.cc (right): > > https://codereview.chromium.org/1407633002/diff/1/src/parser.cc#newcode1221 > ...
5 years, 2 months ago (2015-10-14 13:40:56 UTC) #7
caitp (gmail)
On 2015/10/14 13:40:56, caitp wrote: > On 2015/10/14 13:37:19, adamk wrote: > > https://codereview.chromium.org/1407633002/diff/1/src/parser.cc > ...
5 years, 2 months ago (2015-10-14 14:05:12 UTC) #8
adamk
lgtm % stray variable that needs deleting. https://codereview.chromium.org/1407633002/diff/20001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1407633002/diff/20001/src/preparser.h#newcode3902 src/preparser.h:3902: bool concise ...
5 years, 2 months ago (2015-10-14 15:14:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407633002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407633002/40001
5 years, 2 months ago (2015-10-14 15:20:03 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-14 17:39:40 UTC) #13
commit-bot: I haz the power
5 years, 2 months ago (2015-10-14 17:39:59 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6b4d7f81a9faf2b0c4a4ce6e9c671ebbe5c62f79
Cr-Commit-Position: refs/heads/master@{#31271}

Powered by Google App Engine
This is Rietveld 408576698