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

Side by Side Diff: test/cctest/wasm/wasm-run-utils.h

Issue 1990923002: [wasm] Refactor WASM run tests to allow them to run in the interpreter too. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « test/cctest/wasm/test-run-wasm-asmjs.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WASM_RUN_UTILS_H 5 #ifndef WASM_RUN_UTILS_H
6 #define WASM_RUN_UTILS_H 6 #define WASM_RUN_UTILS_H
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 static size_t GetParameterCount(MachineType p0, MachineType p1, 651 static size_t GetParameterCount(MachineType p0, MachineType p1,
652 MachineType p2, MachineType p3) { 652 MachineType p2, MachineType p3) {
653 if (p0 == MachineType::None()) return 0; 653 if (p0 == MachineType::None()) return 0;
654 if (p1 == MachineType::None()) return 1; 654 if (p1 == MachineType::None()) return 1;
655 if (p2 == MachineType::None()) return 2; 655 if (p2 == MachineType::None()) return 2;
656 if (p3 == MachineType::None()) return 3; 656 if (p3 == MachineType::None()) return 3;
657 return 4; 657 return 4;
658 } 658 }
659 }; 659 };
660 660
661 // A macro to define tests that run in different engine configurations.
662 // Currently only supports compiled tests, but a future
663 // RunWasmInterpreted_##name version will allow each test to also run in the
664 // interpreter.
665 #define WASM_EXEC_TEST(name) \
666 void RunWasm_##name(); \
667 TEST(RunWasmCompiled_##name) { RunWasm_##name(); } \
ahaas 2016/05/18 15:43:26 Could we use shorter test names here? Maybe RunWas
668 void RunWasm_##name()
669
661 } // namespace 670 } // namespace
662 671
663 #endif 672 #endif
OLDNEW
« no previous file with comments | « test/cctest/wasm/test-run-wasm-asmjs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698