• peterwmwong's avatar
    [typedarray] Port TypedArray#filter to Torque. · 7c89c29b
    peterwmwong authored
    Also ports GrowableFixedArray to Torque. The CSA version is preserved
    for now, as the Torque structs are not consumable by CSA builtins yet
    (Struct methods are inlined).
    
    TypedArrayPrototypeFilter builtin size decreased by 24% (Mac x64.release):
      TFJ Builtin, TypedArrayPrototypeFilter, 5689 -> 4298
    
    TypedArrays/Filter micro benchmarks have improved 10-15% (Mac x64.release):
      TypedArrays-Uint8Array(Score):     746 -> 857
      TypedArrays-Uint16Array(Score):    758 -> 862
      TypedArrays-Uint32Array(Score):    746 -> 855
      TypedArrays-Float32Array(Score):   749 -> 817
      TypedArrays-Float64Array(Score):   751 -> 839
      TypedArrays-BigUint64Array(Score): 562 -> 625
    
    Bug: v8:8906
    Change-Id: I1172b7407de95b067448e680ec327e726e9194cf
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1501469
    Commit-Queue: Peter Wong <peter.wm.wong@gmail.com>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarSimon Zünd <szuend@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#60035}
    7c89c29b
builtins-definitions.h 114 KB