• bmeurer's avatar
    [turbofan] Improve fast case of JSInstanceOf lowering. · b5629a10
    bmeurer authored
    For O instanceof C, we only need to check the instance type while
    iterating the prototypes of O instead of checking both the instance
    type and the access check bit of the map. This is because we have
    the explicit range of "special object types", which include both
    JSProxy as well as the global object and proxy and all API objects
    that might have access checks or interceptors. Also restructure the
    loop exits somewhat to ensure that the branch cloning gets a chance
    to actually eliminate the bit materialization for the results.
    
    R=jarin@chromium.org
    
    Review-Url: https://codereview.chromium.org/2263273003
    Cr-Commit-Position: refs/heads/master@{#38860}
    b5629a10
js-typed-lowering.cc 88.3 KB