[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/+/3179762
Reviewed-by: Deepti Gandluri <gdeepti@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77022}
This commit is contained in:
Ng Zhi An 2021-09-23 11:18:48 -07:00 committed by V8 LUCI CQ
parent d90c9c1f65
commit 9936555492

View File

@ -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,