| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_INSTRUCTION_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_H_ |
| 6 #define V8_COMPILER_INSTRUCTION_H_ | 6 #define V8_COMPILER_INSTRUCTION_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 | 775 |
| 776 bool IsNext(const RpoNumber other) const { | 776 bool IsNext(const RpoNumber other) const { |
| 777 DCHECK(IsValid()); | 777 DCHECK(IsValid()); |
| 778 return other.index_ == this->index_ + 1; | 778 return other.index_ == this->index_ + 1; |
| 779 } | 779 } |
| 780 | 780 |
| 781 bool operator==(RpoNumber other) const { | 781 bool operator==(RpoNumber other) const { |
| 782 return this->index_ == other.index_; | 782 return this->index_ == other.index_; |
| 783 } | 783 } |
| 784 | 784 |
| 785 bool operator<(RpoNumber other) const { return index_ < other.index_; } |
| 786 |
| 787 bool operator>(RpoNumber other) const { return index_ > other.index_; } |
| 788 |
| 785 private: | 789 private: |
| 786 explicit RpoNumber(int32_t index) : index_(index) {} | 790 explicit RpoNumber(int32_t index) : index_(index) {} |
| 787 int32_t index_; | 791 int32_t index_; |
| 788 }; | 792 }; |
| 789 | 793 |
| 790 | 794 |
| 791 std::ostream& operator<<(std::ostream&, const RpoNumber&); | 795 std::ostream& operator<<(std::ostream&, const RpoNumber&); |
| 792 | 796 |
| 793 | 797 |
| 794 class Constant final { | 798 class Constant final { |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 | 1207 |
| 1204 | 1208 |
| 1205 std::ostream& operator<<(std::ostream& os, | 1209 std::ostream& operator<<(std::ostream& os, |
| 1206 const PrintableInstructionSequence& code); | 1210 const PrintableInstructionSequence& code); |
| 1207 | 1211 |
| 1208 } // namespace compiler | 1212 } // namespace compiler |
| 1209 } // namespace internal | 1213 } // namespace internal |
| 1210 } // namespace v8 | 1214 } // namespace v8 |
| 1211 | 1215 |
| 1212 #endif // V8_COMPILER_INSTRUCTION_H_ | 1216 #endif // V8_COMPILER_INSTRUCTION_H_ |
| OLD | NEW |