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

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

Issue 669613002: [turbofan] remove schedule from InstructionSequence (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') | test/cctest/compiler/test-codegen-deopt.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
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 UNREACHABLE(); 98 UNREACHABLE();
99 return os; 99 return os;
100 } 100 }
101 101
102 102
103 std::ostream& operator<<(std::ostream& os, const BasicBlock::Id& id) { 103 std::ostream& operator<<(std::ostream& os, const BasicBlock::Id& id) {
104 return os << id.ToSize(); 104 return os << id.ToSize();
105 } 105 }
106 106
107 107
108 std::ostream& operator<<(std::ostream& os, const BasicBlock::RpoNumber& rpo) {
109 return os << rpo.ToSize();
110 }
111
112
108 Schedule::Schedule(Zone* zone, size_t node_count_hint) 113 Schedule::Schedule(Zone* zone, size_t node_count_hint)
109 : zone_(zone), 114 : zone_(zone),
110 all_blocks_(zone), 115 all_blocks_(zone),
111 nodeid_to_block_(zone), 116 nodeid_to_block_(zone),
112 rpo_order_(zone), 117 rpo_order_(zone),
113 start_(NewBasicBlock()), 118 start_(NewBasicBlock()),
114 end_(NewBasicBlock()) { 119 end_(NewBasicBlock()) {
115 nodeid_to_block_.reserve(node_count_hint); 120 nodeid_to_block_.reserve(node_count_hint);
116 } 121 }
117 122
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 } 292 }
288 os << "\n"; 293 os << "\n";
289 } 294 }
290 } 295 }
291 return os; 296 return os;
292 } 297 }
293 298
294 } // namespace compiler 299 } // namespace compiler
295 } // namespace internal 300 } // namespace internal
296 } // namespace v8 301 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/schedule.h ('k') | test/cctest/compiler/test-codegen-deopt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698