| 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 #ifndef V8_COMPILER_SCHEDULER_H_ | 5 #ifndef V8_COMPILER_SCHEDULER_H_ |
| 6 #define V8_COMPILER_SCHEDULER_H_ | 6 #define V8_COMPILER_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 Zone* zone_; | 47 Zone* zone_; |
| 48 Graph* graph_; | 48 Graph* graph_; |
| 49 Schedule* schedule_; | 49 Schedule* schedule_; |
| 50 NodeVectorVector scheduled_nodes_; | 50 NodeVectorVector scheduled_nodes_; |
| 51 NodeVector schedule_root_nodes_; | 51 NodeVector schedule_root_nodes_; |
| 52 ZoneVector<SchedulerData> node_data_; | 52 ZoneVector<SchedulerData> node_data_; |
| 53 bool has_floating_control_; | 53 bool has_floating_control_; |
| 54 | 54 |
| 55 Scheduler(Zone* zone, Graph* graph, Schedule* schedule); | 55 Scheduler(Zone* zone, Graph* graph, Schedule* schedule); |
| 56 | 56 |
| 57 SchedulerData DefaultSchedulerData(); |
| 58 |
| 57 SchedulerData* GetData(Node* node) { | 59 SchedulerData* GetData(Node* node) { |
| 58 DCHECK(node->id() < static_cast<int>(node_data_.size())); | 60 DCHECK(node->id() < static_cast<int>(node_data_.size())); |
| 59 return &node_data_[node->id()]; | 61 return &node_data_[node->id()]; |
| 60 } | 62 } |
| 61 | 63 |
| 62 void BuildCFG(); | 64 void BuildCFG(); |
| 63 | 65 |
| 64 Placement GetPlacement(Node* node); | 66 Placement GetPlacement(Node* node); |
| 65 | 67 |
| 66 int GetRPONumber(BasicBlock* block) { | 68 int GetRPONumber(BasicBlock* block) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 86 | 88 |
| 87 bool ConnectFloatingControl(); | 89 bool ConnectFloatingControl(); |
| 88 | 90 |
| 89 void ConnectFloatingControlSubgraph(BasicBlock* block, Node* node); | 91 void ConnectFloatingControlSubgraph(BasicBlock* block, Node* node); |
| 90 }; | 92 }; |
| 91 } | 93 } |
| 92 } | 94 } |
| 93 } // namespace v8::internal::compiler | 95 } // namespace v8::internal::compiler |
| 94 | 96 |
| 95 #endif // V8_COMPILER_SCHEDULER_H_ | 97 #endif // V8_COMPILER_SCHEDULER_H_ |
| OLD | NEW |