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

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

Issue 15529003: A few simple cleanups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « runtime/vm/dart_entry.cc ('k') | runtime/vm/intermediate_language.h » ('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/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/cha.h" 9 #include "vm/cha.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 for (intptr_t i = 0; i < block_order().length(); ++i) { 212 for (intptr_t i = 0; i < block_order().length(); ++i) {
213 // Compile the block entry. 213 // Compile the block entry.
214 BlockEntryInstr* entry = block_order()[i]; 214 BlockEntryInstr* entry = block_order()[i];
215 assembler()->Comment("B%"Pd"", entry->block_id()); 215 assembler()->Comment("B%"Pd"", entry->block_id());
216 set_current_block(entry); 216 set_current_block(entry);
217 217
218 if (WasCompacted(entry)) { 218 if (WasCompacted(entry)) {
219 continue; 219 continue;
220 } 220 }
221 221
222 entry->PrepareEntry(this); 222 entry->EmitNativeCode(this);
223 // Compile all successors until an exit, branch, or a block entry. 223 // Compile all successors until an exit, branch, or a block entry.
224 for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) { 224 for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) {
225 Instruction* instr = it.Current(); 225 Instruction* instr = it.Current();
226 if (FLAG_code_comments) EmitComment(instr); 226 if (FLAG_code_comments) EmitComment(instr);
227 if (instr->IsParallelMove()) { 227 if (instr->IsParallelMove()) {
228 parallel_move_resolver_.EmitNativeCode(instr->AsParallelMove()); 228 parallel_move_resolver_.EmitNativeCode(instr->AsParallelMove());
229 } else { 229 } else {
230 ASSERT(instr->locs() != NULL); 230 ASSERT(instr->locs() != NULL);
231 EmitInstructionPrologue(instr); 231 EmitInstructionPrologue(instr);
232 ASSERT(pending_deoptimization_env_ == NULL); 232 ASSERT(pending_deoptimization_env_ == NULL);
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 1080
1081 for (int i = 0; i < len; i++) { 1081 for (int i = 0; i < len; i++) {
1082 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), 1082 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i),
1083 &Function::ZoneHandle(ic_data.GetTargetAt(i)), 1083 &Function::ZoneHandle(ic_data.GetTargetAt(i)),
1084 ic_data.GetCountAt(i))); 1084 ic_data.GetCountAt(i)));
1085 } 1085 }
1086 sorted->Sort(HighestCountFirst); 1086 sorted->Sort(HighestCountFirst);
1087 } 1087 }
1088 1088
1089 } // namespace dart 1089 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698