• bmeurer's avatar
    [turbofan] Optimize silent hole checks on legacy const context slots. · 35f6c0fd
    bmeurer authored
    Currently we always generate a diamond in the graph builder for every
    legacy const context slot, which we cannot get rid of until late control
    reduction, even if we know after context specialization that the slot is
    already initialized.
    
    Now we generate a select instead, which the CommonOperatorReducer
    happily removes during typed lowering. This greatly speeds up asm.js
    code generated by Emscripten with the new POINTER_MASKING mode.
    
    R=mstarzinger@chromium.org
    
    Review URL: https://codereview.chromium.org/1072353002
    
    Cr-Commit-Position: refs/heads/master@{#27739}
    35f6c0fd
pointer-masking.js 861 Bytes