|
Remove --harmony-modules flag and let embedder decide when modules are used
Modules already have a separate entrypoint into the engine (at the moment,
this is v8::ScriptCompiler::CompileModule, though that will change to
something like ParseModule). This meant that requiring a commandline flag
simply added an extra complexity burden on embedders. By removing the v8
flag, this lets embedders use their own flagging mechanism (such as d8's
"--module", or Blink's RuntimeEnabledFeatures) to control whether
modules are to be used.
Also remove old modules tests that were being skipped (since they test
very old, pre-ES2015 modules syntax).
R=littledan@chromium.org
BUG= v8:1569, chromium:594639
LOG=y
Committed: https://crrev.com/5a202cce6e2b2de7b6117c9a3db796b70bf440f2
Cr-Commit-Position: refs/heads/master@{#34764}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1 line, -589 lines) |
Patch |
|
M |
src/api.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/bootstrapper.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/compiler.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/d8.cc
|
View
|
|
3 chunks |
+0 lines, -7 lines |
2 comments
|
Download
|
|
M |
src/flag-definitions.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/parsing/parser-base.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
test/cctest/test-parsing.cc
|
View
|
|
4 chunks |
+0 lines, -9 lines |
0 comments
|
Download
|
|
D |
test/mjsunit/harmony/module-linking.js
|
View
|
|
1 chunk |
+0 lines, -298 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/module-parsing-eval.js
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
D |
test/mjsunit/harmony/module-recompile.js
|
View
|
|
1 chunk |
+0 lines, -87 lines |
0 comments
|
Download
|
|
D |
test/mjsunit/harmony/module-resolution.js
|
View
|
|
1 chunk |
+0 lines, -152 lines |
0 comments
|
Download
|
|
D |
test/mjsunit/harmony/regress/regress-343928.js
|
View
|
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mjsunit.status
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
Total messages: 8 (2 generated)
|