Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: src/compiler/graph-builder.cc

Issue 505133003: Introduce subclass wrappers for STL containers that make them a lot easier (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler/graph.cc ('k') | src/compiler/graph-reducer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/graph.cc ('k') | src/compiler/graph-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698