| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/v8.h" | 10 #include "src/v8.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // ordering the basic blocks in the special RPO order. | 22 // ordering the basic blocks in the special RPO order. |
| 23 class Scheduler { | 23 class Scheduler { |
| 24 public: | 24 public: |
| 25 // Create a new schedule and place all computations from the graph in it. | 25 // Create a new schedule and place all computations from the graph in it. |
| 26 static Schedule* ComputeSchedule(Graph* graph); | 26 static Schedule* ComputeSchedule(Graph* graph); |
| 27 | 27 |
| 28 // Compute the RPO of blocks in an existing schedule. | 28 // Compute the RPO of blocks in an existing schedule. |
| 29 static BasicBlockVector* ComputeSpecialRPO(Schedule* schedule); | 29 static BasicBlockVector* ComputeSpecialRPO(Schedule* schedule); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 Zone* zone_; | |
| 33 Graph* graph_; | 32 Graph* graph_; |
| 34 Schedule* schedule_; | 33 Schedule* schedule_; |
| 35 NodeVector branches_; | 34 NodeVector branches_; |
| 36 NodeVector calls_; | 35 NodeVector calls_; |
| 37 NodeVector deopts_; | 36 NodeVector deopts_; |
| 38 NodeVector returns_; | 37 NodeVector returns_; |
| 39 NodeVector loops_and_merges_; | 38 NodeVector loops_and_merges_; |
| 40 BasicBlockVector node_block_placement_; | 39 BasicBlockVector node_block_placement_; |
| 41 IntVector unscheduled_uses_; | 40 IntVector unscheduled_uses_; |
| 42 NodeVectorVector scheduled_nodes_; | 41 NodeVectorVector scheduled_nodes_; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 void PrepareUses(); | 75 void PrepareUses(); |
| 77 | 76 |
| 78 friend class ScheduleLateNodeVisitor; | 77 friend class ScheduleLateNodeVisitor; |
| 79 void ScheduleLate(); | 78 void ScheduleLate(); |
| 80 }; | 79 }; |
| 81 } | 80 } |
| 82 } | 81 } |
| 83 } // namespace v8::internal::compiler | 82 } // namespace v8::internal::compiler |
| 84 | 83 |
| 85 #endif // V8_COMPILER_SCHEDULER_H_ | 84 #endif // V8_COMPILER_SCHEDULER_H_ |
| OLD | NEW |