• Benedikt Meurer's avatar
    [turbofan] Make Array#find use integers for the index. · 0b9036dc
    Benedikt Meurer authored
    The k value passed to NumberAdd was outside the integer range, which
    meant it had to choose Double as the only valid representation. The
    other array builtins pass the result of CheckBounds here to specifically
    force the types into integer range, which allows the representation
    selection to pick Word32 instead of Float64 representation.
    
    Drive-by-fix: Pass kind to AccessBuilder::ForJSArrayLength() as well.
    
    Bug: chromium:791045, v8:1956
    Change-Id: I357e1ba0dc52be544e631e4d554ab772b9b4c9bb
    Reviewed-on: https://chromium-review.googlesource.com/823968Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#50084}
    0b9036dc
js-call-reducer.cc 107 KB