Re-introduce ImportDeclaration to the parser
authoradamk <adamk@chromium.org>
Thu, 26 Feb 2015 18:40:50 +0000 (10:40 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 26 Feb 2015 18:41:04 +0000 (18:41 +0000)
commitfa293dd79f78074a0610739cb8f669849bf5704a
tree14c2ad2c0f78b7ee0e7def238987b9f445390d85
parentd471ceff41958d2e80ef5b44fe3a5514ddf36492
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

Review URL: https://codereview.chromium.org/948303004

Cr-Commit-Position: refs/heads/master@{#26895}
15 files changed:
src/ast-numbering.cc
src/ast.h
src/contexts.cc
src/globals.h
src/parser.cc
src/parser.h
src/prettyprinter.cc
src/runtime/runtime-scopes.cc
src/typing.cc
src/variables.cc
test/cctest/test-parsing.cc
test/message/import-as-redeclaration.js [new file with mode: 0644]
test/message/import-as-redeclaration.out [new file with mode: 0644]
test/message/import-redeclaration.js [new file with mode: 0644]
test/message/import-redeclaration.out [new file with mode: 0644]