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

Unified Diff: test/mjsunit/regress/wasm/regression-702460.js

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 | « src/wasm/function-body-decoder.cc ('k') | test/mjsunit/wasm/wasm-constants.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/wasm/regression-702460.js
diff --git a/test/mjsunit/regress/wasm/regression-702460.js b/test/mjsunit/regress/wasm/regression-702460.js
new file mode 100644
index 0000000000000000000000000000000000000000..25ed5b506124eccd2d42a505a49d9abfd53d8738
--- /dev/null
+++ b/test/mjsunit/regress/wasm/regression-702460.js
@@ -0,0 +1,47 @@
+// Copyright 2017 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+load("test/mjsunit/wasm/wasm-constants.js");
+load("test/mjsunit/wasm/wasm-module-builder.js");
+
+(function() {
+"use asm";
+ var builder = new WasmModuleBuilder();
+ builder.addFunction("regression_702460", kSig_i_v)
+ .addBody([
+ kExprI32Const, 0x52,
+ kExprI32Const, 0x41,
+ kExprI32Const, 0x3c,
+ kExprI32Const, 0xdc, 0x01,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprSetLocal, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprGrowMemory, 0x00,
+ kExprS128LoadMem, 0x00, 0x40,
+ kExprUnreachable,
+ kExprGrowMemory, 0x00
+ ]).exportFunc();
+ assertThrows(() => builder.instantiate());
+})();
« no previous file with comments | « src/wasm/function-body-decoder.cc ('k') | test/mjsunit/wasm/wasm-constants.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698