Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: src/compiler/instruction.h

Issue 1242123006: [turbofan] Deferred block spilling heuristic - first step. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/greedy-allocator.cc ('k') | src/compiler/move-optimizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/compiler/greedy-allocator.cc ('k') | src/compiler/move-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698