• Michael Starzinger's avatar
    [wasm] Support reference types on interpreter entry. · 0bed5887
    Michael Starzinger authored
    This adds preliminary support for references types as argument or return
    values to functions that are redirected to the interpreter. The current
    interpreter entry stub remains unchanged, using one buffer area that is
    hidden from the GC. The corresponding {Runtime_WasmRunInterpreter} now
    correctly boxes/un-boxes reference types into handles. This switch to a
    handlified representation happens before any method that potentially
    triggers a GC is called.
    
    R=clemensh@chromium.org
    TEST=mjsunit/wasm/exceptions-anyref-interpreter
    BUG=v8:8091,v8:7581
    
    Change-Id: I41c766ed5ac877042d5964e72f3fd7df390c4e98
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1557147
    Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
    Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#60684}
    0bed5887
exceptions-anyref-interpreter.js 539 Bytes