• Simon Zünd's avatar
    [array] Move Array.p.unshift fall-back to Torque · cfe71156
    Simon Zünd authored
    This CL implements a generic baseline version of Array.p.unshift
    in Torque, enabling us to remove the JS fall-back.
    
    The elements-accessor fast-path is still used, but the check whether
    to use it is also moved to Torque.
    
    Support for sparse JSArrays is removed.
    
    Drive-by change: Small refactoring in builtins-array that will
    get extended to other array builtins in a follow-up CL.
    
    R=cbruni@chromium.org, jgruber@chromium.org
    
    Bug: v8:7624
    Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
    Change-Id: I7b23ce15e7b922eb333f61a408050dedec77c95a
    Reviewed-on: https://chromium-review.googlesource.com/1189902
    Commit-Queue: Simon Zünd <szuend@google.com>
    Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#55670}
    cfe71156