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), |
64 main_simplified_(zone) {} | 65 main_simplified_(zone) {} |
65 | 66 |
66 protected: | 67 protected: |
67 // Prefixed with main_ to avoid naiming conflicts. | 68 // Prefixed with main_ to avoid naiming conflicts. |
68 Graph* main_graph_; | 69 Graph* main_graph_; |
69 CommonOperatorBuilder main_common_; | 70 CommonOperatorBuilder main_common_; |
70 MachineOperatorBuilder main_machine_; | 71 MachineOperatorBuilder main_machine_; |
71 SimplifiedOperatorBuilder main_simplified_; | 72 SimplifiedOperatorBuilder main_simplified_; |
72 }; | 73 }; |
73 | 74 |
(...skipping 24 matching lines...) Expand all Loading... |
98 } | 99 } |
99 virtual ~GraphBuilderTester() {} | 100 virtual ~GraphBuilderTester() {} |
100 | 101 |
101 Factory* factory() const { return isolate()->factory(); } | 102 Factory* factory() const { return isolate()->factory(); } |
102 }; | 103 }; |
103 } // namespace compiler | 104 } // namespace compiler |
104 } // namespace internal | 105 } // namespace internal |
105 } // namespace v8 | 106 } // namespace v8 |
106 | 107 |
107 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ | 108 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ |
OLD | NEW |