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(); |