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

Unified Diff: test/mjsunit/wasm/wasm-constants.js

Issue 2256603002: [wasm] Add stack checks at the beginning of each function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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
« src/compiler/wasm-compiler.cc ('K') | « test/mjsunit/wasm/stack.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/wasm-constants.js
diff --git a/test/mjsunit/wasm/wasm-constants.js b/test/mjsunit/wasm/wasm-constants.js
index 04ac0c9592807a8c15ea4ba4c457d1660d515237..7222d0d3ba7c0f5a2fa27a765f298f9b998b272b 100644
--- a/test/mjsunit/wasm/wasm-constants.js
+++ b/test/mjsunit/wasm/wasm-constants.js
@@ -317,6 +317,7 @@ var kTrapFloatUnrepresentable = 5;
var kTrapFuncInvalid = 6;
var kTrapFuncSigMismatch = 7;
var kTrapInvalidIndex = 8;
+var kTrapStackOverflow = 9;
var kTrapMsgs = [
"unreachable",
@@ -327,7 +328,8 @@ var kTrapMsgs = [
"integer result unrepresentable",
"invalid function",
"function signature mismatch",
- "invalid index into function table"
+ "invalid index into function table",
+ "Maximum WebAssembly call stack size exceeded"
];
function assertTraps(trap, code) {
« src/compiler/wasm-compiler.cc ('K') | « test/mjsunit/wasm/stack.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698