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

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

Issue 267793004: Remove debugging code. (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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 const intptr_t block_count = postorder_.length(); 123 const intptr_t block_count = postorder_.length();
124 for (intptr_t i = 0; i < block_count; i++) { 124 for (intptr_t i = 0; i < block_count; i++) {
125 BlockEntryInstr* block = postorder_[i]; 125 BlockEntryInstr* block = postorder_[i];
126 126
127 BitVector* kill = kill_[i]; 127 BitVector* kill = kill_[i];
128 BitVector* live_in = live_in_[i]; 128 BitVector* live_in = live_in_[i];
129 129
130 // Iterate backwards starting at the last instruction. 130 // Iterate backwards starting at the last instruction.
131 for (BackwardInstructionIterator it(block); !it.Done(); it.Advance()) { 131 for (BackwardInstructionIterator it(block); !it.Done(); it.Advance()) {
132 Instruction* current = it.Current(); 132 Instruction* current = it.Current();
133 fprintf(stderr, "Looking at %s\n", current->DebugName());
134 133
135 // Initialize location summary for instruction. 134 // Initialize location summary for instruction.
136 current->InitializeLocationSummary(true); // Optimizing. 135 current->InitializeLocationSummary(true); // Optimizing.
137 LocationSummary* locs = current->locs(); 136 LocationSummary* locs = current->locs();
138 137
139 // Handle definitions. 138 // Handle definitions.
140 Definition* current_def = current->AsDefinition(); 139 Definition* current_def = current->AsDefinition();
141 if ((current_def != NULL) && current_def->HasSSATemp()) { 140 if ((current_def != NULL) && current_def->HasSSATemp()) {
142 kill->Add(current_def->ssa_temp_index()); 141 kill->Add(current_def->ssa_temp_index());
143 live_in->Remove(current_def->ssa_temp_index()); 142 live_in->Remove(current_def->ssa_temp_index());
(...skipping 2641 matching lines...) Expand 10 before | Expand all | Expand 10 after
2785 OS::Print("-- [after ssa allocator] ir [%s] -------------\n", 2784 OS::Print("-- [after ssa allocator] ir [%s] -------------\n",
2786 function.ToFullyQualifiedCString()); 2785 function.ToFullyQualifiedCString());
2787 FlowGraphPrinter printer(flow_graph_, true); 2786 FlowGraphPrinter printer(flow_graph_, true);
2788 printer.PrintBlocks(); 2787 printer.PrintBlocks();
2789 OS::Print("----------------------------------------------\n"); 2788 OS::Print("----------------------------------------------\n");
2790 } 2789 }
2791 } 2790 }
2792 2791
2793 2792
2794 } // namespace dart 2793 } // 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