• bmeurer's avatar
    [turbofan] Introduce CheckedInt32Div and CheckedInt32Mod operators. · 03bde266
    bmeurer authored
    Consume Smi/Signed32 feedback for division and modulus and introduce
    appropriate checked operators. This is especially important for modulus
    where the Float64Mod operator is significantly slower than Int32Mod on
    most platforms. For division it's mostly important to propagate
    integerness, i.e. to avoid follow-up conversions between float and
    int32.
    
    Drive-by-fix: Use Int32Mod for the ModulusStub (and the bytecode handler)
    when the inputs are both Smi.
    
    R=jarin@chromium.org
    
    Review-Url: https://codereview.chromium.org/2138633002
    Cr-Commit-Position: refs/heads/master@{#37621}
    03bde266
code-stubs.cc 180 KB