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 1816583003: wasm: add flag to dump modules (Closed)

Created:
4 years, 9 months ago by JF
Modified:
4 years, 9 months ago
Reviewers:
titzer, kcc2, bradnelson
CC:
v8-reviews_googlegroups.com, Michael Hablich
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

wasm: add flag to dump modules Flags --dump_wasm_module and --dump_wasm_module_path=/path/to/folder allow us to run a bunch of tests and capture all of the wasm module files including the ones that come from the .js and .cc tests which are built on the fly, as well as the asm2wasm tests. The files are all uniquely named `HASH.{ok,failed}.wasm`. This will be especilly useful for fuzz testing, but could also be used for other tests including non-V8 tests. For now I manually hacked tools/testrunner/local/execution.py so that tools/run-tests.py can output the modules. We may want to ad a flag to run-tests.py proper if this turns out to be useful. R=bradnelson@chromium.org, titzer@chromium.org, kcc@chromium.org Committed: https://crrev.com/ed76b66aabf3693dcea19277d6eedfa792e6c2dd Cr-Commit-Position: refs/heads/master@{#34968}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Factor out dumper #

Patch Set 3 : Fix Mac build problems: bad C++11 support #

Patch Set 4 : Inline DecodeModuleImpl #

Patch Set 5 : Android doesn't have PRIx64 #

Patch Set 6 : Windows has sprintf_s, same as in ostream.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -29 lines) Patch
M src/base/platform/platform.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/base/platform/platform-posix.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/base/platform/platform-win32.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/flag-definitions.h View 1 chunk +2 lines, -3 lines 0 comments Download
M src/wasm/module-decoder.cc View 1 2 3 4 5 5 chunks +52 lines, -17 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
JF
4 years, 9 months ago (2016-03-19 00:46:52 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1816583003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1816583003/1
4 years, 9 months ago (2016-03-19 00:48:04 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/17308)
4 years, 9 months ago (2016-03-19 00:56:15 UTC) #5
bradnelson
lgtm https://codereview.chromium.org/1816583003/diff/1/src/base/platform/platform-posix.cc File src/base/platform/platform-posix.cc (right): https://codereview.chromium.org/1816583003/diff/1/src/base/platform/platform-posix.cc#newcode435 src/base/platform/platform-posix.cc:435: return ch == DirectorySeparator(); Your trust in the ...
4 years, 9 months ago (2016-03-19 00:57:11 UTC) #6
JF
Why does Mac build with C++0x? FAILED: /b/build/goma/gomacc /b/build/slave/mac/build/v8/third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/src/wasm/v8_base.module-decoder.o.d -DCR_CLANG_REVISION=263324-1 -DV8_TARGET_ARCH_IA32 -DENABLE_GDB_JIT_INTERFACE ...
4 years, 9 months ago (2016-03-19 01:04:48 UTC) #7
JF
On 2016/03/19 01:04:48, JF wrote: > Why does Mac build with C++0x? Trying to answer ...
4 years, 9 months ago (2016-03-19 01:12:03 UTC) #8
titzer
lgtm other than comment below https://codereview.chromium.org/1816583003/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/1816583003/diff/1/src/wasm/module-decoder.cc#newcode58 src/wasm/module-decoder.cc:58: if (FLAG_dump_wasm_module) { Can ...
4 years, 9 months ago (2016-03-21 08:14:37 UTC) #9
JF
https://codereview.chromium.org/1816583003/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/1816583003/diff/1/src/wasm/module-decoder.cc#newcode58 src/wasm/module-decoder.cc:58: if (FLAG_dump_wasm_module) { On 2016/03/21 08:14:37, titzer wrote: > ...
4 years, 9 months ago (2016-03-21 20:11:30 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1816583003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1816583003/60001
4 years, 9 months ago (2016-03-21 20:11:44 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_android_arm_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/15237)
4 years, 9 months ago (2016-03-21 20:16:55 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1816583003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1816583003/80001
4 years, 9 months ago (2016-03-21 20:25:54 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win_nosnap_shared_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_nosnap_shared_compile_rel/builds/12241)
4 years, 9 months ago (2016-03-21 20:30:04 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1816583003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1816583003/100001
4 years, 9 months ago (2016-03-21 20:34:33 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 21:01:25 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1816583003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1816583003/100001
4 years, 9 months ago (2016-03-21 21:39:06 UTC) #25
JF
I'll commit for now, titzer let me know if you'd want to to do any ...
4 years, 9 months ago (2016-03-21 21:39:28 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-21 21:41:31 UTC) #27
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/ed76b66aabf3693dcea19277d6eedfa792e6c2dd Cr-Commit-Position: refs/heads/master@{#34968}
4 years, 9 months ago (2016-03-21 21:43:10 UTC) #29
JF
4 years, 9 months ago (2016-03-22 18:02:04 UTC) #30
Message was sent while issue was closed.
Follow-up to hook this to run-tests.py:
  https://codereview.chromium.org/1828433002

Powered by Google App Engine
This is Rietveld 408576698