• Victor Gomes's avatar
    [maglev] Preparation to support exception handlers · f6b4e6ce
    Victor Gomes authored
    This does not enable exception handlers yet, we still bail out in
    MaglevCompiler::Compile if we have an exception handler table in
    the bytecode array.
    
    This CL:
    - Generates code for exception handler blocks (which previously were
    set as dead code)
    - Creates a machinery for nodes to set the property CanThrow
    - Reads the exception handler table from the bytecode array and
    identifies if we're emitting nodes inside a try-block and for which
    handler we should jump in case of an exception
    - Generates an exception handler table for Maglev code
    
    
    Change-Id: Ifc9d4cb7440d3222f4fda48a86e4e482340b3b15
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3854061
    Commit-Queue: Victor Gomes <victorgomes@chromium.org>
    Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#82726}
    f6b4e6ce
maglev-basic-block.h 3.44 KB