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

Unified Diff: runtime/vm/flow_graph_allocator.cc

Issue 10825300: In AllocateAnyRegister allow spliting at blocked_at position inclusive. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_allocator.cc
diff --git a/runtime/vm/flow_graph_allocator.cc b/runtime/vm/flow_graph_allocator.cc
index 58be77aa528ce75847ab83073a93d33dab2aa36e..5f8fc613f200e5fe3ec452dd23fcc13bcca5e6cc 100644
--- a/runtime/vm/flow_graph_allocator.cc
+++ b/runtime/vm/flow_graph_allocator.cc
@@ -1496,9 +1496,11 @@ void FlowGraphAllocator::AllocateAnyRegister(LiveRange* unallocated) {
unallocated->vreg(), blocked_at));
if (blocked_at < unallocated->End()) {
+ // Register is blocked before the end of the live range. Split the range
+ // at latest at blocked_at position.
LiveRange* tail = SplitBetween(unallocated,
unallocated->Start(),
- blocked_at);
+ blocked_at + 1);
AddToUnallocated(tail);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698