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

Issue 2321443002: [wasm] Call the wasm interpreter from the wasm-code-fuzzer. (Closed)

Created:
4 years, 3 months ago by ahaas
Modified:
4 years, 3 months ago
CC:
mmoroz, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Call the wasm interpreter from the wasm-code-fuzzer. With this CL the wasm-code-fuzzer first decodes and interprets the test case generated by the fuzzer. It then compiles the test case, but only executes the compiled instance if the interpretation of the test case was successful. If the compiled instance is executed, then the result of the execution is compared with the result of the interpretation. Additionally this CL refactors the CompileAndRunWasmModule function in wasm-module.cc to resuse code in the call to the interpreter. R=titzer@chromium.org Committed: https://crrev.com/1521fe9c3c88128cea5188b28068736a87838f1c Cr-Commit-Position: refs/heads/master@{#39351}

Patch Set 1 #

Patch Set 2 : The interpreter cannot throw real exceptions #

Patch Set 3 : Bugfix #

Total comments: 6

Patch Set 4 : Extract testing functions to the new wasm-module-runner.(.h|.cc) files. #

Patch Set 5 : Removed includes and fixed gyp files. #

Total comments: 1

Patch Set 6 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -106 lines) Patch
M BUILD.gn View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 1 chunk +0 lines, -12 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 1 chunk +0 lines, -86 lines 0 comments Download
M test/cctest/cctest.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
A test/cctest/wasm/wasm-module-runner.h View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A test/cctest/wasm/wasm-module-runner.cc View 1 2 3 1 chunk +194 lines, -0 lines 0 comments Download
M test/fuzzer/fuzzer.gyp View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M test/fuzzer/wasm.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M test/fuzzer/wasm-asmjs.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M test/fuzzer/wasm-code.cc View 1 2 3 4 5 2 chunks +50 lines, -6 lines 0 comments Download

Messages

Total messages: 34 (25 generated)
ahaas
4 years, 3 months ago (2016-09-07 09:45:10 UTC) #1
ahaas
Changed the result comparison in the case of a trap, because the interpreter traps differently ...
4 years, 3 months ago (2016-09-07 09:58:07 UTC) #6
titzer
https://codereview.chromium.org/2321443002/diff/40001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2321443002/diff/40001/src/wasm/wasm-module.cc#newcode1725 src/wasm/wasm-module.cc:1725: int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start, I'm wondering if ...
4 years, 3 months ago (2016-09-09 08:58:59 UTC) #13
ahaas
machenbach, could you take a look at the gn and gyp files? https://codereview.chromium.org/2321443002/diff/40001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc ...
4 years, 3 months ago (2016-09-09 11:57:36 UTC) #21
Michael Achenbach
gyp + gn lgtm
4 years, 3 months ago (2016-09-09 12:43:27 UTC) #24
titzer
lgtm https://codereview.chromium.org/2321443002/diff/80001/test/fuzzer/wasm-code.cc File test/fuzzer/wasm-code.cc (right): https://codereview.chromium.org/2321443002/diff/80001/test/fuzzer/wasm-code.cc#newcode56 test/fuzzer/wasm-code.cc:56: v8::internal::wasm::ErrorThrower interpreter_thrower(i_isolate, Nit: use a "using v8::internal::wasm" to ...
4 years, 3 months ago (2016-09-12 11:46:21 UTC) #25
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/2321443002/100001
4 years, 3 months ago (2016-09-12 11:59:52 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-12 12:26:41 UTC) #32
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 12:26:55 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1521fe9c3c88128cea5188b28068736a87838f1c
Cr-Commit-Position: refs/heads/master@{#39351}

Powered by Google App Engine
This is Rietveld 408576698