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

Side by Side Diff: runtime/vm/flow_graph_allocator.cc

Issue 262823007: Revert r35682, one test is failing: standalone/io/process_sync_test. Code may actually be changing … (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/flow_graph_allocator.h" 5 #include "vm/flow_graph_allocator.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/il_printer.h" 9 #include "vm/il_printer.h"
10 #include "vm/flow_graph.h" 10 #include "vm/flow_graph.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 } 224 }
225 } 225 }
226 226
227 // Process initial definitions, ie, constants and incoming parameters. 227 // Process initial definitions, ie, constants and incoming parameters.
228 for (intptr_t i = 0; i < graph_entry_->initial_definitions()->length(); i++) { 228 for (intptr_t i = 0; i < graph_entry_->initial_definitions()->length(); i++) {
229 Definition* def = (*graph_entry_->initial_definitions())[i]; 229 Definition* def = (*graph_entry_->initial_definitions())[i];
230 const intptr_t vreg = def->ssa_temp_index(); 230 const intptr_t vreg = def->ssa_temp_index();
231 kill_[graph_entry_->postorder_number()]->Add(vreg); 231 kill_[graph_entry_->postorder_number()]->Add(vreg);
232 live_in_[graph_entry_->postorder_number()]->Remove(vreg); 232 live_in_[graph_entry_->postorder_number()]->Remove(vreg);
233 } 233 }
234
235 // Update initial live_in sets to match live_out sets. Has to be
236 // done in a separate path because of backwards branches.
237 for (intptr_t i = 0; i < block_count; i++) {
238 UpdateLiveIn(*postorder_[i]);
239 }
234 } 240 }
235 241
236 242
237 void LiveRange::AddUse(intptr_t pos, Location* location_slot) { 243 void LiveRange::AddUse(intptr_t pos, Location* location_slot) {
238 ASSERT(location_slot != NULL); 244 ASSERT(location_slot != NULL);
239 ASSERT((first_use_interval_->start_ <= pos) && 245 ASSERT((first_use_interval_->start_ <= pos) &&
240 (pos <= first_use_interval_->end_)); 246 (pos <= first_use_interval_->end_));
241 if ((uses_ != NULL) && 247 if ((uses_ != NULL) &&
242 (uses_->pos() == pos) && 248 (uses_->pos() == pos) &&
243 (uses_->location_slot() == location_slot)) { 249 (uses_->location_slot() == location_slot)) {
(...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after
2779 OS::Print("-- [after ssa allocator] ir [%s] -------------\n", 2785 OS::Print("-- [after ssa allocator] ir [%s] -------------\n",
2780 function.ToFullyQualifiedCString()); 2786 function.ToFullyQualifiedCString());
2781 FlowGraphPrinter printer(flow_graph_, true); 2787 FlowGraphPrinter printer(flow_graph_, true);
2782 printer.PrintBlocks(); 2788 printer.PrintBlocks();
2783 OS::Print("----------------------------------------------\n"); 2789 OS::Print("----------------------------------------------\n");
2784 } 2790 }
2785 } 2791 }
2786 2792
2787 2793
2788 } // namespace dart 2794 } // namespace dart
OLDNEW
« 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