| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 2151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2162 instr_it.Advance()) { | 2162 instr_it.Advance()) { |
| 2163 Instruction* instr = instr_it.Current(); | 2163 Instruction* instr = instr_it.Current(); |
| 2164 if (instr->IsDefinition() && instr->representation() == kUnboxedMint) { | 2164 if (instr->IsDefinition() && instr->representation() == kUnboxedMint) { |
| 2165 mint_values_->Add(instr->AsDefinition()->ssa_temp_index()); | 2165 mint_values_->Add(instr->AsDefinition()->ssa_temp_index()); |
| 2166 } | 2166 } |
| 2167 } | 2167 } |
| 2168 } | 2168 } |
| 2169 } | 2169 } |
| 2170 | 2170 |
| 2171 | 2171 |
| 2172 | |
| 2173 void FlowGraphAllocator::AllocateRegisters() { | 2172 void FlowGraphAllocator::AllocateRegisters() { |
| 2174 CollectRepresentations(); | 2173 CollectRepresentations(); |
| 2175 | 2174 |
| 2176 EliminateEnvironmentUses(); | 2175 EliminateEnvironmentUses(); |
| 2177 | 2176 |
| 2178 AnalyzeLiveness(); | 2177 AnalyzeLiveness(); |
| 2179 | 2178 |
| 2180 NumberInstructions(); | 2179 NumberInstructions(); |
| 2181 | 2180 |
| 2182 DiscoverLoops(); | 2181 DiscoverLoops(); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2238 OS::Print("-- [after ssa allocator] ir [%s] -------------\n", | 2237 OS::Print("-- [after ssa allocator] ir [%s] -------------\n", |
| 2239 function.ToFullyQualifiedCString()); | 2238 function.ToFullyQualifiedCString()); |
| 2240 FlowGraphPrinter printer(flow_graph_, true); | 2239 FlowGraphPrinter printer(flow_graph_, true); |
| 2241 printer.PrintBlocks(); | 2240 printer.PrintBlocks(); |
| 2242 OS::Print("----------------------------------------------\n"); | 2241 OS::Print("----------------------------------------------\n"); |
| 2243 } | 2242 } |
| 2244 } | 2243 } |
| 2245 | 2244 |
| 2246 | 2245 |
| 2247 } // namespace dart | 2246 } // namespace dart |
| OLD | NEW |