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

Issue 2490663002: [wasm] Move all heap-allocated WASM structures into wasm-objects.h. (Closed)

Created:
4 years, 1 month ago by titzer
Modified:
4 years, 1 month ago
CC:
Clemens Hammacher, gdeepti, Mircea Trofin, v8-reviews_googlegroups.com, Yang
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Move all heap-allocated WASM structures into wasm-objects.h. This CL moves all heap-allocated WASM data structures, both ones that are bonafide JSObjects and ones that are FixedArrays only, into a consistent place with consistent layout. Note that not all accessors are complete, and I haven't fully spread the new static typing goodness to all places in the code. R=ahaas@chromium.org,rossberg@chromium.org CC=gdeepti@chromium.org,mtrofin@chromium.org,clemensh@chromium.org BUG= Committed: https://crrev.com/fa9c25cebf127c25c7e1fe039fc748262ef1cfb6 Cr-Commit-Position: refs/heads/master@{#40913}

Patch Set 1 #

Total comments: 18

Patch Set 2 : More complete, addressed review comments #

Patch Set 3 : Remove another redundant method in wasm-module.h #

Patch Set 4 : More dead code #

Total comments: 1

Patch Set 5 : [wasm] Move all heap-allocated WASM structures into wasm-objects.h. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+902 lines, -748 lines) Patch
M BUILD.gn View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M src/api.cc View 1 2 4 chunks +9 lines, -8 lines 0 comments Download
M src/asmjs/asm-js.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/debug/debug.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/frames.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M src/runtime/runtime-test.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/snapshot/code-serializer.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M src/value-serializer.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M src/wasm/wasm-debug.h View 1 1 chunk +0 lines, -51 lines 0 comments Download
M src/wasm/wasm-debug.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/wasm/wasm-js.h View 1 1 chunk +0 lines, -27 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 18 chunks +39 lines, -179 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 5 chunks +5 lines, -138 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 40 chunks +150 lines, -310 lines 0 comments Download
A src/wasm/wasm-objects.h View 1 1 chunk +300 lines, -0 lines 0 comments Download
A src/wasm/wasm-objects.cc View 1 1 chunk +359 lines, -0 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 2 chunks +6 lines, -4 lines 0 comments Download
M test/common/wasm/wasm-module-runner.cc View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (14 generated)
ahaas
https://codereview.chromium.org/2490663002/diff/1/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2490663002/diff/1/src/wasm/wasm-module.cc#newcode1512 src/wasm/wasm-module.cc:1512: auto memory = Handle<WasmMemoryObject>::cast(object); Can you not just use ...
4 years, 1 month ago (2016-11-10 09:51:14 UTC) #1
Yang
On 2016/11/10 09:51:14, ahaas wrote: > https://codereview.chromium.org/2490663002/diff/1/src/wasm/wasm-module.cc > File src/wasm/wasm-module.cc (right): > > https://codereview.chromium.org/2490663002/diff/1/src/wasm/wasm-module.cc#newcode1512 > ...
4 years, 1 month ago (2016-11-10 10:33:25 UTC) #5
titzer
https://codereview.chromium.org/2490663002/diff/1/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2490663002/diff/1/src/wasm/wasm-module.cc#newcode1512 src/wasm/wasm-module.cc:1512: auto memory = Handle<WasmMemoryObject>::cast(object); On 2016/11/10 09:51:13, ahaas wrote: ...
4 years, 1 month ago (2016-11-10 10:33:25 UTC) #6
titzer
On 2016/11/10 10:33:25, titzer wrote: > https://codereview.chromium.org/2490663002/diff/1/src/wasm/wasm-module.cc > File src/wasm/wasm-module.cc (right): > > https://codereview.chromium.org/2490663002/diff/1/src/wasm/wasm-module.cc#newcode1512 > ...
4 years, 1 month ago (2016-11-10 10:36:06 UTC) #8
Toon Verwaest
lgtm
4 years, 1 month ago (2016-11-10 12:52:14 UTC) #13
rossberg
So much better! LGTM https://codereview.chromium.org/2490663002/diff/60001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2490663002/diff/60001/src/wasm/wasm-module.cc#newcode1585 src/wasm/wasm-module.cc:1585: static_cast<int>(function.sig->parameter_count()), Having to perform this ...
4 years, 1 month ago (2016-11-10 15:12:16 UTC) #16
titzer
On 2016/11/10 15:12:16, rossberg wrote: > So much better! LGTM > > https://codereview.chromium.org/2490663002/diff/60001/src/wasm/wasm-module.cc > File ...
4 years, 1 month ago (2016-11-10 17:18:00 UTC) #17
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/2490663002/80001
4 years, 1 month ago (2016-11-11 10:48:12 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-11 11:12:37 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:30:12 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/fa9c25cebf127c25c7e1fe039fc748262ef1cfb6
Cr-Commit-Position: refs/heads/master@{#40913}

Powered by Google App Engine
This is Rietveld 408576698