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

Unified Diff: test/mjsunit/wasm/import-table.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
« no previous file with comments | « test/mjsunit/wasm/grow-memory.js ('k') | test/mjsunit/wasm/incrementer.wasm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/import-table.js
diff --git a/test/mjsunit/wasm/import-table.js b/test/mjsunit/wasm/import-table.js
index aa836d6eacd5949c77ea6d4efafcc6c9fff4fe7a..8680addf615566166bc15a4afc470957b99fa9e4 100644
--- a/test/mjsunit/wasm/import-table.js
+++ b/test/mjsunit/wasm/import-table.js
@@ -16,7 +16,7 @@
.addBody([
kExprGetLocal, 0, // --
kExprGetLocal, 1, // --
- kExprCallFunction, 0]) // --
+ kExprCallImport, 2, 0]) // --
.exportAs("main");
var main = builder.instantiate({func: func}).exports.main;
@@ -191,7 +191,7 @@
.addBody([
kExprGetLocal, 0, // --
kExprGetLocal, 1, // --
- kExprCallFunction, 0, // --
+ kExprCallImport, 2, 0, // --
kExprI8Const, 99, // --
])
.exportFunc("main");
@@ -246,9 +246,9 @@
builder.addFunction("main", makeSig_r_x(kAstF64, kAstF64))
.addBody([
kExprI8Const, 97, // --
- kExprCallFunction, 0, // --
+ kExprCallImport, kArity1, 0, // --
kExprGetLocal, 0, // --
- kExprCallFunction, 1 // --
+ kExprCallImport, kArity1, 1 // --
])
.exportFunc();
@@ -270,8 +270,8 @@
builder.addImport("bar", kSig_i);
builder.addFunction("main", kSig_i)
.addBody([
- kExprCallFunction, 0, // --
- kExprCallFunction, 1, // --
+ kExprCallImport, kArity0, 0, // --
+ kExprCallImport, kArity0, 1, // --
kExprI32Add, // --
]) // --
.exportFunc();
« no previous file with comments | « test/mjsunit/wasm/grow-memory.js ('k') | test/mjsunit/wasm/incrementer.wasm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698