• Hai Dang's avatar
    Add fast path for cloning by iterating fast holey arrays. · 9f7ec7d4
    Hai Dang authored
    This fast path copies the backing store and replaces holes with undefined.
    In the case where the array is holey but there is no actual holes, the
    resulting array is of the same elements kind as the source array. If a hole
    does appear, the resulting array will be of PACKED_ELEMENTS kind so that it
    can contain undefined.
    
    The builtin CloneFastJSArrayFillingHoles includes this fast path, but
    CloneFastJSArray does not (it still behaves as before). In case of fast
    packed arrays, CloneFastJSArrayFillingHoles behaves the same as
    CloneFastJSArray.
    
    Bug: chromium:881273, v8:7980
    Change-Id: I49c641c1a673313f06aeed93077031ab6b017b6d
    Reviewed-on: https://chromium-review.googlesource.com/1236573
    Commit-Queue: Hai Dang <dhai@google.com>
    Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#56209}
    9f7ec7d4
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
custom_deps Loading commit data...
docs Loading commit data...
gni Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.clang-tidy Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...