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

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: 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 a1b7eca1575517522dd1e059c0f4109f47aff003..a95f32352aeff96acf55551ab427d9ed5faaf224 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -623,6 +623,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