• Ben L. Titzer's avatar
    [wasm] Fix import of reexported API function · 15925e5c
    Ben L. Titzer authored
    When a function is exported from a WebAssembly module, it is implicitly
    wrapped in a WasmExportedFunction. For functions that were imports into
    this module, the exported function appears like other Wasm function,
    e.g. can be used in tables. When that exported function was re-imported
    to another module, the logic to compute the import kind mistakenly
    assumed the exported function was indeed originally a Wasm function
    and tried to call it directly, instead of treating it like an imported
    JS function.
    
    R=ahaas@chromium.org
    BUG=v8:8947
    
    Change-Id: Ib8fac81fbe0f49c50cfbfb2e69d9bb60aef91fcc
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1503632
    Commit-Queue: Ben Titzer <titzer@chromium.org>
    Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#60031}
    15925e5c
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...