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 #include "src/compiler/graph-builder.h" | 5 #include "src/compiler/graph-builder.h" |
6 | 6 |
7 #include "src/compiler.h" | 7 #include "src/compiler.h" |
8 #include "src/compiler/generic-graph.h" | 8 #include "src/compiler/generic-graph.h" |
9 #include "src/compiler/generic-node.h" | 9 #include "src/compiler/generic-node.h" |
10 #include "src/compiler/generic-node-inl.h" | 10 #include "src/compiler/generic-node-inl.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 Environment* env) { | 97 Environment* env) { |
98 return new (zone()) Environment(*env); | 98 return new (zone()) Environment(*env); |
99 } | 99 } |
100 | 100 |
101 | 101 |
102 StructuredGraphBuilder::Environment::Environment( | 102 StructuredGraphBuilder::Environment::Environment( |
103 StructuredGraphBuilder* builder, Node* control_dependency) | 103 StructuredGraphBuilder* builder, Node* control_dependency) |
104 : builder_(builder), | 104 : builder_(builder), |
105 control_dependency_(control_dependency), | 105 control_dependency_(control_dependency), |
106 effect_dependency_(control_dependency), | 106 effect_dependency_(control_dependency), |
107 values_(NodeVector::allocator_type(zone())) {} | 107 values_(zone()) {} |
108 | 108 |
109 | 109 |
110 StructuredGraphBuilder::Environment::Environment(const Environment& copy) | 110 StructuredGraphBuilder::Environment::Environment(const Environment& copy) |
111 : builder_(copy.builder()), | 111 : builder_(copy.builder()), |
112 control_dependency_(copy.control_dependency_), | 112 control_dependency_(copy.control_dependency_), |
113 effect_dependency_(copy.effect_dependency_), | 113 effect_dependency_(copy.effect_dependency_), |
114 values_(copy.values_) {} | 114 values_(copy.values_) {} |
115 | 115 |
116 | 116 |
117 void StructuredGraphBuilder::Environment::Merge(Environment* other) { | 117 void StructuredGraphBuilder::Environment::Merge(Environment* other) { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 if (!dead_control_.is_set()) { | 242 if (!dead_control_.is_set()) { |
243 Node* dead_node = graph()->NewNode(common_->Dead()); | 243 Node* dead_node = graph()->NewNode(common_->Dead()); |
244 dead_control_.set(dead_node); | 244 dead_control_.set(dead_node); |
245 return dead_node; | 245 return dead_node; |
246 } | 246 } |
247 return dead_control_.get(); | 247 return dead_control_.get(); |
248 } | 248 } |
249 } | 249 } |
250 } | 250 } |
251 } // namespace v8::internal::compiler | 251 } // namespace v8::internal::compiler |
OLD | NEW |