• ahaas's avatar
    [wasm] Call the wasm interpreter from the wasm-code-fuzzer. · 1521fe9c
    ahaas authored
    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
    
    Review-Url: https://codereview.chromium.org/2321443002
    Cr-Commit-Position: refs/heads/master@{#39351}
    1521fe9c
wasm-module.h 17.5 KB