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

Unified Diff: test/inspector/debugger/wasm-stack.js

Issue 2493773003: [inspector] Introduce translation of wasm frames (Closed)
Patch Set: Very last-minute changes Created 4 years, 1 month 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/wasm-module.cc ('k') | test/inspector/debugger/wasm-stack-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/wasm-stack.js
diff --git a/test/inspector/debugger/wasm-stack.js b/test/inspector/debugger/wasm-stack.js
index a30d37f3204211b453e8afb6bdf85589b11c9d3e..56186c9568e15504924e2017a50d56b9ffae416c 100644
--- a/test/inspector/debugger/wasm-stack.js
+++ b/test/inspector/debugger/wasm-stack.js
@@ -11,13 +11,15 @@ var builder = new WasmModuleBuilder();
var imported_idx = builder.addImport("func", kSig_v_v);
-var call_imported_idx = builder.addFunction("call_func", kSig_v_v)
+var call_imported_idx = builder.addFunction('call_func', kSig_v_v)
.addBody([kExprCallFunction, imported_idx])
.index;
-builder.addFunction("main", kSig_v_v)
- .addBody([kExprCallFunction, call_imported_idx])
- .exportAs("main");
+// Open a block in order to make the positions more interesting...
+builder.addFunction('main', kSig_v_v)
+ .addBody(
+ [kExprBlock, kAstStmt, kExprCallFunction, call_imported_idx, kExprEnd])
+ .exportAs('main');
var module_bytes = builder.toArray();
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | test/inspector/debugger/wasm-stack-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698