Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1794)

Issue 1804693002: Remove --harmony-modules flag and let embedder decide when modules are used (Closed)

Created:
4 years, 9 months ago by adamk
Modified:
4 years, 9 months ago
Reviewers:
Dan Ehrenberg
CC:
Michael Hablich, v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

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}

Patch Set 1 #

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

Messages

Total messages: 8 (2 generated)
adamk
4 years, 9 months ago (2016-03-14 19:48:32 UTC) #1
Dan Ehrenberg
lgtm https://codereview.chromium.org/1804693002/diff/1/src/d8.cc File src/d8.cc (left): https://codereview.chromium.org/1804693002/diff/1/src/d8.cc#oldcode1986 src/d8.cc:1986: bool enable_harmony_modules = false; Presumably there's no reasonable ...
4 years, 9 months ago (2016-03-15 00:22:52 UTC) #2
adamk
https://codereview.chromium.org/1804693002/diff/1/src/d8.cc File src/d8.cc (left): https://codereview.chromium.org/1804693002/diff/1/src/d8.cc#oldcode1986 src/d8.cc:1986: bool enable_harmony_modules = false; On 2016/03/15 00:22:52, Dan Ehrenberg ...
4 years, 9 months ago (2016-03-15 00:40:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804693002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804693002/1
4 years, 9 months ago (2016-03-15 00:41:14 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-15 00:43:36 UTC) #6
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 00:45:07 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5a202cce6e2b2de7b6117c9a3db796b70bf440f2
Cr-Commit-Position: refs/heads/master@{#34764}

Powered by Google App Engine
This is Rietveld 408576698