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

Unified Diff: test/mjsunit/wasm/indirect-calls.js

Issue 2440953002: [wasm] Binary 0xD: update encoding of opcodes, types, and add immediates. (Closed)
Patch Set: Created 4 years, 2 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/indirect-calls.js
diff --git a/test/mjsunit/wasm/indirect-calls.js b/test/mjsunit/wasm/indirect-calls.js
index b07ce0d58a8448de9058438318181b5da9c98698..56f2afb8108058192c8d8254396ccd03f590342b 100644
--- a/test/mjsunit/wasm/indirect-calls.js
+++ b/test/mjsunit/wasm/indirect-calls.js
@@ -27,7 +27,7 @@ var module = (function () {
kExprGetLocal, 1,
kExprGetLocal, 2,
kExprGetLocal, 0,
- kExprCallIndirect, sig_index
+ kExprCallIndirect, kTableZero, sig_index
])
.exportFunc()
builder.appendToTable([1, 2, 3]);
@@ -71,7 +71,7 @@ module = (function () {
kExprGetLocal, 1,
kExprGetLocal, 2,
kExprGetLocal, 0,
- kExprCallIndirect, sig_i_ii
+ kExprCallIndirect, kTableZero, sig_i_ii
])
.exportFunc()
builder.appendToTable([mul.index, add.index, popcnt.index, main.index]);
@@ -112,7 +112,7 @@ module = (function () {
kExprI32Const, 33, // --
kExprGetLocal, 0, // --
kExprGetLocal, 1, // --
- kExprCallIndirect, 0]) // --
+ kExprCallIndirect, kTableZero, 0]) // --
.exportAs("main");
builder.appendToTable([mul.index, add.index, sub.index]);
@@ -156,7 +156,7 @@ assertTraps(kTrapFuncInvalid, "module.exports.main(12, 3)");
kExprI32Const, 33, // --
kExprGetLocal, 0, // --
kExprGetLocal, 1, // --
- kExprCallIndirect, 0]) // --
+ kExprCallIndirect, kTableZero, 0]) // --
.exportAs("main");
builder.setFunctionTableLength(length);
@@ -210,7 +210,7 @@ assertTraps(kTrapFuncInvalid, "module.exports.main(12, 3)");
kExprI32Const, 33, // --
kExprGetLocal, 0, // --
kExprGetLocal, 1, // --
- kExprCallIndirect, 0]) // --
+ kExprCallIndirect, kTableZero, 0]) // --
.exportAs("main");
builder.setFunctionTableLength(10);

Powered by Google App Engine
This is Rietveld 408576698