OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ | 5 #ifndef V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ |
6 #define V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ | 6 #define V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "src/base/utils/random-number-generator.h" | 11 #include "src/base/utils/random-number-generator.h" |
12 #include "src/compiler/instruction-selector.h" | 12 #include "src/compiler/instruction-selector.h" |
13 #include "src/compiler/raw-machine-assembler.h" | 13 #include "src/compiler/raw-machine-assembler.h" |
14 #include "src/macro-assembler.h" | 14 #include "src/macro-assembler.h" |
15 #include "test/unittests/test-utils.h" | 15 #include "test/unittests/test-utils.h" |
16 | 16 |
17 namespace v8 { | 17 namespace v8 { |
18 namespace internal { | 18 namespace internal { |
19 namespace compiler { | 19 namespace compiler { |
20 | 20 |
21 class InstructionSelectorTest : public TestWithContext, public TestWithZone { | 21 class InstructionSelectorTest : public TestWithContext, public TestWithZone { |
22 public: | 22 public: |
23 InstructionSelectorTest(); | 23 InstructionSelectorTest(); |
24 virtual ~InstructionSelectorTest(); | 24 ~InstructionSelectorTest() OVERRIDE; |
25 | 25 |
26 base::RandomNumberGenerator* rng() { return &rng_; } | 26 base::RandomNumberGenerator* rng() { return &rng_; } |
27 | 27 |
28 class Stream; | 28 class Stream; |
29 | 29 |
30 enum StreamBuilderMode { | 30 enum StreamBuilderMode { |
31 kAllInstructions, | 31 kAllInstructions, |
32 kTargetInstructions, | 32 kTargetInstructions, |
33 kAllExceptNopInstructions | 33 kAllExceptNopInstructions |
34 }; | 34 }; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 template <typename T> | 232 template <typename T> |
233 class InstructionSelectorTestWithParam | 233 class InstructionSelectorTestWithParam |
234 : public InstructionSelectorTest, | 234 : public InstructionSelectorTest, |
235 public ::testing::WithParamInterface<T> {}; | 235 public ::testing::WithParamInterface<T> {}; |
236 | 236 |
237 } // namespace compiler | 237 } // namespace compiler |
238 } // namespace internal | 238 } // namespace internal |
239 } // namespace v8 | 239 } // namespace v8 |
240 | 240 |
241 #endif // V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ | 241 #endif // V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ |
OLD | NEW |