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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 10800037: New linear scan allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: refactored liveness computation Created 8 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
Index: runtime/vm/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index 60692a0e3c4766686c912c97c433178218277a1b..8b2e000d0ead23e95842931a3233d7be220b2ae8 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -622,6 +622,8 @@ void FrameRegisterAllocator::AllocateRegisters(Instruction* instr) {
Location result_location = locs->out();
if (result_location.IsUnallocated()) {
switch (result_location.policy()) {
+ case Location::kAny:
+ case Location::kPrefersRegister:
case Location::kRequiresRegister:
result_location = Location::RegisterLocation(
AllocateFreeRegister(blocked_registers));

Powered by Google App Engine
This is Rietveld 408576698