• Michael Starzinger's avatar
    [wasm] Fix interpreter exception stack height change. · 866d43e6
    Michael Starzinger authored
    This fixes how the interpreter modifies the operand stack in the case
    calls with non-zero parameter or return count throw an exception. The
    interpreter raises the exception before arguments are popped and before
    results are pushed onto the stack. This makes the control transfer
    analysis fit this model. It also makes the tests trigger this aspect.
    
    R=clemensh@chromium.org
    TEST=cctest/test-run-wasm-exceptions
    BUG=v8:8091
    
    Change-Id: I001fc4bc0030393d3c97be3fa9425bc540575071
    Reviewed-on: https://chromium-review.googlesource.com/c/1445972
    Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
    Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#59212}
    866d43e6
wasm-opcodes.h 24 KB