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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // A class that just passes node creation on to the Graph. | 22 // A class that just passes node creation on to the Graph. |
23 class DirectGraphBuilder : public GraphBuilder { | 23 class DirectGraphBuilder : public GraphBuilder { |
24 public: | 24 public: |
25 DirectGraphBuilder(Isolate* isolate, Graph* graph) | 25 DirectGraphBuilder(Isolate* isolate, Graph* graph) |
26 : GraphBuilder(isolate, graph) {} | 26 : GraphBuilder(isolate, graph) {} |
27 virtual ~DirectGraphBuilder() {} | 27 virtual ~DirectGraphBuilder() {} |
28 | 28 |
29 protected: | 29 protected: |
30 virtual Node* MakeNode(const Operator* op, int value_input_count, | 30 virtual Node* MakeNode(const Operator* op, int value_input_count, |
31 Node** value_inputs, bool incomplete) FINAL { | 31 Node** value_inputs, bool incomplete) final { |
32 return graph()->NewNode(op, value_input_count, value_inputs, incomplete); | 32 return graph()->NewNode(op, value_input_count, value_inputs, incomplete); |
33 } | 33 } |
34 }; | 34 }; |
35 | 35 |
36 | 36 |
37 class MachineCallHelper : public CallHelper { | 37 class MachineCallHelper : public CallHelper { |
38 public: | 38 public: |
39 MachineCallHelper(Isolate* isolate, MachineSignature* machine_sig); | 39 MachineCallHelper(Isolate* isolate, MachineSignature* machine_sig); |
40 | 40 |
41 Node* Parameter(size_t index); | 41 Node* Parameter(size_t index); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 101 } |
102 virtual ~GraphBuilderTester() {} | 102 virtual ~GraphBuilderTester() {} |
103 | 103 |
104 Factory* factory() const { return isolate()->factory(); } | 104 Factory* factory() const { return isolate()->factory(); } |
105 }; | 105 }; |
106 } // namespace compiler | 106 } // namespace compiler |
107 } // namespace internal | 107 } // namespace internal |
108 } // namespace v8 | 108 } // namespace v8 |
109 | 109 |
110 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ | 110 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ |
OLD | NEW |