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

Unified Diff: src/compiler/greedy-allocator.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, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/greedy-allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/greedy-allocator.h
diff --git a/src/compiler/greedy-allocator.h b/src/compiler/greedy-allocator.h
index c4e330eb97cc0425d4ec7de4fdb7e0fe5d938fb9..8482dd90be479e8c11872f0d95d2d60408768f6f 100644
--- a/src/compiler/greedy-allocator.h
+++ b/src/compiler/greedy-allocator.h
@@ -22,11 +22,15 @@ class AllocationCandidate {
// Strict ordering operators
bool operator<(const AllocationCandidate& other) const {
- return range_->GetSize() < other.range_->GetSize();
+ DCHECK(range_->IsSizeValid());
+ DCHECK(other.range_->IsSizeValid());
+ return range_->size() < other.range_->size();
}
bool operator>(const AllocationCandidate& other) const {
- return range_->GetSize() > other.range_->GetSize();
+ DCHECK(range_->IsSizeValid());
+ DCHECK(other.range_->IsSizeValid());
+ return range_->size() > other.range_->size();
}
LiveRange* live_range() const { return range_; }
« no previous file with comments | « no previous file | src/compiler/greedy-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698