• bmeurer's avatar
    [turbofan] Optimize typeof o === "object" checks. · 695026d4
    bmeurer authored
    Properly recognize and optimize typeof in a strict/abstract equality
    comparison with the string literal "object" to a check for Null or a
    check of the map for Receiver instance type and non-callable.
    
    Drive-by-fix: Also optimize typeof o === "function" somewhat, now that
    we have the new types for Callable and NonCallable.
    
    R=jarin@chromium.org
    BUG=v8:5267
    
    Review-Url: https://codereview.chromium.org/2646763003
    Cr-Commit-Position: refs/heads/master@{#42501}
    695026d4
simplified-operator.cc 36.4 KB