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

Side by Side Diff: src/compiler/schedule.cc

Issue 646393002: [turbofan] remove some of the dependency of Instruction on Schedule (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/schedule.h ('k') | src/compiler/x64/code-generator-x64.cc » ('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/node.h" 5 #include "src/compiler/node.h"
6 #include "src/compiler/node-properties.h" 6 #include "src/compiler/node-properties.h"
7 #include "src/compiler/node-properties-inl.h" 7 #include "src/compiler/node-properties-inl.h"
8 #include "src/compiler/schedule.h" 8 #include "src/compiler/schedule.h"
9 #include "src/ostreams.h" 9 #include "src/ostreams.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 BasicBlock::BasicBlock(Zone* zone, Id id) 15 BasicBlock::BasicBlock(Zone* zone, Id id)
16 : rpo_number_(-1), 16 : rpo_number_(-1),
17 dominator_(NULL), 17 dominator_(NULL),
18 loop_header_(NULL), 18 loop_header_(NULL),
19 loop_depth_(0), 19 loop_depth_(0),
20 loop_end_(-1), 20 loop_end_(-1),
21 code_start_(-1),
22 code_end_(-1),
23 deferred_(false),
24 control_(kNone), 21 control_(kNone),
25 control_input_(NULL), 22 control_input_(NULL),
26 nodes_(zone), 23 nodes_(zone),
27 successors_(zone), 24 successors_(zone),
28 predecessors_(zone), 25 predecessors_(zone),
29 id_(id) {} 26 id_(id) {}
30 27
31 28
32 bool BasicBlock::LoopContains(BasicBlock* block) const { 29 bool BasicBlock::LoopContains(BasicBlock* block) const {
33 // RPO numbers must be initialized. 30 // RPO numbers must be initialized.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 76
80 77
81 void BasicBlock::set_rpo_number(int32_t rpo_number) { 78 void BasicBlock::set_rpo_number(int32_t rpo_number) {
82 rpo_number_ = rpo_number; 79 rpo_number_ = rpo_number;
83 } 80 }
84 81
85 82
86 void BasicBlock::set_loop_end(int32_t loop_end) { loop_end_ = loop_end; } 83 void BasicBlock::set_loop_end(int32_t loop_end) { loop_end_ = loop_end; }
87 84
88 85
89 void BasicBlock::set_code_start(int32_t code_start) {
90 code_start_ = code_start;
91 }
92
93
94 void BasicBlock::set_code_end(int32_t code_end) { code_end_ = code_end; }
95
96
97 void BasicBlock::set_loop_header(BasicBlock* loop_header) { 86 void BasicBlock::set_loop_header(BasicBlock* loop_header) {
98 loop_header_ = loop_header; 87 loop_header_ = loop_header;
99 } 88 }
100 89
101 90
102 size_t BasicBlock::PredecessorIndexOf(BasicBlock* predecessor) { 91 size_t BasicBlock::PredecessorIndexOf(BasicBlock* predecessor) {
103 size_t j = 0; 92 size_t j = 0;
104 for (BasicBlock::Predecessors::iterator i = predecessors_.begin(); 93 for (BasicBlock::Predecessors::iterator i = predecessors_.begin();
105 i != predecessors_.end(); ++i, ++j) { 94 i != predecessors_.end(); ++i, ++j) {
106 if (*i == predecessor) break; 95 if (*i == predecessor) break;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } 303 }
315 os << "\n"; 304 os << "\n";
316 } 305 }
317 } 306 }
318 return os; 307 return os;
319 } 308 }
320 309
321 } // namespace compiler 310 } // namespace compiler
322 } // namespace internal 311 } // namespace internal
323 } // namespace v8 312 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/schedule.h ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698