• ahaas's avatar
    [wasm] Track in the interpreter if a NaN could have been produced. · 57b14b06
    ahaas authored
    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}
    57b14b06
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...