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

Issue 881623002: Begin modernization of --harmony-modules (Closed)

Created:
5 years, 11 months ago by adamk
Modified:
5 years, 11 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Begin modernization of --harmony-modules The approach taken in this CL is to incrementally move toward the currently-specced version of modules in ES6. The biggest change in this patch is separating the parsing of modules from the parsing of scripts, getting rid of the 'module' keyword and thus disallowing modules-in-scripts as well as modules-in-modules. The syntax supported by import/export declarations has not yet been significantly changed, with the major exception being that import declarations require a string as the 'from' part. Most of the existing tests have been disabled, with a first new test added in cctest/test-parsing. BUG=v8:1569 LOG=n Committed: https://crrev.com/aeb3a7174050e67267a4e2c123469f040400008e Cr-Commit-Position: refs/heads/master@{#26299}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Dealt with rossberg comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -456 lines) Patch
M src/ast-value-factory.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler.h View 3 chunks +8 lines, -1 line 0 comments Download
M src/parser.h View 1 2 chunks +6 lines, -14 lines 0 comments Download
M src/parser.cc View 1 18 chunks +77 lines, -279 lines 0 comments Download
M src/scopes.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M test/cctest/cctest.status View 1 chunk +3 lines, -0 lines 0 comments Download
M test/cctest/test-decls.cc View 6 chunks +0 lines, -6 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 chunk +54 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/module-parsing.js View 1 chunk +6 lines, -151 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
adamk
This is ready for at least a review of the approach taken. Will send a ...
5 years, 11 months ago (2015-01-26 23:03:17 UTC) #2
arv (Not doing code reviews)
https://codereview.chromium.org/881623002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/881623002/diff/1/src/parser.cc#newcode1340 src/parser.cc:1340: Module* module = ParseModuleUrl(CHECK_OK); This is fine for now ...
5 years, 11 months ago (2015-01-27 01:17:17 UTC) #4
adamk
https://codereview.chromium.org/881623002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/881623002/diff/1/src/parser.cc#newcode1340 src/parser.cc:1340: Module* module = ParseModuleUrl(CHECK_OK); On 2015/01/27 01:17:17, arv wrote: ...
5 years, 11 months ago (2015-01-27 01:58:37 UTC) #5
rossberg
LGTM, only nits https://codereview.chromium.org/881623002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/881623002/diff/1/src/parser.cc#newcode1273 src/parser.cc:1273: Module* Parser::ParseModuleVariable(bool* ok) { Is this ...
5 years, 11 months ago (2015-01-27 20:00:56 UTC) #6
adamk
https://codereview.chromium.org/881623002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/881623002/diff/1/src/parser.cc#newcode1273 src/parser.cc:1273: Module* Parser::ParseModuleVariable(bool* ok) { On 2015/01/27 20:00:56, rossberg wrote: ...
5 years, 11 months ago (2015-01-27 20:11:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/881623002/20001
5 years, 11 months ago (2015-01-27 21:05:10 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 11 months ago (2015-01-27 21:06:44 UTC) #10
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 21:06:58 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/aeb3a7174050e67267a4e2c123469f040400008e
Cr-Commit-Position: refs/heads/master@{#26299}

Powered by Google App Engine
This is Rietveld 408576698