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

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

Issue 211873003: Incremental tuning/cleanup of inlining: --print-inline-tree changed to --print-inlining-tree. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | « no previous file | runtime/vm/flow_graph_inliner.h » ('j') | runtime/vm/flow_graph_inliner.cc » ('J')
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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 DEBUG_ASSERT(flow_graph->VerifyUseLists()); 508 DEBUG_ASSERT(flow_graph->VerifyUseLists());
509 509
510 if (sinking != NULL) { 510 if (sinking != NULL) {
511 // Remove all MaterializeObject instructions inserted by allocation 511 // Remove all MaterializeObject instructions inserted by allocation
512 // sinking from the flow graph and let them float on the side 512 // sinking from the flow graph and let them float on the side
513 // referenced only from environments. Register allocator will consider 513 // referenced only from environments. Register allocator will consider
514 // them as part of a deoptimization environment. 514 // them as part of a deoptimization environment.
515 sinking->DetachMaterializations(); 515 sinking->DetachMaterializations();
516 } 516 }
517 517
518 // Compute and store graph informations (call & instruction counts)
519 // to be later used by the inliner.
520 FlowGraphInliner::CollectGraphInfo(flow_graph, true);
521
518 // Perform register allocation on the SSA graph. 522 // Perform register allocation on the SSA graph.
519 FlowGraphAllocator allocator(*flow_graph); 523 FlowGraphAllocator allocator(*flow_graph);
520 allocator.AllocateRegisters(); 524 allocator.AllocateRegisters();
521 if (reorder_blocks) block_scheduler.ReorderBlocks(); 525 if (reorder_blocks) block_scheduler.ReorderBlocks();
522 526
523 if (FLAG_print_flow_graph || FLAG_print_flow_graph_optimized) { 527 if (FLAG_print_flow_graph || FLAG_print_flow_graph_optimized) {
524 FlowGraphPrinter::PrintGraph("After Optimizations", flow_graph); 528 FlowGraphPrinter::PrintGraph("After Optimizations", flow_graph);
525 } 529 }
526 } 530 }
527 531
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 const Object& result = 951 const Object& result =
948 Object::Handle(isolate->object_store()->sticky_error()); 952 Object::Handle(isolate->object_store()->sticky_error());
949 isolate->object_store()->clear_sticky_error(); 953 isolate->object_store()->clear_sticky_error();
950 return result.raw(); 954 return result.raw();
951 } 955 }
952 UNREACHABLE(); 956 UNREACHABLE();
953 return Object::null(); 957 return Object::null();
954 } 958 }
955 959
956 } // namespace dart 960 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_inliner.h » ('j') | runtime/vm/flow_graph_inliner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698