Descriptionwasm: 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 #
Messages
Total messages: 30 (11 generated)
|