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

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

Issue 663333003: [turbofan] use ZonePool in most places in the compiler pipeline a temp zone is used. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 years, 2 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-builder.h ('k') | src/compiler/instruction-selector.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"
11 #include "src/compiler/graph-visualizer.h" 11 #include "src/compiler/graph-visualizer.h"
12 #include "src/compiler/node-properties.h" 12 #include "src/compiler/node-properties.h"
13 #include "src/compiler/node-properties-inl.h" 13 #include "src/compiler/node-properties-inl.h"
14 #include "src/compiler/operator-properties.h" 14 #include "src/compiler/operator-properties.h"
15 #include "src/compiler/operator-properties-inl.h" 15 #include "src/compiler/operator-properties-inl.h"
16 16
17 namespace v8 { 17 namespace v8 {
18 namespace internal { 18 namespace internal {
19 namespace compiler { 19 namespace compiler {
20 20
21 21
22 StructuredGraphBuilder::StructuredGraphBuilder(Graph* graph, 22 StructuredGraphBuilder::StructuredGraphBuilder(Zone* local_zone, Graph* graph,
23 CommonOperatorBuilder* common) 23 CommonOperatorBuilder* common)
24 : GraphBuilder(graph), 24 : GraphBuilder(graph),
25 common_(common), 25 common_(common),
26 environment_(NULL), 26 environment_(NULL),
27 local_zone_(isolate()), 27 local_zone_(local_zone),
28 current_context_(NULL), 28 current_context_(NULL),
29 exit_control_(NULL) {} 29 exit_control_(NULL) {}
30 30
31 31
32 Node* StructuredGraphBuilder::MakeNode(const Operator* op, 32 Node* StructuredGraphBuilder::MakeNode(const Operator* op,
33 int value_input_count, 33 int value_input_count,
34 Node** value_inputs) { 34 Node** value_inputs) {
35 DCHECK(op->InputCount() == value_input_count); 35 DCHECK(op->InputCount() == value_input_count);
36 36
37 bool has_context = OperatorProperties::HasContextInput(op); 37 bool has_context = OperatorProperties::HasContextInput(op);
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 if (!dead_control_.is_set()) { 241 if (!dead_control_.is_set()) {
242 Node* dead_node = graph()->NewNode(common_->Dead()); 242 Node* dead_node = graph()->NewNode(common_->Dead());
243 dead_control_.set(dead_node); 243 dead_control_.set(dead_node);
244 return dead_node; 244 return dead_node;
245 } 245 }
246 return dead_control_.get(); 246 return dead_control_.get();
247 } 247 }
248 } 248 }
249 } 249 }
250 } // namespace v8::internal::compiler 250 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/graph-builder.h ('k') | src/compiler/instruction-selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698