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

Unified Diff: test/mjsunit/wasm/compiled-module-serialization.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/compiled-module-management.js ('k') | test/mjsunit/wasm/debug-disassembly.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/compiled-module-serialization.js
diff --git a/test/mjsunit/wasm/compiled-module-serialization.js b/test/mjsunit/wasm/compiled-module-serialization.js
index aa36b7188209fe07f7697c59c96836f327f52880..00b9d19597074264d0dfd3eb575864019b32333d 100644
--- a/test/mjsunit/wasm/compiled-module-serialization.js
+++ b/test/mjsunit/wasm/compiled-module-serialization.js
@@ -17,13 +17,13 @@
builder.addFunction("main", kSig_i_i)
.addBody([
+ kExprI32Const, 1,
kExprGetLocal, 0,
kExprI32LoadMem, 0, 0,
- kExprI32Const, 1,
- kExprCallIndirect, signature,
+ kExprCallIndirect, kArity1, signature,
kExprGetLocal,0,
kExprI32LoadMem,0, 0,
- kExprCallFunction, 0,
+ kExprCallImport, kArity0, 0,
kExprI32Add
]).exportFunc();
@@ -32,8 +32,8 @@
builder.addFunction("_wrap_writer", signature)
.addBody([
kExprGetLocal, 0,
- kExprCallFunction, 1]);
- builder.appendToTable([2, 3]);
+ kExprCallImport, kArity1, 1]);
+ builder.appendToTable([0, 1]);
var module = new WebAssembly.Module(builder.toBuffer());
« no previous file with comments | « test/mjsunit/wasm/compiled-module-management.js ('k') | test/mjsunit/wasm/debug-disassembly.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698