|
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}
Total comments: 10
|
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
|
Total messages: 14 (4 generated)
|