|
[modules] Do basic linking.
Resolve imports and indirect exports at instantiation time.
With this CL we have some basic functionality for modules working. Not yet
supported: star exports, namespace imports, cycle detection, proper variable
initialisation in mutually recursive modules.
BUG= v8:1569
Committed: https://crrev.com/d7858e35f61596a12be8468bd099bfe191a0da99
Cr-Commit-Position: refs/heads/master@{#39689}
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+311 lines, -57 lines) |
Patch |
|
M |
src/api.cc
|
View
|
1
|
2 chunks |
+54 lines, -30 lines |
0 comments
|
Download
|
|
M |
src/ast/modules.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/ast/modules.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/messages.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
1
|
3 chunks |
+69 lines, -9 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mjsunit.status
|
View
|
1
2
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/modules-default.js
|
View
|
1
2
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/modules-fail-1.js
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/modules-fail-2.js
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/modules-fail-3.js
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/modules-fail-4.js
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/modules-fail-5.js
|
View
|
1
2
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/modules-imports1.js
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/modules-imports2.js
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/modules-imports3.js
|
View
|
1
2
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/modules-imports4.js
|
View
|
1
2
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/modules-imports5.js
|
View
|
1
2
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/modules-skip-1.js
|
View
|
1
2
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
A + |
test/mjsunit/modules-skip-2.js
|
View
|
1
2
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
A + |
test/mjsunit/modules-skip-3.js
|
View
|
1
2
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 16 (9 generated)
|