• Benedikt Meurer's avatar
    [turbofan] Teach TurboFan about the TypedArray constructor. · 0875778f
    Benedikt Meurer authored
    This introduces a new JSCreateTypedArray operator, backed by a dedicated
    CreateTypedArray builtin, and adds support to lowering new TypedArray
    calls to this operator. This way we avoid the overhead of going through
    the generic construct stub machinery for hot code. This not only
    recovers the performance regression on the typed array constructor
    benchmarks, but even improves slightly beyond what we had in 6.6.
    
    We might in the future try to fully inline the TypedArray constructor
    into optimized code for certain cases.
    
    Bug: chromium:820726, v8:7503, v8:7518
    Change-Id: Ied465924d5695db576d533792f1db68456b9b5ea
    Reviewed-on: https://chromium-review.googlesource.com/959010
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Reviewed-by: 's avatarPeter Marshall <petermarshall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#51973}
    0875778f
js-generic-lowering.cc 33.1 KB