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_CCTEST_COMPILER_CODEGEN_TESTER_H_ | 5 #ifndef V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ |
6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ | 6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/compiler/instruction-selector.h" | 10 #include "src/compiler/instruction-selector.h" |
11 #include "src/compiler/pipeline.h" | 11 #include "src/compiler/pipeline.h" |
| 12 #include "src/compiler/raw-machine-assembler.h" |
12 #include "src/simulator.h" | 13 #include "src/simulator.h" |
13 #include "test/cctest/compiler/call-tester.h" | 14 #include "test/cctest/compiler/call-tester.h" |
14 #include "test/unittests/compiler/raw-machine-assembler.h" | |
15 | 15 |
16 namespace v8 { | 16 namespace v8 { |
17 namespace internal { | 17 namespace internal { |
18 namespace compiler { | 18 namespace compiler { |
19 | 19 |
20 template <typename ReturnType> | 20 template <typename ReturnType> |
21 class RawMachineAssemblerTester : public HandleAndZoneScope, | 21 class RawMachineAssemblerTester : public HandleAndZoneScope, |
22 public CallHelper<ReturnType>, | 22 public CallHelper<ReturnType>, |
23 public RawMachineAssembler { | 23 public RawMachineAssembler { |
24 public: | 24 public: |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 } else { | 312 } else { |
313 CHECK_EQ(x, y); | 313 CHECK_EQ(x, y); |
314 } | 314 } |
315 } | 315 } |
316 | 316 |
317 } // namespace compiler | 317 } // namespace compiler |
318 } // namespace internal | 318 } // namespace internal |
319 } // namespace v8 | 319 } // namespace v8 |
320 | 320 |
321 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ | 321 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ |
OLD | NEW |