• bmeurer's avatar
    [turbofan] Also optimize instanceof with bound functions. · 719d6c1d
    bmeurer authored
    For bound functions on the right-hand side of instanceof we can
    constant-fold to the actual [[BoundTargetFunction]], actually
    instance OrdinaryHasInstance. Move the Function.prototype[@@hasInstance]
    reduction up to the JSCallReducer to allow this optimization to become
    effective (and also enable other optimizations).
    
    BUG=v8:5267
    R=jarin@chromium.org
    
    Review-Url: https://codereview.chromium.org/2537763002
    Cr-Commit-Position: refs/heads/master@{#41352}
    719d6c1d
js-call-reducer.h 2.17 KB