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

Issue 1871923003: Add parsing for ambient declarations (Closed)

Created:
4 years, 8 months ago by nickie
Modified:
4 years, 8 months ago
Reviewers:
rossberg
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@types-devel
Target Ref:
refs/pending/heads/experimental/nikolaos/types
Project:
v8
Visibility:
Public.

Description

Add parsing for ambient declarations Allowing on purpose: - binding patterns in ambient variable declarations, - anonymous functions in export default declare. This is based on https://codereview.chromium.org/1853763002 but the patch is actually taken from a version merged with upstream master. R=rossberg@chromium.org BUG= NOTRY=true NOPRESUBMIT=true

Patch Set 1 #

Total comments: 6

Patch Set 2 : Minor fixes to address code review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+887 lines, -102 lines) Patch
M src/ast/ast.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/ast/scopes.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/messages.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/parsing/parser.h View 1 4 chunks +7 lines, -7 lines 0 comments Download
M src/parsing/parser.cc View 1 25 chunks +103 lines, -44 lines 0 comments Download
M src/parsing/parser-base.h View 9 chunks +30 lines, -6 lines 0 comments Download
M src/parsing/preparser.h View 1 3 chunks +6 lines, -6 lines 0 comments Download
M src/parsing/preparser.cc View 1 17 chunks +60 lines, -31 lines 1 comment Download
M test/cctest/test-parsing.cc View 1 chunk +438 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/typesystem/ambient-declarations.js View 1 chunk +229 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/typesystem/variable-declarations.js View 1 chunk +3 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
nickie
4 years, 8 months ago (2016-04-08 15:30:41 UTC) #1
rossberg
It's a bit unfortunate that you have to pass the ambient flag everywhere, but I ...
4 years, 8 months ago (2016-04-20 15:16:35 UTC) #2
nickie
https://codereview.chromium.org/1871923003/diff/1/src/parsing/parser.h File src/parsing/parser.h (right): https://codereview.chromium.org/1871923003/diff/1/src/parsing/parser.h#newcode788 src/parsing/parser.h:788: bool top_level, bool* ok); On 2016/04/20 15:16:34, rossberg wrote: ...
4 years, 8 months ago (2016-04-21 13:57:10 UTC) #3
nickie
https://codereview.chromium.org/1871923003/diff/20001/src/parsing/preparser.cc File src/parsing/preparser.cc (right): https://codereview.chromium.org/1871923003/diff/20001/src/parsing/preparser.cc#newcode471 src/parsing/preparser.cc:471: Scope* block_scope = NewScope(scope_, BLOCK_SCOPE); The changes in this ...
4 years, 8 months ago (2016-04-21 13:59:10 UTC) #4
rossberg
lgtm
4 years, 8 months ago (2016-04-21 14:01:36 UTC) #5
nickie
4 years, 8 months ago (2016-04-21 14:54:36 UTC) #6
Patchset 2 landed MANUALLY in experimental/nikolaos/types as:
b7677f074accfafe787f73f4a85264966b39d635
https://chromium.googlesource.com/v8/v8/+/b7677f074accfafe787f73f4a85264966b3...

Powered by Google App Engine
This is Rietveld 408576698