|
Basic interface inference for modules.
All module expressions, and all variables that might refer to modules,
are assigned interfaces (module types) that are resolved using
unification. This is necessary to deal with the highly recursive
nature of ES6 modules, which does not allow any kind of bottom-up
strategy for resolving module names and paths.
Error messages are rudimental right now. Probably need to track
more information to make them nicer.
R=svenpanne@chromium.org
BUG= v8:1569
TEST=
Committed: https://code.google.com/p/v8/source/detail?r=10966
Total comments: 20
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+841 lines, -84 lines) |
Patch |
|
M |
src/SConscript
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/ast.h
|
View
|
1
|
10 chunks |
+33 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/ast.cc
|
View
|
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/flag-definitions.h
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/interface.h
|
View
|
1
2
|
1 chunk |
+156 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/interface.cc
|
View
|
1
2
|
1 chunk |
+226 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/messages.js
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/parser.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
src/parser.cc
|
View
|
|
15 chunks |
+135 lines, -19 lines |
0 comments
|
Download
|
|
M |
src/scopes.h
|
View
|
|
9 chunks |
+32 lines, -20 lines |
0 comments
|
Download
|
|
M |
src/scopes.cc
|
View
|
|
14 chunks |
+71 lines, -18 lines |
0 comments
|
Download
|
|
M |
src/variables.h
|
View
|
|
4 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
src/variables.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/module-parsing.js
|
View
|
1
|
8 chunks |
+18 lines, -8 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/harmony/module-resolution.js
|
View
|
|
1 chunk |
+139 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/gyp/v8.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|