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

Issue 2390113003: [wasm] Refactor import handling for 0xC. (Closed)

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

Description

[wasm] Refactor import handling for 0xC. Imports and exports in 0xC can be much more than functions, including tables, memories, and globals. This CL refactors the underlying organization of imports and exports to support these new import types. BUG= Committed: https://crrev.com/599f8a83420346d9cba5ff97bd2a7520468207b6 Committed: https://crrev.com/e97ca6ec479e3941dfbd9bdd36a637956dddbe00 Cr-Original-Commit-Position: refs/heads/master@{#40033} Cr-Commit-Position: refs/heads/master@{#40050}

Patch Set 1 #

Patch Set 2 : Add support for importing globals. #

Total comments: 1

Patch Set 3 : Rebase onto master #

Patch Set 4 : Implement importing of globals #

Patch Set 5 : Add support for exported globals. #

Total comments: 26

Patch Set 6 : Fix bug with init array shrinking. #

Patch Set 7 : Fix GC mole issue. #

Patch Set 8 : Address review comments #

Patch Set 9 : Address last review comments #

Patch Set 10 : Rebase #

Patch Set 11 : Fix gc stress failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1292 lines, -691 lines) Patch
M src/compiler/wasm-compiler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M src/wasm/module-decoder.cc View 1 2 3 4 4 chunks +16 lines, -9 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 5 6 7 5 chunks +10 lines, -10 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 8 9 10 16 chunks +873 lines, -565 lines 0 comments Download
M src/wasm/wasm-module-builder.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M src/wasm/wasm-module-builder.cc View 1 2 3 2 chunks +49 lines, -13 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 2 3 4 5 6 7 8 9 1 chunk +91 lines, -0 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/wasm/compiled-module-management.js View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/wasm/compiled-module-serialization.js View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M test/mjsunit/wasm/export-table.js View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M test/mjsunit/wasm/ffi.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/wasm/function-prototype.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/wasm/gc-stress.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +37 lines, -0 lines 0 comments Download
A test/mjsunit/wasm/globals.js View 1 2 3 4 5 1 chunk +66 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/import-table.js View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M test/mjsunit/wasm/instance-gc.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/wasm/instantiate-module-basic.js View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/start-function.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/wasm/test-wasm-module-builder.js View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M test/mjsunit/wasm/wasm-constants.js View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M test/mjsunit/wasm/wasm-module-builder.js View 1 2 3 4 5 6 7 20 chunks +115 lines, -61 lines 0 comments Download
M test/unittests/wasm/ast-decoder-unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 55 (39 generated)
Mircea Trofin
https://codereview.chromium.org/2390113003/diff/20001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2390113003/diff/20001/src/wasm/wasm-module.cc#newcode1098 src/wasm/wasm-module.cc:1098: class WasmModuleInstantiateHelper { How about "WasmInstantiationPipeline"?
4 years, 2 months ago (2016-10-04 20:06:46 UTC) #6
titzer
On 2016/10/04 20:06:46, Mircea Trofin wrote: > https://codereview.chromium.org/2390113003/diff/20001/src/wasm/wasm-module.cc > File src/wasm/wasm-module.cc (right): > > https://codereview.chromium.org/2390113003/diff/20001/src/wasm/wasm-module.cc#newcode1098 ...
4 years, 2 months ago (2016-10-05 15:47:54 UTC) #13
Mircea Trofin
https://codereview.chromium.org/2390113003/diff/80001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2390113003/diff/80001/src/wasm/wasm-module.cc#newcode109 src/wasm/wasm-module.cc:109: byte* raw_buffer_ptr(MaybeHandle<JSArrayBuffer> buffer, int offset) { The name strikes ...
4 years, 2 months ago (2016-10-05 16:21:09 UTC) #14
titzer
https://codereview.chromium.org/2390113003/diff/80001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2390113003/diff/80001/src/wasm/wasm-module.cc#newcode109 src/wasm/wasm-module.cc:109: byte* raw_buffer_ptr(MaybeHandle<JSArrayBuffer> buffer, int offset) { On 2016/10/05 16:21:09, ...
4 years, 2 months ago (2016-10-05 18:29:39 UTC) #19
Mircea Trofin
lgtm assuming WasmInstanceBuilder's fields become private (fine if no accessors, since they aren't even consumed ...
4 years, 2 months ago (2016-10-05 18:41:00 UTC) #20
titzer
On 2016/10/05 18:41:00, Mircea Trofin wrote: > lgtm assuming WasmInstanceBuilder's fields become private (fine if ...
4 years, 2 months ago (2016-10-06 08:43:00 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/2390113003/160001
4 years, 2 months ago (2016-10-06 11:41:04 UTC) #28
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/25785)
4 years, 2 months ago (2016-10-06 11:44:16 UTC) #30
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/2390113003/180001
4 years, 2 months ago (2016-10-06 12:28:03 UTC) #37
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 2 months ago (2016-10-06 12:30:42 UTC) #39
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/599f8a83420346d9cba5ff97bd2a7520468207b6 Cr-Commit-Position: refs/heads/master@{#40033}
4 years, 2 months ago (2016-10-06 12:31:01 UTC) #41
Michael Hablich
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/2395133002/ by hablich@chromium.org. ...
4 years, 2 months ago (2016-10-06 13:42:34 UTC) #42
titzer
On 2016/10/06 13:42:34, Hablich wrote: > A revert of this CL (patchset #10 id:180001) has ...
4 years, 2 months ago (2016-10-06 15:40:21 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/2390113003/200001
4 years, 2 months ago (2016-10-06 15:40:33 UTC) #51
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 2 months ago (2016-10-06 15:43:14 UTC) #53
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 15:43:34 UTC) #55
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/e97ca6ec479e3941dfbd9bdd36a637956dddbe00
Cr-Commit-Position: refs/heads/master@{#40050}

Powered by Google App Engine
This is Rietveld 408576698