| 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_SIMPLIFIED_GRAPH_BUILDER_H_ | 5 #ifndef V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ |
| 6 #define V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ | 6 #define V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ |
| 7 | 7 |
| 8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
| 9 #include "src/compiler/graph-builder.h" | 9 #include "src/compiler/graph-builder.h" |
| 10 #include "src/compiler/machine-node-factory.h" | 10 #include "src/compiler/machine-node-factory.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 CommonOperatorBuilder* common() const { | 46 CommonOperatorBuilder* common() const { |
| 47 return StructuredGraphBuilder::common(); | 47 return StructuredGraphBuilder::common(); |
| 48 } | 48 } |
| 49 MachineOperatorBuilder* machine() const { return machine_; } | 49 MachineOperatorBuilder* machine() const { return machine_; } |
| 50 SimplifiedOperatorBuilder* simplified() const { return simplified_; } | 50 SimplifiedOperatorBuilder* simplified() const { return simplified_; } |
| 51 Environment* environment() { | 51 Environment* environment() { |
| 52 return reinterpret_cast<Environment*>(environment_internal()); | 52 return reinterpret_cast<Environment*>(environment_internal()); |
| 53 } | 53 } |
| 54 | 54 |
| 55 // Initialize graph and builder. | 55 // Initialize graph and builder. |
| 56 void Begin(); | 56 void Begin(int num_parameters); |
| 57 | 57 |
| 58 void Return(Node* value); | 58 void Return(Node* value); |
| 59 | 59 |
| 60 // Close the graph. | 60 // Close the graph. |
| 61 void End(); | 61 void End(); |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 MachineOperatorBuilder* machine_; | 64 MachineOperatorBuilder* machine_; |
| 65 SimplifiedOperatorBuilder* simplified_; | 65 SimplifiedOperatorBuilder* simplified_; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace compiler | 68 } // namespace compiler |
| 69 } // namespace internal | 69 } // namespace internal |
| 70 } // namespace v8 | 70 } // namespace v8 |
| 71 | 71 |
| 72 #endif // V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ | 72 #endif // V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ |
| OLD | NEW |