Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: src/wasm/function-body-decoder.cc

Issue 2719483002: [V8] Rename SIMD Create methods and add initialization operators. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/wasm/function-body-decoder.cc
diff --git a/src/wasm/function-body-decoder.cc b/src/wasm/function-body-decoder.cc
index dc2f83b459d2cfc0966312661d5210a89a6f02cb..92a84ac27072fd7cf7a768bb2da26f4fe52ed41b 100644
--- a/src/wasm/function-body-decoder.cc
+++ b/src/wasm/function-body-decoder.cc
@@ -660,7 +660,13 @@ class WasmFullDecoder : public WasmDecoder {
case kWasmF64:
return builder_->Float64Constant(0);
case kWasmS128:
- return builder_->CreateS128Value(0);
+ return builder_->Simd128Zero();
+ case kWasmS1x4:
+ return builder_->Simd1x4Zero();
+ case kWasmS1x8:
+ return builder_->Simd1x8Zero();
+ case kWasmS1x16:
+ return builder_->Simd1x16Zero();
default:
UNREACHABLE();
return nullptr;
« src/compiler/wasm-compiler.cc ('K') | « src/compiler/x64/instruction-selector-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698