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

Unified Diff: test/mjsunit/wasm/debug-disassembly.js

Issue 2345593003: [wasm] Master CL for Binary 0xC changes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test failures and TSAN races. Created 4 years, 3 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
Index: test/mjsunit/wasm/debug-disassembly.js
diff --git a/test/mjsunit/wasm/debug-disassembly.js b/test/mjsunit/wasm/debug-disassembly.js
index 976098a8536ba427cc8860b06c6f659a509b2777..ac09d4af966941898143d05ade5eeef4959ec123 100644
--- a/test/mjsunit/wasm/debug-disassembly.js
+++ b/test/mjsunit/wasm/debug-disassembly.js
@@ -45,10 +45,10 @@ function listener(event, exec_state, event_data, data) {
assertTrue(!!line, "line number must occur in disassembly");
assertTrue(line.length > columnNr, "column number must be valid");
var expected_string;
- if (name.endsWith("/0")) {
+ if (name.endsWith("/1")) {
// Function 0 calls the imported function.
- expected_string = "kExprCallImport,";
- } else if (name.endsWith("/1")) {
+ expected_string = "kExprCallFunction,";
+ } else if (name.endsWith("/2")) {
// Function 1 calls function 0.
expected_string = "kExprCallFunction,";
} else {
@@ -76,7 +76,7 @@ var builder = new WasmModuleBuilder();
builder.addImport("func", kSig_v_v);
builder.addFunction("call_import", kSig_v_v)
- .addBody([kExprCallImport, kArity0, 0])
+ .addBody([kExprCallFunction, 0])
.exportFunc();
// Add a bit of unneccessary code to increase the byte offset.
@@ -87,8 +87,8 @@ builder.addFunction("call_call_import", kSig_v_v)
kExprI32Const, (-7 & 0x7f), kExprSetLocal, 1,
kExprGetLocal, 0, kExprGetLocal, 1, kExprI32Add, kExprI64UConvertI32,
kExprI64Const, 0,
- kExprI64Ne, kExprIf,
- kExprCallFunction, kArity0, 0,
+ kExprI64Ne, kExprIf, kAstStmt,
+ kExprCallFunction, 1,
kExprEnd
])
.exportFunc();
« no previous file with comments | « test/mjsunit/wasm/compiled-module-serialization.js ('k') | test/mjsunit/wasm/ensure-wasm-binaries-up-to-date.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698