Commit bb5d5352 authored by evih's avatar evih Committed by Commit Bot

[wasm] Use generic wrapper only for not imported functions

Bug: v8:10701
Change-Id: I6e6d0c67889f29647ea225163cf051d3432da338
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2335058Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Reviewed-by: 's avatarThibaud Michaud <thibaudm@chromium.org>
Commit-Queue: Eva Herencsárová <evih@google.com>
Cr-Commit-Position: refs/heads/master@{#69214}
parent 3e3abae1
......@@ -275,7 +275,8 @@ JSToWasmWrapperCompilationUnit::JSToWasmWrapperCompilationUnit(
sig_(sig),
#if V8_TARGET_ARCH_X64
use_generic_wrapper_(FLAG_wasm_generic_wrapper &&
sig->parameters().empty() && sig->returns().empty()),
sig->parameters().empty() &&
sig->returns().empty() && !is_import),
#else
use_generic_wrapper_(false),
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment