• caitp's avatar
    [typedarrays] move %TypedArray%.prototype.copyWithin to C++ · 0f1c626d
    caitp authored
    - Removes shared InnerArrayCopyWithin JS builtin from src/js/array.js
    - Implements %TypedArray%.prototype.copyWithin as a C++ builtin, which
    relies on std::memmove rather than accessing individual eleements.
    - Fixes the case where copyWithin is invoked on a TypedArray with a
    detached buffer.
    - Add tests to ensure that +/-Infinity (for all 3 parameters) is handled correctly by the
    algorithm
    
    The C++ version gets through the benchmark more than 25000 times as
    quickly as the JS implementation.
    
    BUG=v8:5925, v8:5929, v8:4648
    R=cbruni@chromium.org, adamk@chromium.org, littledan@chromium.org
    
    Review-Url: https://codereview.chromium.org/2671233002
    Cr-Commit-Position: refs/heads/master@{#42975}
    0f1c626d
Name
Last commit
Last update
..
OWNERS Loading commit data...
array.js Loading commit data...
arraybuffer.js Loading commit data...
collection-iterator.js Loading commit data...
collection.js Loading commit data...
datetime-format-to-parts.js Loading commit data...
harmony-atomics.js Loading commit data...
harmony-simd.js Loading commit data...
harmony-string-padding.js Loading commit data...
i18n.js Loading commit data...
icu-case-mapping.js Loading commit data...
macros.py Loading commit data...
messages.js Loading commit data...
prologue.js Loading commit data...
promise.js Loading commit data...
proxy.js Loading commit data...
runtime.js Loading commit data...
spread.js Loading commit data...
string.js Loading commit data...
templates.js Loading commit data...
typedarray.js Loading commit data...
v8natives.js Loading commit data...
weak-collection.js Loading commit data...