• Victor Gomes's avatar
    [maglev] Support exception handlers · 04224d8c
    Victor Gomes authored
    At the start of the graph builder, we add merge states to exception
    handlers basic block with ExceptionPhis (normal phis with no input,
    but with an interpreter register "owner").
    
    Every Node that can throw, can also lazy deopt, so we use the
    lazy deopt IFS to recover the exception phi values in a trampoline
    before jumping to the exception catch block.
    
    Bug: v8:7700
    Change-Id: I62fe7f19ce5e89c3df645224ea62f9fc2798207c
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3865865Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Commit-Queue: Victor Gomes <victorgomes@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#82935}
    04224d8c
maglev-code-gen-state.h 6.06 KB