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

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

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation issues Created 5 years, 11 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
« no previous file with comments | « src/compiler/graph-builder.h ('k') | src/compiler/graph-inl.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/bit-vector.h" 7 #include "src/bit-vector.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/graph-visualizer.h" 9 #include "src/compiler/graph-visualizer.h"
10 #include "src/compiler/node.h" 10 #include "src/compiler/node.h"
11 #include "src/compiler/node-properties.h" 11 #include "src/compiler/node-properties.h"
12 #include "src/compiler/node-properties-inl.h" 12 #include "src/compiler/node-properties-inl.h"
13 #include "src/compiler/operator-properties.h" 13 #include "src/compiler/operator-properties.h"
14 14
15 namespace v8 { 15 namespace v8 {
16 namespace internal { 16 namespace internal {
17 namespace compiler { 17 namespace compiler {
18 18
19 19
20 StructuredGraphBuilder::StructuredGraphBuilder(Zone* local_zone, Graph* graph, 20 StructuredGraphBuilder::StructuredGraphBuilder(Isolate* isolate,
21 Zone* local_zone, Graph* graph,
21 CommonOperatorBuilder* common) 22 CommonOperatorBuilder* common)
22 : GraphBuilder(graph), 23 : GraphBuilder(isolate, graph),
23 common_(common), 24 common_(common),
24 environment_(NULL), 25 environment_(NULL),
25 local_zone_(local_zone), 26 local_zone_(local_zone),
26 input_buffer_size_(0), 27 input_buffer_size_(0),
27 input_buffer_(NULL), 28 input_buffer_(NULL),
28 current_context_(NULL), 29 current_context_(NULL),
29 exit_control_(NULL) { 30 exit_control_(NULL) {
30 EnsureInputBufferSize(kInputBufferSizeIncrement); 31 EnsureInputBufferSize(kInputBufferSizeIncrement);
31 } 32 }
32 33
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 if (!dead_control_.is_set()) { 297 if (!dead_control_.is_set()) {
297 Node* dead_node = graph()->NewNode(common_->Dead()); 298 Node* dead_node = graph()->NewNode(common_->Dead());
298 dead_control_.set(dead_node); 299 dead_control_.set(dead_node);
299 return dead_node; 300 return dead_node;
300 } 301 }
301 return dead_control_.get(); 302 return dead_control_.get();
302 } 303 }
303 } 304 }
304 } 305 }
305 } // namespace v8::internal::compiler 306 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/graph-builder.h ('k') | src/compiler/graph-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698