• eholk's avatar
    Give v8 a chance to handle signals · 978f6fdb
    eholk authored
    V8 is starting to use guard regions and a signal handler to do out of bounds
    checks for WebAssembly. This means out of bounds accesses will trigger a
    segmentation fault, but V8 is able to recover from these and throw a Javascript
    exception instead. In order to do this, V8 needs to cooperate with any existing
    signal handlers.
    
    This CL modifies Chromium's signal handlers to call V8's TryHandleSignal
    function before taking any other actions so that V8 is able to recover from the
    faults it expects.
    
    BUG= chromium:722585, v8:5277
    
    Review-Url: https://codereview.chromium.org/2885053005
    Cr-Commit-Position: refs/heads/master@{#487549}
    978f6fdb
chrome_main_delegate.cc 45.4 KB