| Index: test/cctest/wasm/test-run-wasm-js.cc
|
| diff --git a/test/cctest/wasm/test-run-wasm-js.cc b/test/cctest/wasm/test-run-wasm-js.cc
|
| index 5fbd1fa97206a6221fa3e9d2a188201076d8e76f..9dfba74ecc173671fdccbdaf12ef9464546c1608 100644
|
| --- a/test/cctest/wasm/test-run-wasm-js.cc
|
| +++ b/test/cctest/wasm/test-run-wasm-js.cc
|
| @@ -152,7 +152,7 @@
|
| WasmFunctionCompiler t(sigs.i_i(), &module);
|
| uint32_t js_index =
|
| module.AddJsFunction(sigs.i_i(), "(function(a) { return a + 99; })");
|
| - BUILD(t, WASM_CALL_FUNCTION(js_index, WASM_GET_LOCAL(0)));
|
| + BUILD(t, WASM_CALL_FUNCTION1(js_index, WASM_GET_LOCAL(0)));
|
|
|
| Handle<JSFunction> jsfunc = module.WrapCode(t.CompileAndAdd());
|
|
|
| @@ -182,7 +182,8 @@
|
| ADD_CODE(code, WASM_F64(inputs.arg_d(i)));
|
| }
|
|
|
| - ADD_CODE(code, kExprCallFunction, static_cast<byte>(js_index));
|
| + ADD_CODE(code, kExprCallFunction, static_cast<byte>(num_params),
|
| + static_cast<byte>(js_index));
|
|
|
| size_t end = code.size();
|
| code.push_back(0);
|
| @@ -419,7 +420,7 @@
|
| ADD_CODE(code, WASM_GET_LOCAL(i));
|
| }
|
|
|
| - ADD_CODE(code, kExprCallFunction, 0);
|
| + ADD_CODE(code, kExprCallFunction, static_cast<byte>(num_params), 0);
|
|
|
| size_t end = code.size();
|
| code.push_back(0);
|
|
|