v8/test/fuzzer
ahaas 57b14b0606 [wasm] Track in the interpreter if a NaN could have been produced.
The wasm specification does not fully specify the binary representation
of NaN: the sign bit can be non-deterministic. The wasm-code fuzzer
found a test case where the wasm interpreter and the compiled code
produce a different sign bit for a NaN, and as a consequence they
produce different results.

With this CL the interpreter tracks whether it executed an instruction
which can produce a NaN, which are div and sqrt instructions. The
fuzzer uses this information and compares the result of the interpreter
with the result of the compiled code only if there was no instruction
which could have produced a NaN.

R=titzer@chromium.org

TEST=cctest/test-run-wasm-interpreter/TestMayProduceNaN
BUG=chromium:657481

Review-Url: https://chromiumcodereview.appspot.com/2438603003
Cr-Commit-Position: refs/heads/master@{#40474}
2016-10-20 14:27:45 +00:00
..
json Add json fuzzer 2016-02-02 11:29:01 +00:00
parser Add a library suitable for libfuzzer with a small unit test runner shell 2016-01-26 10:39:03 +00:00
regexp [regexp] add fuzzer support for regexp parser and compiler. 2016-02-01 14:00:38 +00:00
wasm_code [wasm] Create a new fuzzer for wasm code. 2016-08-29 13:56:00 +00:00
wasm_data_section [wasm] Write fuzzers for single wasm sections. 2016-09-14 11:17:53 +00:00
wasm_function_sigs_section [wasm] Write fuzzers for single wasm sections. 2016-09-14 11:17:53 +00:00
wasm_globals_section [wasm] Write fuzzers for single wasm sections. 2016-09-14 11:17:53 +00:00
wasm_imports_section [wasm] Write fuzzers for single wasm sections. 2016-09-14 11:17:53 +00:00
wasm_memory_section [wasm] Write fuzzers for single wasm sections. 2016-09-14 11:17:53 +00:00
wasm_names_section [wasm] Write fuzzers for single wasm sections. 2016-09-14 11:17:53 +00:00
wasm_types_section [wasm] Write fuzzers for single wasm sections. 2016-09-14 11:17:53 +00:00
DEPS Add a library suitable for libfuzzer with a small unit test runner shell 2016-01-26 10:39:03 +00:00
fuzzer-support.cc Provide a convenience array buffer allocator 2016-06-29 07:42:40 +00:00
fuzzer-support.h Provide a convenience array buffer allocator 2016-06-29 07:42:40 +00:00
fuzzer.cc Add a library suitable for libfuzzer with a small unit test runner shell 2016-01-26 10:39:03 +00:00
fuzzer.gyp parser fuzzer and parser shell should also work in component builds 2016-10-14 08:35:52 +00:00
fuzzer.isolate [wasm] Write fuzzers for single wasm sections. 2016-09-14 11:17:53 +00:00
fuzzer.status Add a library suitable for libfuzzer with a small unit test runner shell 2016-01-26 10:39:03 +00:00
json.cc Add GC request to libFuzzers in attempt to avoid parasitic coverage. 2016-04-28 13:32:28 +00:00
parser.cc Named all zones in the project 2016-10-17 12:12:42 +00:00
regexp.cc [regexp] Turn last match info into a simple FixedArray 2016-10-14 11:47:09 +00:00
testcfg.py [wasm] Write fuzzers for single wasm sections. 2016-09-14 11:17:53 +00:00
wasm_asmjs.tar.gz.sha1 [wasm] Write fuzzers for single wasm sections. 2016-09-14 11:17:53 +00:00
wasm-asmjs.cc [wasm] Fix test-run-wasm-module tests in debug mode. 2016-09-17 01:31:07 +00:00
wasm-code.cc [wasm] Track in the interpreter if a NaN could have been produced. 2016-10-20 14:27:45 +00:00
wasm-data-section.cc [wasm] Master CL for Binary 0xC changes. 2016-09-27 20:46:30 +00:00
wasm-function-sigs-section.cc [wasm] Master CL for Binary 0xC changes. 2016-09-27 20:46:30 +00:00
wasm-globals-section.cc [wasm] Master CL for Binary 0xC changes. 2016-09-27 20:46:30 +00:00
wasm-imports-section.cc [wasm] Master CL for Binary 0xC changes. 2016-09-27 20:46:30 +00:00
wasm-memory-section.cc [wasm] Master CL for Binary 0xC changes. 2016-09-27 20:46:30 +00:00
wasm-names-section.cc [wasm] Master CL for Binary 0xC changes. 2016-09-27 20:46:30 +00:00
wasm-section-fuzzers.cc [wasm] Use a Managed<WasmModule> to hold metadata about modules. 2016-10-19 13:07:22 +00:00
wasm-section-fuzzers.h [wasm] Master CL for Binary 0xC changes. 2016-09-27 20:46:30 +00:00
wasm-types-section.cc [wasm] Master CL for Binary 0xC changes. 2016-09-27 20:46:30 +00:00
wasm.cc [wasm] Fix test-run-wasm-module tests in debug mode. 2016-09-17 01:31:07 +00:00
wasm.tar.gz.sha1 [wasm] Write fuzzers for single wasm sections. 2016-09-14 11:17:53 +00:00