• Clemens Backes's avatar
    [wasm][fuzzer] Simplify boolean decisions · 9c5a434b
    Clemens Backes authored
    The wasm-compile fuzzer sometimes needs to generate a boolean flag from
    the input bytes. Since the general {DataRange::get} method results in
    undefined behaviour if instantiated with the {bool} type, we are getting
    an 8-bit value instead and looking at the least significant bit only.
    This CL improves this situation by implementing a template
    specialization for {bool} which uses the same trick, and uses that
    instead of hand-coding the modulo operation at the call sites.
    
    R=manoskouk@chromium.org
    
    Bug: v8:11879
    Change-Id: I6f9ce02dd8d9cd0998b83e081e4c6ca773e6cb53
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3129429Reviewed-by: 's avatarManos Koukoutos <manoskouk@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#76588}
    9c5a434b
Name
Last commit
Last update
..
benchmarks Loading commit data...
bigint Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging Loading commit data...
fuzzer Loading commit data...
fuzzilli Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-api-tests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...