| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_COMPILER_GRAPH_BUILDER_H_ | 5 #ifndef V8_COMPILER_GRAPH_BUILDER_H_ |
| 6 #define V8_COMPILER_GRAPH_BUILDER_H_ | 6 #define V8_COMPILER_GRAPH_BUILDER_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 Node* dead_control(); | 122 Node* dead_control(); |
| 123 | 123 |
| 124 // TODO(mstarzinger): Use phase-local zone instead! | 124 // TODO(mstarzinger): Use phase-local zone instead! |
| 125 Zone* zone() const { return graph()->zone(); } | 125 Zone* zone() const { return graph()->zone(); } |
| 126 Isolate* isolate() const { return zone()->isolate(); } | 126 Isolate* isolate() const { return zone()->isolate(); } |
| 127 CommonOperatorBuilder* common() const { return common_; } | 127 CommonOperatorBuilder* common() const { return common_; } |
| 128 | 128 |
| 129 // Helper to wrap a Handle<T> into a Unique<T>. | 129 // Helper to wrap a Handle<T> into a Unique<T>. |
| 130 template <class T> | 130 template <class T> |
| 131 PrintableUnique<T> MakeUnique(Handle<T> object) { | 131 Unique<T> MakeUnique(Handle<T> object) { |
| 132 return PrintableUnique<T>::CreateUninitialized(zone(), object); | 132 return Unique<T>::CreateUninitialized(object); |
| 133 } | 133 } |
| 134 | 134 |
| 135 // Support for control flow builders. The concrete type of the environment | 135 // Support for control flow builders. The concrete type of the environment |
| 136 // depends on the graph builder, but environments themselves are not virtual. | 136 // depends on the graph builder, but environments themselves are not virtual. |
| 137 virtual Environment* CopyEnvironment(Environment* env); | 137 virtual Environment* CopyEnvironment(Environment* env); |
| 138 | 138 |
| 139 // Helper to indicate a node exits the function body. | 139 // Helper to indicate a node exits the function body. |
| 140 void UpdateControlDependencyToLeaveFunction(Node* exit); | 140 void UpdateControlDependencyToLeaveFunction(Node* exit); |
| 141 | 141 |
| 142 private: | 142 private: |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 StructuredGraphBuilder* builder_; | 220 StructuredGraphBuilder* builder_; |
| 221 Node* control_dependency_; | 221 Node* control_dependency_; |
| 222 Node* effect_dependency_; | 222 Node* effect_dependency_; |
| 223 NodeVector values_; | 223 NodeVector values_; |
| 224 }; | 224 }; |
| 225 } | 225 } |
| 226 } | 226 } |
| 227 } // namespace v8::internal::compiler | 227 } // namespace v8::internal::compiler |
| 228 | 228 |
| 229 #endif // V8_COMPILER_GRAPH_BUILDER_H__ | 229 #endif // V8_COMPILER_GRAPH_BUILDER_H__ |
| OLD | NEW |