• bmeurer's avatar
    [turbofan] Introduce new JSConstructWithArrayLike operator. · 21701297
    bmeurer authored
    Add a new JSConstructWithArrayLike operator that is backed by the
    ConstructWithArrayLike builtin (similar to what was done before
    for the JSCallWithArrayLike operator), and use that operator to
    optimize Reflect.construct inlining in TurboFan. This is handled
    uniformly with JSConstructWithSpread in the JSCallReducer.
    
    Also add missing test coverage for Reflect.construct in optimized
    code, especially for some interesting corner cases.
    
    R=petermarshall@chromium.org
    BUG=v8:4587,v8:5269
    
    Review-Url: https://codereview.chromium.org/2949813002
    Cr-Commit-Position: refs/heads/master@{#46087}
    21701297
js-operator.h 28.6 KB