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

Unified Diff: test/mjsunit/wasm/stack.js

Issue 1896863003: [wasm] Binary 11: Module changes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | « test/mjsunit/wasm/params.js ('k') | test/mjsunit/wasm/stackwalk.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/stack.js
diff --git a/test/mjsunit/wasm/stack.js b/test/mjsunit/wasm/stack.js
index e169c38b689c83978e2ea411fef5f0aaf4c724c8..30481f9e495bb19ab3a91055ef76321dd43a75b1 100644
--- a/test/mjsunit/wasm/stack.js
+++ b/test/mjsunit/wasm/stack.js
@@ -36,24 +36,24 @@ function STACK() {
var builder = new WasmModuleBuilder();
-builder.addImport("func", [kAstStmt]);
+builder.addImport("func", kSig_v_v);
-builder.addFunction("main", [kAstStmt])
+builder.addFunction("main", kSig_v_v)
.addBody([kExprCallImport, kArity0, 0])
.exportAs("main");
-builder.addFunction("exec_unreachable", [kAstStmt])
+builder.addFunction("exec_unreachable", kSig_v_v)
.addBody([kExprUnreachable])
.exportAs("exec_unreachable");
// make this function unnamed, just to test also this case
-var mem_oob_func = builder.addFunction(undefined, [kAstStmt])
+var mem_oob_func = builder.addFunction(undefined, kSig_v_v)
// access the memory at offset -1
.addBody([kExprI32Const, 0x7f, kExprI32LoadMem8S, 0, 0])
.exportAs("mem_out_of_bounds");
// call the mem_out_of_bounds function, in order to have two WASM stack frames
-builder.addFunction("call_mem_out_of_bounds", [kAstStmt])
+builder.addFunction("call_mem_out_of_bounds", kSig_v_v)
.addBody([kExprCallFunction, kArity0, mem_oob_func.index])
.exportAs("call_mem_out_of_bounds");
« no previous file with comments | « test/mjsunit/wasm/params.js ('k') | test/mjsunit/wasm/stackwalk.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698