• Peter Marshall's avatar
    [builtins] Use length field in TypedArrayConstructByArrayLike. · c5ad59f4
    Peter Marshall authored
    The byte_length field of the TypedArray is not set to 0 on neutering,
    but JSArrayBufferView::byte_length() returns 0 if WasNeutered() is
    true. We should use the length property here instead.
    
    We can just short-circuit if the length is 0. Added checks to the
    memcpy path that assert length and neutered status are sane.
    
    Bug:chromium:707472,chromium:707595,chromium:707364,chromium:707410
    
    Change-Id: Ia1dec53f175357673012cbbc5e2fc40207e03623
    Reviewed-on: https://chromium-review.googlesource.com/465987Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
    Commit-Queue: Peter Marshall <petermarshall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#44336}
    c5ad59f4
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger 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...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...