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

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

Issue 10914314: Simple redundant load elimination. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/ast_printer.h" 8 #include "vm/ast_printer.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 // Do optimizations that depend on the propagated type information. 209 // Do optimizations that depend on the propagated type information.
210 optimizer.OptimizeComputations(); 210 optimizer.OptimizeComputations();
211 211
212 // Unbox doubles. 212 // Unbox doubles.
213 flow_graph->ComputeUseLists(); 213 flow_graph->ComputeUseLists();
214 optimizer.SelectRepresentations(); 214 optimizer.SelectRepresentations();
215 215
216 if (FLAG_cse) { 216 if (FLAG_cse) {
217 flow_graph->ComputeUseLists(); 217 flow_graph->ComputeUseLists();
218 DominatorBasedCSE::Optimize(flow_graph->graph_entry()); 218 DominatorBasedCSE::Optimize(flow_graph);
219 } 219 }
220 if (FLAG_licm) { 220 if (FLAG_licm) {
221 LICM::Optimize(flow_graph); 221 LICM::Optimize(flow_graph);
222 } 222 }
223 223
224 // Perform register allocation on the SSA graph. 224 // Perform register allocation on the SSA graph.
225 FlowGraphAllocator allocator(*flow_graph); 225 FlowGraphAllocator allocator(*flow_graph);
226 allocator.AllocateRegisters(); 226 allocator.AllocateRegisters();
227 227
228 if (FLAG_print_flow_graph) { 228 if (FLAG_print_flow_graph) {
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 result = isolate->object_store()->sticky_error(); 578 result = isolate->object_store()->sticky_error();
579 isolate->object_store()->clear_sticky_error(); 579 isolate->object_store()->clear_sticky_error();
580 isolate->set_long_jump_base(base); 580 isolate->set_long_jump_base(base);
581 return result.raw(); 581 return result.raw();
582 } 582 }
583 UNREACHABLE(); 583 UNREACHABLE();
584 return Object::null(); 584 return Object::null();
585 } 585 }
586 586
587 } // namespace dart 587 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698