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

Issue 948303004: Re-introduce ImportDeclaration to the parser (Closed)

Created:
5 years, 10 months ago by adamk
Modified:
5 years, 10 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

Re-introduce ImportDeclaration to the parser This also adds a new VariableMode, IMPORT, which will be used to do appropriate binding for Import-declared Variables. Only named imports are handled for now. "import *" and default import syntaxes have had their TODOs adjusted to match the new code structure. BUG=v8:1569 LOG=n Committed: https://crrev.com/fa293dd79f78074a0610739cb8f669849bf5704a Cr-Commit-Position: refs/heads/master@{#26895}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Remove loop from test #

Patch Set 3 : Merged to trunk so I can run tryjobs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -61 lines) Patch
M src/ast.h View 2 chunks +20 lines, -15 lines 0 comments Download
M src/ast-numbering.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/contexts.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M src/globals.h View 2 chunks +6 lines, -4 lines 0 comments Download
M src/parser.h View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M src/parser.cc View 1 2 10 chunks +26 lines, -25 lines 0 comments Download
M src/prettyprinter.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M src/runtime/runtime-scopes.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/typing.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/variables.cc View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 chunks +12 lines, -6 lines 0 comments Download
A + test/message/import-as-redeclaration.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/import-as-redeclaration.out View 1 chunk +7 lines, -0 lines 0 comments Download
A + test/message/import-redeclaration.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/import-redeclaration.out View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
adamk
This was easier than I expected, so it follows hot-on-the-heels of the referenced cleanup patch. ...
5 years, 10 months ago (2015-02-25 01:19:55 UTC) #2
rossberg
https://codereview.chromium.org/948303004/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/948303004/diff/1/src/ast.h#newcode613 src/ast.h:613: const AstRawString* module_specifier() const { return module_specifier_; } Hm, ...
5 years, 10 months ago (2015-02-25 13:55:49 UTC) #3
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/948303004/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/948303004/diff/1/src/ast.h#newcode613 src/ast.h:613: const AstRawString* module_specifier() const { return module_specifier_; } ...
5 years, 10 months ago (2015-02-25 16:07:25 UTC) #4
adamk
https://codereview.chromium.org/948303004/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/948303004/diff/1/src/ast.h#newcode613 src/ast.h:613: const AstRawString* module_specifier() const { return module_specifier_; } On ...
5 years, 10 months ago (2015-02-25 21:43:12 UTC) #5
adamk
https://codereview.chromium.org/948303004/diff/1/src/parser.h File src/parser.h (right): https://codereview.chromium.org/948303004/diff/1/src/parser.h#newcode716 src/parser.h:716: ZoneList<ImportDeclaration*>* ParseNamedImports(int pos, bool* ok); On 2015/02/25 21:43:12, adamk ...
5 years, 10 months ago (2015-02-25 21:50:47 UTC) #7
rossberg
LGTM https://codereview.chromium.org/948303004/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/948303004/diff/1/src/ast.h#newcode613 src/ast.h:613: const AstRawString* module_specifier() const { return module_specifier_; } ...
5 years, 10 months ago (2015-02-26 07:52:07 UTC) #8
adamk
On 2015/02/26 07:52:07, rossberg wrote: > LGTM > > https://codereview.chromium.org/948303004/diff/1/src/ast.h > File src/ast.h (right): > ...
5 years, 10 months ago (2015-02-26 16:55:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/948303004/60001
5 years, 10 months ago (2015-02-26 16:56:17 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 10 months ago (2015-02-26 18:40:55 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-02-26 18:41:11 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fa293dd79f78074a0610739cb8f669849bf5704a
Cr-Commit-Position: refs/heads/master@{#26895}

Powered by Google App Engine
This is Rietveld 408576698