• Thibaud Michaud's avatar
    [wasm][eh] Fix interpreter delegate in catch block · 159e440d
    Thibaud Michaud authored
    The recent change in the delegate semantics was incorrectly implemented
    in the interpreter. It only checked that the first opcode of the target
    block is a 'try': we also need to skip try blocks when we are already in
    their 'catch' or 'catch_all' sub-block.
    Use the exception_stack instead, since it already only contains indices
    of try blocks that haven't reached their handlers yet.
    
    R=clemensb@chromium.org
    
    Bug: chromium:1249306
    Change-Id: I15746b4bfabf3dcf04cfe0f2ad438c573cce65e7
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3168622
    Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
    Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#76919}
    159e440d
test-run-wasm-interpreter.cc 16.5 KB