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

Issue 2302783002: [modules] Basic support of exports (Closed)

Created:
4 years, 3 months ago by neis
Modified:
4 years, 3 months ago
Reviewers:
ulan, adamk, rmcilroy
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan, rmcilroy
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[modules] Basic support of exports This adds partial support of exports to the runtime system and to the interpreter. It introduces a new HeapObject JSModule that maps each of the module's export names to a Cell containing the exported value. Several aspects of this implementation are subject to change in follow-up CLs. BUG=v8:1569 Committed: https://crrev.com/241a0412eed919395a2e163b30b9b66071ce5c17 Committed: https://crrev.com/21cb1105471e0b94039ba4037c17f2cb57cb2a8f Cr-Original-Commit-Position: refs/heads/master@{#39341} Cr-Commit-Position: refs/heads/master@{#39352}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 8

Patch Set 7 : . #

Patch Set 8 : . #

Total comments: 10

Patch Set 9 : Rebase and comments #

Patch Set 10 : Rebase #

Patch Set 11 : Disable module tests for deopt fuzzer. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+543 lines, -73 lines) Patch
M src/api.cc View 1 2 3 4 5 6 7 8 2 chunks +43 lines, -5 lines 0 comments Download
M src/ast/ast.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M src/ast/modules.h View 1 2 3 4 5 6 3 chunks +7 lines, -3 lines 0 comments Download
M src/ast/modules.cc View 1 2 3 4 5 6 1 chunk +19 lines, -18 lines 0 comments Download
M src/ast/scopeinfo.cc View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -1 line 0 comments Download
M src/ast/scopes.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download
M src/ast/scopes.cc View 1 2 3 4 5 6 7 8 4 chunks +15 lines, -5 lines 0 comments Download
M src/ast/variables.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M src/contexts.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M src/contexts.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -1 line 0 comments Download
M src/debug/debug-scopes.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M src/factory.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -1 line 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 8 3 chunks +20 lines, -6 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 7 8 8 chunks +74 lines, -14 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 9 chunks +46 lines, -1 line 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 8 5 chunks +18 lines, -0 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -1 line 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M src/runtime/runtime-object.cc View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
M src/runtime/runtime-scopes.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallRuntime.golden View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -0 lines 0 comments Download
A test/mjsunit/modules-exports1.js View 1 2 3 4 5 6 1 chunk +55 lines, -0 lines 0 comments Download
A test/mjsunit/modules-exports2.js View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A test/mjsunit/modules-exports3.js View 1 2 3 4 5 6 1 chunk +48 lines, -0 lines 0 comments Download
A + test/mjsunit/modules-this.js View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M test/test262/test262.status View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -7 lines 0 comments Download

Messages

Total messages: 74 (53 generated)
adamk
This looks pretty straightforward, actually, with the main warts being things we already know are ...
4 years, 3 months ago (2016-09-01 23:13:34 UTC) #26
neis
https://codereview.chromium.org/2302783002/diff/100001/src/contexts.cc File src/contexts.cc (right): https://codereview.chromium.org/2302783002/diff/100001/src/contexts.cc#newcode127 src/contexts.cc:127: DCHECK_NOT_NULL(current); // XXX On 2016/09/01 23:13:34, adamk wrote: > ...
4 years, 3 months ago (2016-09-02 11:32:58 UTC) #31
neis
https://codereview.chromium.org/2302783002/diff/140001/src/ast/modules.h File src/ast/modules.h (right): https://codereview.chromium.org/2302783002/diff/140001/src/ast/modules.h#newcode98 src/ast/modules.h:98: If we have Serialize and Deserialize here for entries, ...
4 years, 3 months ago (2016-09-02 12:06:07 UTC) #36
neis
PTAL
4 years, 3 months ago (2016-09-02 12:06:15 UTC) #37
neis
+ulan for heap
4 years, 3 months ago (2016-09-02 12:07:46 UTC) #39
adamk
lgtm https://codereview.chromium.org/2302783002/diff/140001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2302783002/diff/140001/src/interpreter/bytecode-generator.cc#newcode748 src/interpreter/bytecode-generator.cc:748: VisitNewLocalFunctionContext(); On 2016/09/02 12:06:07, neis wrote: > I'm ...
4 years, 3 months ago (2016-09-02 17:51:51 UTC) #44
rmcilroy
Nice, Interpreter changes LGTM, didn't look at the rest. https://codereview.chromium.org/2302783002/diff/140001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2302783002/diff/140001/src/interpreter/bytecode-generator.cc#newcode748 src/interpreter/bytecode-generator.cc:748: ...
4 years, 3 months ago (2016-09-05 11:36:07 UTC) #45
neis
On 2016/09/05 11:36:07, rmcilroy wrote: > Nice, Interpreter changes LGTM, didn't look at the rest. ...
4 years, 3 months ago (2016-09-12 09:23:27 UTC) #48
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/2302783002/180001
4 years, 3 months ago (2016-09-12 09:36:20 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/23789)
4 years, 3 months ago (2016-09-12 09:39:50 UTC) #55
ulan
heap lgtm
4 years, 3 months ago (2016-09-12 10:46:46 UTC) #56
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/2302783002/180001
4 years, 3 months ago (2016-09-12 10:48:52 UTC) #58
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-09-12 10:51:13 UTC) #60
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/241a0412eed919395a2e163b30b9b66071ce5c17 Cr-Commit-Position: refs/heads/master@{#39341}
4 years, 3 months ago (2016-09-12 10:51:33 UTC) #62
neis
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/2328283002/ by neis@chromium.org. ...
4 years, 3 months ago (2016-09-12 11:33:18 UTC) #63
Michael Achenbach
On 2016/09/12 11:33:18, neis wrote: > A revert of this CL (patchset #10 id:180001) has ...
4 years, 3 months ago (2016-09-12 11:38:42 UTC) #64
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/2302783002/200001
4 years, 3 months ago (2016-09-12 12:20:26 UTC) #68
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 3 months ago (2016-09-12 12:54:54 UTC) #70
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/21cb1105471e0b94039ba4037c17f2cb57cb2a8f Cr-Commit-Position: refs/heads/master@{#39352}
4 years, 3 months ago (2016-09-12 12:55:46 UTC) #72
adamk
https://codereview.chromium.org/2302783002/diff/140001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2302783002/diff/140001/src/parsing/parser.cc#newcode706 src/parsing/parser.cc:706: On 2016/09/02 12:06:07, neis wrote: > Here we awkwardly ...
4 years, 3 months ago (2016-09-14 17:32:22 UTC) #73
rmcilroy
4 years, 3 months ago (2016-09-15 09:19:06 UTC) #74
Message was sent while issue was closed.
Interpreter changes LGTM, but could you add an example or two of module exports
to test-bytecode-generator / bytecode_expectations?

Powered by Google App Engine
This is Rietveld 408576698