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

Unified Diff: runtime/vm/flow_graph_allocator.cc

Issue 289133003: Another fix in register allocation where th eimplicit assumption is that numebr of CPU registers is… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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: runtime/vm/flow_graph_allocator.cc
===================================================================
--- runtime/vm/flow_graph_allocator.cc (revision 36266)
+++ runtime/vm/flow_graph_allocator.cc (working copy)
@@ -2003,9 +2003,10 @@
(loop_header != NULL) &&
(free_until >= loop_header->last_block()->end_pos()) &&
loop_header->backedge_interference()->Contains(unallocated->vreg())) {
- ASSERT(static_cast<intptr_t>(kNumberOfFpuRegisters) <=
- kNumberOfCpuRegisters);
- bool used_on_backedge[kNumberOfCpuRegisters] = { false };
+ GrowableArray<bool> used_on_backedge(number_of_registers_);
+ for (intptr_t i = 0; i < number_of_registers_; i++) {
+ used_on_backedge.Add(false);
+ }
for (PhiIterator it(loop_header->entry()->AsJoinEntry());
!it.Done();
« 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