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

Issue 2351113004: [modules] Expand API to allow linking and use it in d8 (Closed)

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

Description

[modules] Expand API to allow linking and use it in d8 This patch gives the ability for the embedder to ask for the module requests of a module, and to pass a ResolveCallback into Module::Instantiate(). In d8, I've implemented a simple module_map that's used along with this API to allow loading, compiling, instantiating, and evaluating a whole tree of modules. No path resolution is yet implemented, meaning that all import paths are relative to whatever directory d8 runs in. And no imports are linked to the exports of the requested module. BUG=v8:1569 Committed: https://crrev.com/cf127e81449f0bc4d09368a376623fe3743094a7 Cr-Commit-Position: refs/heads/master@{#39569}

Patch Set 1 #

Patch Set 2 : Lots of changes #

Patch Set 3 : Change return value of FetchModuleTree #

Total comments: 12

Patch Set 4 : Review comments #

Patch Set 5 : Add some cctests #

Patch Set 6 : Use StrictEquals, remove check for bad instantiation behavior #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -55 lines) Patch
M include/v8.h View 1 2 3 4 1 chunk +19 lines, -1 line 0 comments Download
M src/api.h View 2 chunks +3 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 chunks +79 lines, -20 lines 0 comments Download
M src/d8.h View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M src/d8.cc View 1 2 3 7 chunks +106 lines, -29 lines 0 comments Download
M src/factory.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.h View 1 2 chunks +11 lines, -1 line 0 comments Download
M src/objects-debug.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects-printer.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/cctest.status View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
A test/cctest/test-modules.cc View 1 2 3 4 5 1 chunk +91 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
adamk
4 years, 3 months ago (2016-09-20 20:36:40 UTC) #7
neis
lgtm with minor comments https://codereview.chromium.org/2351113004/diff/40001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2351113004/diff/40001/include/v8.h#newcode1083 include/v8.h:1083: */ s/imported/requested/, or say "imported ...
4 years, 3 months ago (2016-09-20 21:07:30 UTC) #8
adamk
https://codereview.chromium.org/2351113004/diff/40001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2351113004/diff/40001/include/v8.h#newcode1083 include/v8.h:1083: */ On 2016/09/20 21:07:30, neis wrote: > s/imported/requested/, or ...
4 years, 3 months ago (2016-09-20 21:13:58 UTC) #9
adamk
Added a few cctests, one of which covers one case that d8 doesn't hit.
4 years, 3 months ago (2016-09-20 22:35:05 UTC) #10
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/2351113004/100001
4 years, 3 months ago (2016-09-20 22:57:57 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-20 23:39:06 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 23:39:52 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/cf127e81449f0bc4d09368a376623fe3743094a7
Cr-Commit-Position: refs/heads/master@{#39569}

Powered by Google App Engine
This is Rietveld 408576698