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

Issue 2134593002: [wasm] cloning compiled module before instantiation (Closed)

Created:
4 years, 5 months ago by Mircea Trofin
Modified:
4 years, 5 months ago
Reviewers:
titzer, rossberg
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] cloning compiled module before instantiation To correctly support instantiating a compiled module multiple times, we clone the compiled module each time we create an instance, since some of the data is specific to the instance - e.g. export code, wasm functions, indirect table. BUG=v8:5072 Committed: https://crrev.com/81f42220a63f8d29bde947171b1ed8e555034b53 Cr-Commit-Position: refs/heads/master@{#37692}

Patch Set 1 #

Patch Set 2 : cloning #

Patch Set 3 : simpler fixed table #

Patch Set 4 : rebase #

Patch Set 5 #

Total comments: 10

Patch Set 6 : feedback #

Total comments: 10

Patch Set 7 : [wasm] cloning compiled module before instantiation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -151 lines) Patch
M src/compiler/wasm-compiler.h View 1 chunk +3 lines, -7 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 2 chunks +39 lines, -60 lines 0 comments Download
M src/factory.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 21 chunks +257 lines, -79 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 2 3 4 5 6 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Mircea Trofin
PTAL. After this CL makes it in, I'll add more tests to 2121593002, which, at ...
4 years, 5 months ago (2016-07-08 06:32:06 UTC) #3
Mircea Trofin
PTAL
4 years, 5 months ago (2016-07-09 04:36:44 UTC) #4
titzer
https://codereview.chromium.org/2134593002/diff/80001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2134593002/diff/80001/src/wasm/wasm-module.cc#newcode190 src/wasm/wasm-module.cc:190: enum WasmExportMetadata { I didn't see the prior CL ...
4 years, 5 months ago (2016-07-11 08:25:36 UTC) #5
rossberg
This looks okay, but could probably use at least some basic tests. https://codereview.chromium.org/2134593002/diff/80001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc ...
4 years, 5 months ago (2016-07-11 10:49:46 UTC) #6
Mircea Trofin
@rossberg, re. tests: This change is meant to be an in-place, to ensure that, by ...
4 years, 5 months ago (2016-07-11 16:52:57 UTC) #8
titzer
Mostly there, so I am willing to go with this for now, but I am ...
4 years, 5 months ago (2016-07-12 15:45:52 UTC) #9
Mircea Trofin
PTAL We'll have all sorts of problems as long as we live on the JS ...
4 years, 5 months ago (2016-07-12 16:12:23 UTC) #10
titzer
lgtm
4 years, 5 months ago (2016-07-12 21:09:14 UTC) #11
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/2134593002/140001
4 years, 5 months ago (2016-07-12 21:13:35 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 5 months ago (2016-07-12 21:37:15 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-07-12 21:37:31 UTC) #16
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/81f42220a63f8d29bde947171b1ed8e555034b53
Cr-Commit-Position: refs/heads/master@{#37692}

Powered by Google App Engine
This is Rietveld 408576698