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

Issue 2362083002: [modules] Do basic linking. (Closed)

Created:
4 years, 2 months ago by neis
Modified:
4 years, 2 months ago
Reviewers:
adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[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}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments and add more tests. #

Patch Set 3 : Rename files because the presubmit tool is so fragile. #

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:

Messages

Total messages: 16 (9 generated)
adamk
Mostly looks good. Please add more CL description (especially the tracking bug). https://codereview.chromium.org/2362083002/diff/1/src/messages.h File src/messages.h ...
4 years, 2 months ago (2016-09-23 00:39:10 UTC) #2
adamk
https://codereview.chromium.org/2362083002/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2362083002/diff/1/src/objects.cc#newcode19616 src/objects.cc:19616: Object* object = exports->Lookup(name); Please put this in a ...
4 years, 2 months ago (2016-09-23 00:51:40 UTC) #3
neis
Addressed comments, added some more tests, and made a few cleanups. https://codereview.chromium.org/2362083002/diff/1/src/messages.h File src/messages.h (right): ...
4 years, 2 months ago (2016-09-23 17:40:33 UTC) #4
adamk
lgtm
4 years, 2 months ago (2016-09-23 18:22:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2362083002/40001
4 years, 2 months ago (2016-09-23 18:59:23 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-23 19:02:38 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-09-23 19:03:13 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d7858e35f61596a12be8468bd099bfe191a0da99
Cr-Commit-Position: refs/heads/master@{#39689}

Powered by Google App Engine
This is Rietveld 408576698