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/pipeline.h" | 10 #include "src/compiler/pipeline.h" |
11 #include "src/compiler/raw-machine-assembler.h" | 11 #include "src/compiler/raw-machine-assembler.h" |
12 #include "src/compiler/structured-machine-assembler.h" | |
13 #include "src/simulator.h" | 12 #include "src/simulator.h" |
14 #include "test/cctest/compiler/call-tester.h" | 13 #include "test/cctest/compiler/call-tester.h" |
| 14 #include "test/cctest/compiler/structured-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 MachineAssembler> | 20 template <typename MachineAssembler> |
21 class MachineAssemblerTester : public HandleAndZoneScope, | 21 class MachineAssemblerTester : public HandleAndZoneScope, |
22 public CallHelper, | 22 public CallHelper, |
23 public MachineAssembler { | 23 public MachineAssembler { |
24 public: | 24 public: |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 | 347 |
348 void Run(RawMachineAssemblerTester<int32_t>* m); | 348 void Run(RawMachineAssemblerTester<int32_t>* m); |
349 void RunLeft(RawMachineAssemblerTester<int32_t>* m); | 349 void RunLeft(RawMachineAssemblerTester<int32_t>* m); |
350 void RunRight(RawMachineAssemblerTester<int32_t>* m); | 350 void RunRight(RawMachineAssemblerTester<int32_t>* m); |
351 }; | 351 }; |
352 } // namespace compiler | 352 } // namespace compiler |
353 } // namespace internal | 353 } // namespace internal |
354 } // namespace v8 | 354 } // namespace v8 |
355 | 355 |
356 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ | 356 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ |
OLD | NEW |