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

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

Issue 2794693002: [wasm] Gate SIMD load/store opcodes with the --wasm-simd-prototype flag. (Closed)
Patch Set: Fix copyright header Created 3 years, 9 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
« no previous file with comments | « no previous file | test/mjsunit/regress/wasm/regression-702460.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/function-body-decoder.cc
diff --git a/src/wasm/function-body-decoder.cc b/src/wasm/function-body-decoder.cc
index 2d25f7c3ddec79a332a04fa9140ba63673293000..f8e87d05970339eaa75a8fd68c4d1c2ca7dbe538 100644
--- a/src/wasm/function-body-decoder.cc
+++ b/src/wasm/function-body-decoder.cc
@@ -1158,6 +1158,7 @@ class WasmFullDecoder : public WasmDecoder {
len = DecodeLoadMem(kWasmF64, MachineType::Float64());
break;
case kExprS128LoadMem:
+ CHECK_PROTOTYPE_OPCODE(wasm_simd_prototype);
len = DecodeLoadMem(kWasmS128, MachineType::Simd128());
break;
case kExprI32StoreMem8:
@@ -1188,6 +1189,7 @@ class WasmFullDecoder : public WasmDecoder {
len = DecodeStoreMem(kWasmF64, MachineType::Float64());
break;
case kExprS128StoreMem:
+ CHECK_PROTOTYPE_OPCODE(wasm_simd_prototype);
len = DecodeStoreMem(kWasmS128, MachineType::Simd128());
break;
case kExprGrowMemory: {
« no previous file with comments | « no previous file | test/mjsunit/regress/wasm/regression-702460.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698