Commit 4924d01f authored by evih's avatar evih Committed by Commit Bot

Use js-to-wasm generic wrapper for f32 and f64 params

Currently, the generic wrapper is used for i32, i64, f32 and f64 params
and 0 or 1 i32, i64, f32, f64 return value.

Bug: v8:10701
Change-Id: I3776de617aa4a384fdff5154ddad8ff405001a33
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2429266
Commit-Queue: Eva Herencsárová <evih@google.com>
Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Reviewed-by: 's avatarThibaud Michaud <thibaudm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70156}
parent 01a8acb6
This diff is collapsed.
......@@ -280,7 +280,8 @@ bool UseGenericWrapper(const FunctionSig* sig) {
return false;
}
for (ValueType type : sig->parameters()) {
if (type.kind() != ValueType::kI32 && type.kind() != ValueType::kI64) {
if (type.kind() != ValueType::kI32 && type.kind() != ValueType::kI64 &&
type.kind() != ValueType::kF32 && type.kind() != ValueType::kF64) {
return false;
}
}
......
This diff is collapsed.
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