• sigurds's avatar
    [turbofan] Pseudo-inline 'instanceof' · 45787501
    sigurds authored
    This patch extends the typed lowering with a specialized version of 'instanceof' that is used if the "class", i.e. the constructor function, is a known constant.
    
    Unittests check that replacement occurs as intended. Functional correctness is ensured by extensive unit tests covering instanceof already in the testsuite.
    
    TESTS=unittests/JSTypedLoweringTest.{JSInstanceOfSpecializationWithSmiCheck,JSInstanceOfSpecializationWithoutSmiCheck,JSInstanceOfNoSpecialization}
    
    Review URL: https://codereview.chromium.org/1407413014
    
    Cr-Commit-Position: refs/heads/master@{#31916}
    45787501
test-js-typed-lowering.cc 40.2 KB