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

Unified Diff: runtime/vm/flow_graph_allocator.cc

Issue 14740005: Initial support for polymorphic inlining. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
Index: runtime/vm/flow_graph_allocator.cc
diff --git a/runtime/vm/flow_graph_allocator.cc b/runtime/vm/flow_graph_allocator.cc
index 5125f971ce1b8ad6f57ce4dd3ad3ed4afd7f0ab7..e4fd41bb3c16d2cffa5c1b383286aef2d02030eb 100644
--- a/runtime/vm/flow_graph_allocator.cc
+++ b/runtime/vm/flow_graph_allocator.cc
@@ -2187,7 +2187,10 @@ bool FlowGraphAllocator::UnallocatedIsSorted() {
for (intptr_t i = unallocated_.length() - 1; i >= 1; i--) {
LiveRange* a = unallocated_[i];
LiveRange* b = unallocated_[i - 1];
- if (!ShouldBeAllocatedBefore(a, b)) return false;
+ if (!ShouldBeAllocatedBefore(a, b)) {
+ ASSERT(false);
Kevin Millikin (Google) 2013/05/01 15:36:25 This is unintentional. I will remove it.
Florian Schneider 2013/05/03 10:41:36 I think this is actually useful for debugging here
Kevin Millikin (Google) 2013/05/03 11:47:38 OK, UNREACHABLE() it is.
+ return false;
+ }
}
return true;
}

Powered by Google App Engine
This is Rietveld 408576698