| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 Graph* graph_; | 54 Graph* graph_; |
| 55 MaybeHandle<Code> code_; | 55 MaybeHandle<Code> code_; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 | 58 |
| 59 class GraphAndBuilders { | 59 class GraphAndBuilders { |
| 60 public: | 60 public: |
| 61 explicit GraphAndBuilders(Zone* zone) | 61 explicit GraphAndBuilders(Zone* zone) |
| 62 : main_graph_(new (zone) Graph(zone)), | 62 : main_graph_(new (zone) Graph(zone)), |
| 63 main_common_(zone), | 63 main_common_(zone), |
| 64 main_machine_(zone), | |
| 65 main_simplified_(zone) {} | 64 main_simplified_(zone) {} |
| 66 | 65 |
| 67 protected: | 66 protected: |
| 68 // Prefixed with main_ to avoid naiming conflicts. | 67 // Prefixed with main_ to avoid naiming conflicts. |
| 69 Graph* main_graph_; | 68 Graph* main_graph_; |
| 70 CommonOperatorBuilder main_common_; | 69 CommonOperatorBuilder main_common_; |
| 71 MachineOperatorBuilder main_machine_; | 70 MachineOperatorBuilder main_machine_; |
| 72 SimplifiedOperatorBuilder main_simplified_; | 71 SimplifiedOperatorBuilder main_simplified_; |
| 73 }; | 72 }; |
| 74 | 73 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 99 } | 98 } |
| 100 virtual ~GraphBuilderTester() {} | 99 virtual ~GraphBuilderTester() {} |
| 101 | 100 |
| 102 Factory* factory() const { return isolate()->factory(); } | 101 Factory* factory() const { return isolate()->factory(); } |
| 103 }; | 102 }; |
| 104 } // namespace compiler | 103 } // namespace compiler |
| 105 } // namespace internal | 104 } // namespace internal |
| 106 } // namespace v8 | 105 } // namespace v8 |
| 107 | 106 |
| 108 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ | 107 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ |
| OLD | NEW |