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

Issue 2493823003: [wasm] Allocate a single script per wasm module (Closed)

Created:
4 years, 1 month ago by Clemens Hammacher
Modified:
4 years, 1 month ago
Reviewers:
titzer, Yang
CC:
devtools-reviews_chromium.org, jgruber, v8-reviews_googlegroups.com, Yang
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Allocate a single script per wasm module Before, we allocated one script per function per instance, and each script referenced the wasm instance and the function index. Now we only allocate one script per compiled wasm module, so the script also only references this WasmCompiledModule, which causes changes to many interfaces. Instead of fixing the disassemble API only used via debug.js, I decided to drop it for now. Some later CL will reintroduce it via DebugInterface. BUG=v8:5530, chromium:659715 R=yangguo@chromium.org, titzer@chromium.org CC=jgruber@chromium.org Committed: https://crrev.com/32077e01fb7f98c8cd6d9f95abbedec6cdeda469 Cr-Commit-Position: refs/heads/master@{#41004}

Patch Set 1 #

Patch Set 2 : Fix signed/unsigned issues #

Total comments: 4

Patch Set 3 : Rebase & address Yang's comments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -484 lines) Patch
M src/debug/debug.js View 1 chunk +0 lines, -10 lines 0 comments Download
M src/frames.cc View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M src/inspector/v8-debugger.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/messages.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M src/messages.cc View 1 2 3 4 chunks +18 lines, -11 lines 0 comments Download
M src/objects.h View 1 2 3 1 chunk +2 lines, -6 lines 0 comments Download
M src/objects.cc View 1 2 3 3 chunks +12 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 2 chunks +13 lines, -32 lines 0 comments Download
M src/wasm/module-decoder.h View 2 chunks +3 lines, -5 lines 0 comments Download
M src/wasm/module-decoder.cc View 1 2 3 3 chunks +5 lines, -13 lines 0 comments Download
M src/wasm/wasm-debug.cc View 1 2 3 chunks +22 lines, -192 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 3 chunks +17 lines, -14 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 8 chunks +113 lines, -36 lines 0 comments Download
M src/wasm/wasm-objects.h View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M test/inspector/debugger/wasm-stack.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/wasm-stack-expected.txt View 2 chunks +3 lines, -3 lines 0 comments Download
D test/mjsunit/wasm/debug-disassembly.js View 1 chunk +0 lines, -128 lines 0 comments Download
M test/mjsunit/wasm/frame-inspection.js View 3 chunks +25 lines, -18 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (19 generated)
Clemens Hammacher
4 years, 1 month ago (2016-11-10 21:37:16 UTC) #9
Yang
lgtm, but I have some concerns. Also, I did not thoroughly review the wasm part. ...
4 years, 1 month ago (2016-11-15 07:42:26 UTC) #10
Clemens Hammacher
https://codereview.chromium.org/2493823003/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2493823003/diff/20001/src/objects.cc#newcode13426 src/objects.cc:13426: if (type() == Script::TYPE_WASM) { On 2016/11/15 at 07:42:25, ...
4 years, 1 month ago (2016-11-15 15:04:06 UTC) #17
titzer
On 2016/11/15 15:04:06, Clemens Hammacher wrote: > https://codereview.chromium.org/2493823003/diff/20001/src/objects.cc > File src/objects.cc (right): > > https://codereview.chromium.org/2493823003/diff/20001/src/objects.cc#newcode13426 ...
4 years, 1 month ago (2016-11-15 15:27:36 UTC) #18
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/2493823003/60001
4 years, 1 month ago (2016-11-15 17:00:32 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-15 17:05:22 UTC) #24
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:34:45 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/32077e01fb7f98c8cd6d9f95abbedec6cdeda469
Cr-Commit-Position: refs/heads/master@{#41004}

Powered by Google App Engine
This is Rietveld 408576698