Commit 99365554 authored by Ng Zhi An's avatar Ng Zhi An Committed by V8 LUCI CQ

[wasm-simd] Remove call descriptor lowering

Scalar lowering pass is removed, so if hardware does not support SIMD,
compilation should fail.

Bug: chromium:1202671,v8:11613
Change-Id: I4cafd244d066121dc716ea880529603d9013a05d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3179762Reviewed-by: 's avatarDeepti Gandluri <gdeepti@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77022}
parent d90c9c1f
......@@ -7938,7 +7938,8 @@ wasm::WasmCompilationResult ExecuteTurbofanWasmCompilation(
}
if (ContainsSimd(func_body.sig) && !CpuFeatures::SupportsWasmSimd128()) {
call_descriptor = GetI32WasmCallDescriptorForSimd(&zone, call_descriptor);
// Fail compilation if hardware does not support SIMD.
return wasm::WasmCompilationResult{};
}
Pipeline::GenerateCodeForWasmFunction(&info, env, wire_bytes_storage, mcgraph,
......
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