• Ng Zhi An's avatar
    [wasm] Speed up some tests in grow-memory · efb1b5e4
    Ng Zhi An authored
    Rework testMemoryGrowPreservesDataMemOp tests so that they only test the
    first and last 5 offsets within the page, instead of every offset.
    
    Slight logic change: instead of storing the value C - offset (where C is
    a constant that is different for 32 and 16 memops), we store just the
    value offset. This allows us to combine the logic for all 3 memops (32,
    16, and 8). But we need to add a modulo so that in the 8 bit case, we
    don't store a value that exceeds the maximum (the other cases will never
    hit a case that exceeds the max).
    
    Bug: v8:7783
    Change-Id: Ibfdc77555ba2ca26391eba303050a03538f6012d
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2117633Reviewed-by: 's avatarDeepti Gandluri <gdeepti@chromium.org>
    Commit-Queue: Zhi An Ng <zhin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#66879}
    efb1b5e4
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging Loading commit data...
fuzzer 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...