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

Issue 2551043002: [wasm] Make WasmRunner the central test structure (Closed)

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

Description

[wasm] Make WasmRunner the central test structure The WasmRunner now always holds a TestingModule, and allows to add several functions to it. The prepares a change to always run wasm code with a full module behind it, removing the special handling for "no wasm instance" at runtime (http://crrev.com/2551053002). This CL here also templatizes the WasmRunner such that the Call method must be called with the same signature specified for the WasmRunner. This already catched several mismatches there. R=titzer@chromium.org, ahaas@chromium.org BUG=v8:5620 Review-Url: https://codereview.chromium.org/2551043002 Cr-Original-Commit-Position: refs/heads/master@{#41728} Committed: https://chromium.googlesource.com/v8/v8/+/2ff59062314e9b86bcc28dfaa53cedf2d98e3a13 Review-Url: https://codereview.chromium.org/2551043002 Cr-Commit-Position: refs/heads/master@{#41747} Committed: https://chromium.googlesource.com/v8/v8/+/6709edd7f6347917300673733bda2447ef187c84

Patch Set 1 #

Patch Set 2 : Fix simd lowering test #

Total comments: 6

Patch Set 3 : Address comments #

Patch Set 4 : Rebase #

Patch Set 5 : Fix gcc issue #

Total comments: 1

Patch Set 6 : Mark DoCall noinline #

Patch Set 7 : Make return value volatile #

Patch Set 8 : Avoid ternary operator #

Patch Set 9 : Make DoCall return void #

Patch Set 10 : Make DoCall return void - quickfix #

Patch Set 11 : Make DoCall return void - quickfix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1007 lines, -1341 lines) Patch
M test/cctest/wasm/test-run-wasm.cc View 1 2 3 135 chunks +404 lines, -502 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-64.cc View 1 2 3 79 chunks +135 lines, -198 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-asmjs.cc View 13 chunks +78 lines, -99 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-interpreter.cc View 14 chunks +19 lines, -37 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-js.cc View 8 chunks +35 lines, -47 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-relocation.cc View 1 chunk +13 lines, -15 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-simd.cc View 1 2 4 chunks +4 lines, -7 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-simd-lowering.cc View 1 13 chunks +64 lines, -68 lines 0 comments Download
M test/cctest/wasm/test-wasm-stack.cc View 4 chunks +19 lines, -25 lines 0 comments Download
M test/cctest/wasm/test-wasm-trap-position.cc View 3 chunks +18 lines, -21 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 2 3 4 5 6 7 8 9 10 18 chunks +218 lines, -322 lines 0 comments Download

Messages

Total messages: 66 (53 generated)
Clemens Hammacher
4 years ago (2016-12-05 10:27:13 UTC) #10
Clemens Hammacher
We indeed pay a bit for this in terms of compile time. This is the ...
4 years ago (2016-12-12 17:32:23 UTC) #11
titzer
https://codereview.chromium.org/2551043002/diff/20001/test/cctest/wasm/wasm-run-utils.h File test/cctest/wasm/wasm-run-utils.h (right): https://codereview.chromium.org/2551043002/diff/20001/test/cctest/wasm/wasm-run-utils.h#newcode352 test/cctest/wasm/wasm-run-utils.h:352: std::array<MachineType, sizeof...(ParamTypes)> mach_types{ Can you factor this std::array creation ...
4 years ago (2016-12-14 17:31:14 UTC) #12
Clemens Hammacher
Woohoo, that changes brought down the avg. single-threaded compile time of wasm tests to 71.72 ...
4 years ago (2016-12-14 20:41:38 UTC) #15
titzer
On 2016/12/14 20:41:38, Clemens Hammacher wrote: > Woohoo, that changes brought down the avg. single-threaded ...
4 years ago (2016-12-15 14:18:29 UTC) #18
Clemens Hammacher
> LGTM, I really like this change now! Cool, me too :) +ahaas, since I ...
4 years ago (2016-12-15 15:09:46 UTC) #31
ahaas
lgtm with nit https://codereview.chromium.org/2551043002/diff/80001/test/cctest/wasm/wasm-run-utils.h File test/cctest/wasm/wasm-run-utils.h (right): https://codereview.chromium.org/2551043002/diff/80001/test/cctest/wasm/wasm-run-utils.h#newcode616 test/cctest/wasm/wasm-run-utils.h:616: int idx = 0; I think ...
4 years ago (2016-12-15 15:35:31 UTC) #34
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/2551043002/80001
4 years ago (2016-12-15 15:35:52 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/v8/v8/+/2ff59062314e9b86bcc28dfaa53cedf2d98e3a13
4 years ago (2016-12-15 15:37:36 UTC) #40
Clemens Hammacher
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2583543002/ by clemensh@chromium.org. ...
4 years ago (2016-12-15 16:47:14 UTC) #41
ahaas
lgtm
4 years ago (2016-12-16 10:11:08 UTC) #60
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/2551043002/200001
4 years ago (2016-12-16 10:11:15 UTC) #63
commit-bot: I haz the power
4 years ago (2016-12-16 10:13:18 UTC) #66
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/v8/v8/+/6709edd7f6347917300673733bda2447ef1...

Powered by Google App Engine
This is Rietveld 408576698