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

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

Issue 2361053004: Revert of [wasm] Master CL for Binary 0xC changes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 ac09d4af966941898143d05ade5eeef4959ec123..976098a8536ba427cc8860b06c6f659a509b2777 100644
--- a/test/mjsunit/wasm/debug-disassembly.js
+++ b/test/mjsunit/wasm/debug-disassembly.js
@@ -45,10 +45,10 @@
assertTrue(!!line, "line number must occur in disassembly");
assertTrue(line.length > columnNr, "column number must be valid");
var expected_string;
- if (name.endsWith("/1")) {
+ if (name.endsWith("/0")) {
// Function 0 calls the imported function.
- expected_string = "kExprCallFunction,";
- } else if (name.endsWith("/2")) {
+ expected_string = "kExprCallImport,";
+ } else if (name.endsWith("/1")) {
// Function 1 calls function 0.
expected_string = "kExprCallFunction,";
} else {
@@ -76,7 +76,7 @@
builder.addImport("func", kSig_v_v);
builder.addFunction("call_import", kSig_v_v)
- .addBody([kExprCallFunction, 0])
+ .addBody([kExprCallImport, kArity0, 0])
.exportFunc();
// Add a bit of unneccessary code to increase the byte offset.
@@ -87,8 +87,8 @@
kExprI32Const, (-7 & 0x7f), kExprSetLocal, 1,
kExprGetLocal, 0, kExprGetLocal, 1, kExprI32Add, kExprI64UConvertI32,
kExprI64Const, 0,
- kExprI64Ne, kExprIf, kAstStmt,
- kExprCallFunction, 1,
+ kExprI64Ne, kExprIf,
+ kExprCallFunction, kArity0, 0,
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