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

Unified Diff: test/mjsunit/regress/wasm/loop-stack-check.js

Issue 2416873002: [wasm] Do not generate a loop stack check upon a decoder error. (Closed)
Patch Set: comments addressed Created 4 years, 2 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/ast-decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/wasm/loop-stack-check.js
diff --git a/test/mjsunit/regress/wasm/regression-654377.js b/test/mjsunit/regress/wasm/loop-stack-check.js
similarity index 65%
copy from test/mjsunit/regress/wasm/regression-654377.js
copy to test/mjsunit/regress/wasm/loop-stack-check.js
index 871da72114f4ee7ba8ed260aed52e46f26b423ee..a76ad017d9c69812c09f7660afdaa2688e7709e6 100644
--- a/test/mjsunit/regress/wasm/regression-654377.js
+++ b/test/mjsunit/regress/wasm/loop-stack-check.js
@@ -9,14 +9,10 @@ load("test/mjsunit/wasm/wasm-module-builder.js");
(function() {
var builder = new WasmModuleBuilder();
- builder.addMemory(1, 1, false);
- builder.addFunction("foo", kSig_i_v)
+ builder.addFunction("foo", kSig_i_ii)
.addBody([
- kExprI32Const, 00,
- kExprMemorySize,
- kExprBrIf, 00,
- kExprMemorySize,
- kExprBr, 0xe7, 0xd2, 0xf2, 0xff, 0x1d
+ kExprLoop, 00,
+ kExprBrTable, 0xfb, 0xff, 0xff, 0xff,
])
.exportFunc();
assertThrows(function() { builder.instantiate(); });
« no previous file with comments | « src/wasm/ast-decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698