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

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

Issue 11016028: Add fast 64-bit integer ADD and SUB to the optimizing compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/disassembler_ia32.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) 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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_ia32.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698