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

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

Issue 855533002: Isolate/Thread split: Isolate -> Zone for LocationSummary. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 | « runtime/vm/allocation.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 BlockEntryInstr* block = postorder_[i]; 157 BlockEntryInstr* block = postorder_[i];
158 158
159 BitVector* kill = kill_[i]; 159 BitVector* kill = kill_[i];
160 BitVector* live_in = live_in_[i]; 160 BitVector* live_in = live_in_[i];
161 161
162 // Iterate backwards starting at the last instruction. 162 // Iterate backwards starting at the last instruction.
163 for (BackwardInstructionIterator it(block); !it.Done(); it.Advance()) { 163 for (BackwardInstructionIterator it(block); !it.Done(); it.Advance()) {
164 Instruction* current = it.Current(); 164 Instruction* current = it.Current();
165 165
166 // Initialize location summary for instruction. 166 // Initialize location summary for instruction.
167 current->InitializeLocationSummary(Isolate::Current(), true); // opt 167 current->InitializeLocationSummary(isolate()->current_zone(),
168 true); // opt
168 LocationSummary* locs = current->locs(); 169 LocationSummary* locs = current->locs();
169 #if DEBUG 170 #if DEBUG
170 locs->DiscoverWritableInputs(); 171 locs->DiscoverWritableInputs();
171 #endif 172 #endif
172 173
173 // Handle definitions. 174 // Handle definitions.
174 Definition* current_def = current->AsDefinition(); 175 Definition* current_def = current->AsDefinition();
175 if ((current_def != NULL) && current_def->HasSSATemp()) { 176 if ((current_def != NULL) && current_def->HasSSATemp()) {
176 kill->Add(current_def->ssa_temp_index()); 177 kill->Add(current_def->ssa_temp_index());
177 live_in->Remove(current_def->ssa_temp_index()); 178 live_in->Remove(current_def->ssa_temp_index());
(...skipping 2794 matching lines...) Expand 10 before | Expand all | Expand 10 after
2972 OS::Print("-- [after ssa allocator] ir [%s] -------------\n", 2973 OS::Print("-- [after ssa allocator] ir [%s] -------------\n",
2973 function.ToFullyQualifiedCString()); 2974 function.ToFullyQualifiedCString());
2974 FlowGraphPrinter printer(flow_graph_, true); 2975 FlowGraphPrinter printer(flow_graph_, true);
2975 printer.PrintBlocks(); 2976 printer.PrintBlocks();
2976 OS::Print("----------------------------------------------\n"); 2977 OS::Print("----------------------------------------------\n");
2977 } 2978 }
2978 } 2979 }
2979 2980
2980 2981
2981 } // namespace dart 2982 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/allocation.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698