Chromium Code Reviews| 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_SCHEDULE_H_ | 5 #ifndef V8_COMPILER_SCHEDULE_H_ |
| 6 #define V8_COMPILER_SCHEDULE_H_ | 6 #define V8_COMPILER_SCHEDULE_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/zone-containers.h" | 10 #include "src/zone-containers.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 iterator end() { return nodes_.end(); } | 89 iterator end() { return nodes_.end(); } |
| 90 | 90 |
| 91 typedef NodeVector::const_iterator const_iterator; | 91 typedef NodeVector::const_iterator const_iterator; |
| 92 const_iterator begin() const { return nodes_.begin(); } | 92 const_iterator begin() const { return nodes_.begin(); } |
| 93 const_iterator end() const { return nodes_.end(); } | 93 const_iterator end() const { return nodes_.end(); } |
| 94 | 94 |
| 95 typedef NodeVector::reverse_iterator reverse_iterator; | 95 typedef NodeVector::reverse_iterator reverse_iterator; |
| 96 reverse_iterator rbegin() { return nodes_.rbegin(); } | 96 reverse_iterator rbegin() { return nodes_.rbegin(); } |
| 97 reverse_iterator rend() { return nodes_.rend(); } | 97 reverse_iterator rend() { return nodes_.rend(); } |
| 98 | 98 |
| 99 void RemoveLast() { nodes_.pop_back(); } | |
|
caitp
2016/08/18 03:08:57
oops, not really needed. thankfully.
| |
| 100 | |
| 99 void AddNode(Node* node); | 101 void AddNode(Node* node); |
| 100 template <class InputIterator> | 102 template <class InputIterator> |
| 101 void InsertNodes(iterator insertion_point, InputIterator insertion_start, | 103 void InsertNodes(iterator insertion_point, InputIterator insertion_start, |
| 102 InputIterator insertion_end) { | 104 InputIterator insertion_end) { |
| 103 nodes_.insert(insertion_point, insertion_start, insertion_end); | 105 nodes_.insert(insertion_point, insertion_start, insertion_end); |
| 104 } | 106 } |
| 105 | 107 |
| 106 // Accessors. | 108 // Accessors. |
| 107 Control control() const { return control_; } | 109 Control control() const { return control_; } |
| 108 void set_control(Control control); | 110 void set_control(Control control); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 282 DISALLOW_COPY_AND_ASSIGN(Schedule); | 284 DISALLOW_COPY_AND_ASSIGN(Schedule); |
| 283 }; | 285 }; |
| 284 | 286 |
| 285 std::ostream& operator<<(std::ostream&, const Schedule&); | 287 std::ostream& operator<<(std::ostream&, const Schedule&); |
| 286 | 288 |
| 287 } // namespace compiler | 289 } // namespace compiler |
| 288 } // namespace internal | 290 } // namespace internal |
| 289 } // namespace v8 | 291 } // namespace v8 |
| 290 | 292 |
| 291 #endif // V8_COMPILER_SCHEDULE_H_ | 293 #endif // V8_COMPILER_SCHEDULE_H_ |
| OLD | NEW |