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

Issue 2320723005: [wasm] Compilation/Instantiation pipeline works off module object (Closed)

Created:
4 years, 3 months ago by Mircea Trofin
Modified:
4 years, 3 months ago
Reviewers:
titzer, bradnelson, bradn
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Compilation/Instantiation pipeline works off module object Moved the compilation/instantiation pipeline to work off the module object (JSObject), making the compiled module data (the FixedArray) an implementation detail. This: - simplifies the code by removing duplicate decode->compile->instantiate sequences - sets up the stage for "dressing up" the runtime model with stronger typed APIs - helps relanding this CL: https://codereview.chromium.org/2305903002/. It turns out that GCs during the cloning/instantiation events cause trouble, and centering the source of truth on the module object helps address this issue. In the process, clarified cctest setup for wasm-capable isolates, and changed signatures for consistency (using ModuleOrigin througout). BUG= Committed: https://crrev.com/8e5ac62ddf17e85027b4eeb1056cddfbb70cace8 Cr-Commit-Position: refs/heads/master@{#39360}

Patch Set 1 #

Patch Set 2 : fuzzer #

Patch Set 3 : fuzzer(2) #

Patch Set 4 : fixes #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -105 lines) Patch
M src/asmjs/asm-js.cc View 1 chunk +1 line, -3 lines 0 comments Download
M src/wasm/wasm-js.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 6 chunks +51 lines, -51 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 2 3 5 chunks +14 lines, -20 lines 0 comments Download
M test/cctest/wasm/wasm-module-runner.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/wasm/wasm-module-runner.cc View 1 2 3 3 chunks +14 lines, -13 lines 0 comments Download
M test/fuzzer/wasm.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M test/fuzzer/wasm-asmjs.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M test/fuzzer/wasm-code.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 35 (25 generated)
Mircea Trofin
4 years, 3 months ago (2016-09-08 17:54:48 UTC) #15
Mircea Trofin
+Titzer, since Brad is out.
4 years, 3 months ago (2016-09-09 14:56:49 UTC) #17
bradn
lgtm, did you want to separate out the boolean -> enum refactor into a separate ...
4 years, 3 months ago (2016-09-12 16:25:36 UTC) #19
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/2320723005/40001
4 years, 3 months ago (2016-09-12 16:59:37 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/12564) v8_linux_dbg_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 3 months ago (2016-09-12 17:01:06 UTC) #23
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/2320723005/60001
4 years, 3 months ago (2016-09-12 21:27:38 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel_ng/builds/8495) v8_linux64_avx2_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 3 months ago (2016-09-12 21:41:58 UTC) #28
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/2320723005/80001
4 years, 3 months ago (2016-09-12 21:46:41 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-12 22:11:18 UTC) #33
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 22:12:06 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8e5ac62ddf17e85027b4eeb1056cddfbb70cace8
Cr-Commit-Position: refs/heads/master@{#39360}

Powered by Google App Engine
This is Rietveld 408576698