• bmeurer's avatar
    [turbofan] Introduce JSCallReducer to strength reduce JSCallFunction nodes. · 55c07a8b
    bmeurer authored
    The JSCallReducer runs together with inlining and tries to strength
    reduce JSCallFunction nodes; currently it can fold
    Function.prototype.call and Function.prototype.apply (with arguments),
    and make it possible to inline across them.
    
    In the case of Function.prototype.apply with arguments we still have to
    leave the JSCreateArguments node in the graph because there might be
    other (frame state) uses. Once escape analysis is ready, it will take
    care of removing these nodes and adding appropriate transitions for the
    deoptimizer.
    
    R=jarin@chromium.org
    BUG=v8:4551
    LOG=n
    
    Review URL: https://codereview.chromium.org/1445513002
    
    Cr-Commit-Position: refs/heads/master@{#31979}
    55c07a8b
type-feedback-vector.h 17.7 KB