• ahaas's avatar
    [wasm][arm] Add an additional stack check for functions with big frames. · 9f01d5c1
    ahaas authored
    Stack overflow checks are typically implemented as part of the TurboFan
    graph of a function. This means that the stack check code is executed
    after frame construction. When a frame is too big, though, there may not
    be enough space on the stack anymore to throw the stack overflow
    exception after frame construction. With this CL we do an additional
    stack check before frame construction for functions with big frames.
    
    As discussed offline with mstarzinger, I do this change currently only
    for WebAssembly.
    
    This CL contains only the changes for arm. I will do the other platforms
    in separate CLs.
    
    R=mstarzinger@chromium.org, v8-arm-ports@googlegroups.com
    
    Review-Url: https://codereview.chromium.org/2763593002
    Cr-Commit-Position: refs/heads/master@{#44065}
    9f01d5c1
runtime-wasm.cc 9.08 KB