| 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_GRAPH_BUILDER_TESTER_H_ | 5 #ifndef V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ |
| 6 #define V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ | 6 #define V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 #include "test/cctest/cctest.h" | 9 #include "test/cctest/cctest.h" |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 public SimplifiedGraphBuilder { | 45 public SimplifiedGraphBuilder { |
| 46 public: | 46 public: |
| 47 explicit GraphBuilderTester(MachineType p0 = kMachNone, | 47 explicit GraphBuilderTester(MachineType p0 = kMachNone, |
| 48 MachineType p1 = kMachNone, | 48 MachineType p1 = kMachNone, |
| 49 MachineType p2 = kMachNone, | 49 MachineType p2 = kMachNone, |
| 50 MachineType p3 = kMachNone, | 50 MachineType p3 = kMachNone, |
| 51 MachineType p4 = kMachNone) | 51 MachineType p4 = kMachNone) |
| 52 : GraphAndBuilders(main_zone()), | 52 : GraphAndBuilders(main_zone()), |
| 53 CallHelper<ReturnType>( | 53 CallHelper<ReturnType>( |
| 54 main_isolate(), | 54 main_isolate(), |
| 55 MakeMachineSignature( | 55 MakeMachineSignature(main_zone(), MachineTypeForC<ReturnType>(), p0, |
| 56 main_zone(), ReturnValueTraits<ReturnType>::Representation(), | 56 p1, p2, p3, p4)), |
| 57 p0, p1, p2, p3, p4)), | |
| 58 SimplifiedGraphBuilder(main_isolate(), main_graph_, &main_common_, | 57 SimplifiedGraphBuilder(main_isolate(), main_graph_, &main_common_, |
| 59 &main_machine_, &main_simplified_), | 58 &main_machine_, &main_simplified_), |
| 60 parameters_(main_zone()->template NewArray<Node*>(parameter_count())) { | 59 parameters_(main_zone()->template NewArray<Node*>(parameter_count())) { |
| 61 Begin(static_cast<int>(parameter_count())); | 60 Begin(static_cast<int>(parameter_count())); |
| 62 InitParameters(); | 61 InitParameters(); |
| 63 } | 62 } |
| 64 virtual ~GraphBuilderTester() {} | 63 virtual ~GraphBuilderTester() {} |
| 65 | 64 |
| 66 void GenerateCode() { Generate(); } | 65 void GenerateCode() { Generate(); } |
| 67 Node* Parameter(size_t index) { | 66 Node* Parameter(size_t index) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 } | 117 } |
| 119 return builder.Build(); | 118 return builder.Build(); |
| 120 } | 119 } |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 } // namespace compiler | 122 } // namespace compiler |
| 124 } // namespace internal | 123 } // namespace internal |
| 125 } // namespace v8 | 124 } // namespace v8 |
| 126 | 125 |
| 127 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ | 126 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ |
| OLD | NEW |