• Ben L. Titzer's avatar
    [asmjs] Implement asm.js stores in terms of regular branches. · ea6bcbc0
    Ben L. Titzer authored
    The CheckedLoad and CheckedStore machine operators are a form of
    macro node used in the backend of TurboFan. They express bounds-checked
    accesses to typed arrays in the asm.js style. While their semantics
    can be expressed as normal machine operations and branches in the
    graph, they were originally used to save compile time when graphs
    were very big. ASM->WASM->TF graphs are smaller.
    
    This CL implements asm.js bounds checks for stores using normal
    branch nodes and removes the need for CheckedStore, improving
    maintainability at some small cost to compilation time.
    
    R=mstarzinger@chromium.org
    CC=​bradnelson@chromium.org
    
    Bug: 
    Change-Id: I928689cfe33acac5a422f32cb014850ba09196f1
    Reviewed-on: https://chromium-review.googlesource.com/822471
    Commit-Queue: Ben Titzer <titzer@chromium.org>
    Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#50044}
    ea6bcbc0
wasm-compiler.cc 194 KB