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 1456850a02e7b4333cbcacf5fed0866afb1513b4..7231abaab6fc2c4f4144fb49e2d6bd66097f15f2 100644 |
--- a/test/cctest/wasm/test-run-wasm-js.cc |
+++ b/test/cctest/wasm/test-run-wasm-js.cc |
@@ -210,12 +210,13 @@ void RunJSSelectTest(int which) { |
{ |
std::vector<byte> code; |
- ADD_CODE(code, kExprCallFunction, static_cast<byte>(js_index)); |
for (int i = 0; i < num_params; i++) { |
ADD_CODE(code, WASM_F64(inputs.arg_d(i))); |
} |
+ ADD_CODE(code, kExprCallFunction, static_cast<byte>(js_index)); |
+ |
size_t end = code.size(); |
code.push_back(0); |
t.Build(&code[0], &code[end]); |
@@ -367,12 +368,13 @@ void RunJSSelectAlignTest(int num_args, int num_params) { |
// Build the calling code. |
std::vector<byte> code; |
- ADD_CODE(code, kExprCallFunction, 0); |
for (int i = 0; i < num_params; i++) { |
ADD_CODE(code, WASM_GET_LOCAL(i)); |
} |
+ ADD_CODE(code, kExprCallFunction, 0); |
+ |
size_t end = code.size(); |
code.push_back(0); |