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

Issue 2784453002: [wasm] Fix serialization after instantiation (Closed)

Created:
3 years, 8 months ago by Mircea Trofin
Modified:
3 years, 8 months ago
Reviewers:
bradnelson
CC:
v8-reviews_googlegroups.com, ahaas, gdeepti, wasm-v8_google.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Fix serialization after instantiation The regression comes from attempting to serialize a module with memory requirements after instantiation - which is what happens in common emscripten scenarios, where the module is obtained from WebAssembly.instantiate(buffer). We then try and serialize the JSArrayBuffer representing the instance memory. That operation fails. Added regression test and also extended the test to cover the other 2 instance-specific values - globals and tables. Added a discussion on WasmCompiledModule (comments) explaining design decisions. BUG=chromium:705562 Review-Url: https://codereview.chromium.org/2784453002 Cr-Commit-Position: refs/heads/master@{#44250} Committed: https://chromium.googlesource.com/v8/v8/+/f2531acb1e7ea7c0e1bde2f8230c6b49539dd429

Patch Set 1 : regression test #

Patch Set 2 : interm #

Patch Set 3 : . #

Patch Set 4 : still some left #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 14

Patch Set 8 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -134 lines) Patch
M src/wasm/wasm-debug.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 9 chunks +25 lines, -96 lines 0 comments Download
M src/wasm/wasm-objects.h View 1 2 3 4 5 4 chunks +95 lines, -25 lines 0 comments Download
M src/wasm/wasm-objects.cc View 1 2 3 4 5 6 7 4 chunks +149 lines, -2 lines 0 comments Download
M test/mjsunit/wasm/compiled-module-serialization.js View 1 2 3 4 5 6 7 3 chunks +147 lines, -7 lines 0 comments Download

Messages

Total messages: 38 (33 generated)
Mircea Trofin
3 years, 8 months ago (2017-03-29 20:35:49 UTC) #30
bradnelson
lgtm https://codereview.chromium.org/2784453002/diff/140001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2784453002/diff/140001/src/wasm/wasm-module.cc#newcode1207 src/wasm/wasm-module.cc:1207: // understands how to relocate the refrerences. We ...
3 years, 8 months ago (2017-03-29 20:49:07 UTC) #31
Mircea Trofin
https://codereview.chromium.org/2784453002/diff/140001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2784453002/diff/140001/src/wasm/wasm-module.cc#newcode1207 src/wasm/wasm-module.cc:1207: // understands how to relocate the refrerences. We still ...
3 years, 8 months ago (2017-03-29 20:56:30 UTC) #32
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/2784453002/160001
3 years, 8 months ago (2017-03-29 20:56:48 UTC) #35
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 21:23:05 UTC) #38
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://chromium.googlesource.com/v8/v8/+/f2531acb1e7ea7c0e1bde2f8230c6b49539...

Powered by Google App Engine
This is Rietveld 408576698