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

Unified Diff: src/lithium-allocator.cc

Issue 10377106: Fix LOperand aliasing bug in the register allocator, avoid splitting very short live ranges. Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 7 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: src/lithium-allocator.cc
===================================================================
--- src/lithium-allocator.cc (revision 11545)
+++ src/lithium-allocator.cc (working copy)
@@ -851,7 +851,10 @@
zone_);
}
- AddConstraintsGapMove(gap_index, input_copy, cur_input);
+ LUnallocated* cur_input_copy = cur_input->CopyUnconstrained();
+ cur_input_copy->set_policy(cur_input->policy());
+
+ AddConstraintsGapMove(gap_index, input_copy, cur_input_copy);
}
}
}
@@ -1851,7 +1854,6 @@
return;
}
-
LifetimePosition use_pos[DoubleRegister::kNumAllocatableRegisters];
LifetimePosition block_pos[DoubleRegister::kNumAllocatableRegisters];
« 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