| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |