| Index: test/mjsunit/wasm/indirect-calls.js
|
| diff --git a/test/mjsunit/wasm/indirect-calls.js b/test/mjsunit/wasm/indirect-calls.js
|
| index 325868743143d3e94cd4dcd3d844f2f303ad2782..cae36b75991fef1c15541a359b4d7986d41db2b5 100644
|
| --- a/test/mjsunit/wasm/indirect-calls.js
|
| +++ b/test/mjsunit/wasm/indirect-calls.js
|
| @@ -14,18 +14,21 @@ var module = (function () {
|
| builder.addImport("add", sig_index);
|
| builder.addFunction("add", sig_index)
|
| .addBody([
|
| - kExprCallImport, 0, kExprGetLocal, 0, kExprGetLocal, 1
|
| + kExprGetLocal, 0, kExprGetLocal, 1, kExprCallImport, kArity2, 0
|
| ]);
|
| builder.addFunction("sub", sig_index)
|
| .addBody([
|
| - kExprI32Sub, kExprGetLocal, 0, kExprGetLocal, 1
|
| + kExprGetLocal, 0, // --
|
| + kExprGetLocal, 1, // --
|
| + kExprI32Sub, // --
|
| ]);
|
| builder.addFunction("main", [kAstI32, kAstI32, kAstI32, kAstI32])
|
| .addBody([
|
| - kExprCallIndirect, sig_index,
|
| kExprGetLocal, 0,
|
| kExprGetLocal, 1,
|
| - kExprGetLocal, 2])
|
| + kExprGetLocal, 2,
|
| + kExprCallIndirect, kArity2, sig_index
|
| + ])
|
| .exportFunc()
|
| builder.appendToFunctionTable([0, 1, 2]);
|
|
|
|
|