• Peter Marshall's avatar
    [runtime] Fix spec bug in TypedArrayConstruct with mutating iterables. · cc75535d
    Peter Marshall authored
    The spec requires that we use IterableToList, which we skipped for
    some arrays as an optimization. We can't skip this for arrays with
    objects though, because the objects may mutate the array during
    the copying step via valueOf side effects.
    
    Also clean up the implementation to use a runtime function rather
    than a builtin as the helper. Also reverses the result of the helper
    because I think it is a bit more intuitive that way.
    
    Bug: v8:6224
    Change-Id: I9199491abede4479785df6d9068331bc2d6e9c5e
    Reviewed-on: https://chromium-review.googlesource.com/471986Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
    Commit-Queue: Peter Marshall <petermarshall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#44507}
    cc75535d
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...