| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 set_current_block(entry); | 301 set_current_block(entry); |
| 302 | 302 |
| 303 if (WasCompacted(entry)) { | 303 if (WasCompacted(entry)) { |
| 304 continue; | 304 continue; |
| 305 } | 305 } |
| 306 | 306 |
| 307 entry->EmitNativeCode(this); | 307 entry->EmitNativeCode(this); |
| 308 // Compile all successors until an exit, branch, or a block entry. | 308 // Compile all successors until an exit, branch, or a block entry. |
| 309 for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) { | 309 for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) { |
| 310 Instruction* instr = it.Current(); | 310 Instruction* instr = it.Current(); |
| 311 if (FLAG_code_comments && | 311 if (FLAG_code_comments || |
| 312 (FLAG_disassemble || FLAG_disassemble_optimized)) { | 312 FLAG_disassemble || |
| 313 FLAG_disassemble_optimized) { |
| 313 if (FLAG_source_lines) { | 314 if (FLAG_source_lines) { |
| 314 EmitSourceLine(instr); | 315 EmitSourceLine(instr); |
| 315 } | 316 } |
| 316 EmitComment(instr); | 317 EmitComment(instr); |
| 317 } | 318 } |
| 318 if (instr->IsParallelMove()) { | 319 if (instr->IsParallelMove()) { |
| 319 parallel_move_resolver_.EmitNativeCode(instr->AsParallelMove()); | 320 parallel_move_resolver_.EmitNativeCode(instr->AsParallelMove()); |
| 320 } else { | 321 } else { |
| 321 EmitInstructionPrologue(instr); | 322 EmitInstructionPrologue(instr); |
| 322 ASSERT(pending_deoptimization_env_ == NULL); | 323 ASSERT(pending_deoptimization_env_ == NULL); |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 | 1317 |
| 1317 for (int i = 0; i < len; i++) { | 1318 for (int i = 0; i < len; i++) { |
| 1318 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), | 1319 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), |
| 1319 &Function::ZoneHandle(ic_data.GetTargetAt(i)), | 1320 &Function::ZoneHandle(ic_data.GetTargetAt(i)), |
| 1320 ic_data.GetCountAt(i))); | 1321 ic_data.GetCountAt(i))); |
| 1321 } | 1322 } |
| 1322 sorted->Sort(HighestCountFirst); | 1323 sorted->Sort(HighestCountFirst); |
| 1323 } | 1324 } |
| 1324 | 1325 |
| 1325 } // namespace dart | 1326 } // namespace dart |
| OLD | NEW |