v8/test
Ben L. Titzer 15925e5cc6 [wasm] Fix import of reexported API function
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: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60031}
2019-03-05 14:34:57 +00:00
..
benchmarks [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
cctest [heap] Introduce AllocationType and use it in Heap::AllocateRaw. 2019-03-05 12:29:30 +00:00
common Reland "[wasm] add wasm atomic wait callback test" 2019-02-20 05:17:07 +00:00
debugger [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
fuzzer [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
inspector [modules] Make debug-scopes handle synthetic variables 2019-03-04 15:06:02 +00:00
intl [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
js-perf-test [js-perf-test] Add TypedArray#filter micro-benchmark 2019-03-04 14:40:31 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message [fni] Mark computed props as computed, not anonymous function 2019-03-01 20:52:03 +00:00
mjsunit [wasm] Fix import of reexported API function 2019-03-05 14:34:57 +00:00
mkgrokdump [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
mozilla [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
preparser [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
test262 [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
torque [torque] Simplify class and struct construction 2019-02-27 17:36:37 +00:00
unittests [heap] Decouple the max semi-space size from the page size 2019-03-05 12:12:20 +00:00
wasm-js [testrunner] handle timeout param in file 2019-02-27 17:49:17 +00:00
wasm-spec-tests [wasm] Update spec tests 2019-02-27 10:42:02 +00:00
webkit [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
BUILD.gn Add target for common test headers 2019-02-12 09:30:01 +00:00
OWNERS Make tmrts an infra OWNER 2019-02-15 09:02:24 +00:00