OLD | NEW |
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 <deque> | 5 #include <deque> |
6 #include <queue> | 6 #include <queue> |
7 | 7 |
8 #include "src/compiler/scheduler.h" | 8 #include "src/compiler/scheduler.h" |
9 | 9 |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 } | 255 } |
256 }; | 256 }; |
257 | 257 |
258 | 258 |
259 Scheduler::Scheduler(Zone* zone, Graph* graph, Schedule* schedule) | 259 Scheduler::Scheduler(Zone* zone, Graph* graph, Schedule* schedule) |
260 : zone_(zone), | 260 : zone_(zone), |
261 graph_(graph), | 261 graph_(graph), |
262 schedule_(schedule), | 262 schedule_(schedule), |
263 scheduled_nodes_(zone), | 263 scheduled_nodes_(zone), |
264 schedule_root_nodes_(zone), | 264 schedule_root_nodes_(zone), |
265 node_data_(graph_->NodeCount(), | 265 node_data_(graph_->NodeCount(), {0, 0, false, false, kUnknown}, zone), |
266 SchedulerData{0, 0, false, false, kUnknown}, zone), | |
267 has_floating_control_(false) {} | 266 has_floating_control_(false) {} |
268 | 267 |
269 | 268 |
270 Schedule* Scheduler::ComputeSchedule(Graph* graph) { | 269 Schedule* Scheduler::ComputeSchedule(Graph* graph) { |
271 Schedule* schedule; | 270 Schedule* schedule; |
272 bool had_floating_control = false; | 271 bool had_floating_control = false; |
273 do { | 272 do { |
274 Zone tmp_zone(graph->zone()->isolate()); | 273 Zone tmp_zone(graph->zone()->isolate()); |
275 schedule = new (graph->zone()) Schedule(graph->zone()); | 274 schedule = new (graph->zone()) Schedule(graph->zone()); |
276 Scheduler scheduler(&tmp_zone, graph, schedule); | 275 Scheduler scheduler(&tmp_zone, graph, schedule); |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 | 1142 |
1144 #if DEBUG | 1143 #if DEBUG |
1145 if (FLAG_trace_turbo_scheduler) PrintRPO(num_loops, loops, final_order); | 1144 if (FLAG_trace_turbo_scheduler) PrintRPO(num_loops, loops, final_order); |
1146 VerifySpecialRPO(num_loops, loops, final_order); | 1145 VerifySpecialRPO(num_loops, loops, final_order); |
1147 #endif | 1146 #endif |
1148 return final_order; | 1147 return final_order; |
1149 } | 1148 } |
1150 } | 1149 } |
1151 } | 1150 } |
1152 } // namespace v8::internal::compiler | 1151 } // namespace v8::internal::compiler |
OLD | NEW |