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

Side by Side Diff: dart/runtime/vm/flow_graph_inliner.cc

Issue 328663002: Version 1.5.0-dev.4.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 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 | « dart/runtime/vm/flow_graph_compiler_x64.cc ('k') | dart/runtime/vm/object.h » ('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) 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/flow_graph_inliner.h" 5 #include "vm/flow_graph_inliner.h"
6 6
7 #include "vm/block_scheduler.h" 7 #include "vm/block_scheduler.h"
8 #include "vm/compiler.h" 8 #include "vm/compiler.h"
9 #include "vm/flags.h" 9 #include "vm/flags.h"
10 #include "vm/flow_graph.h" 10 #include "vm/flow_graph.h"
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 call_data->callee_graph = callee_graph; 795 call_data->callee_graph = callee_graph;
796 call_data->parameter_stubs = param_stubs; 796 call_data->parameter_stubs = param_stubs;
797 call_data->exit_collector = exit_collector; 797 call_data->exit_collector = exit_collector;
798 798
799 // When inlined, we add the guarded fields of the callee to the caller's 799 // When inlined, we add the guarded fields of the callee to the caller's
800 // list of guarded fields. 800 // list of guarded fields.
801 for (intptr_t i = 0; i < callee_graph->guarded_fields()->length(); ++i) { 801 for (intptr_t i = 0; i < callee_graph->guarded_fields()->length(); ++i) {
802 FlowGraph::AddToGuardedFields(caller_graph_->guarded_fields(), 802 FlowGraph::AddToGuardedFields(caller_graph_->guarded_fields(),
803 (*callee_graph->guarded_fields())[i]); 803 (*callee_graph->guarded_fields())[i]);
804 } 804 }
805 // When inlined, we add the deferred prefixes of the callee to the
806 // caller's list of deferred prefixes.
807 caller_graph()->AddToDeferredPrefixes(callee_graph->deferred_prefixes());
805 808
806 // We allocate a ZoneHandle for the unoptimized code so that it cannot be 809 // We allocate a ZoneHandle for the unoptimized code so that it cannot be
807 // disconnected from its function during the rest of compilation. 810 // disconnected from its function during the rest of compilation.
808 Code::ZoneHandle(unoptimized_code.raw()); 811 Code::ZoneHandle(unoptimized_code.raw());
809 TRACE_INLINING(OS::Print(" Success\n")); 812 TRACE_INLINING(OS::Print(" Success\n"));
810 PRINT_INLINING_TREE(NULL, 813 PRINT_INLINING_TREE(NULL,
811 &call_data->caller, &function, call); 814 &call_data->caller, &function, call);
812 return true; 815 return true;
813 } else { 816 } else {
814 Error& error = Error::Handle(); 817 Error& error = Error::Handle();
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 OS::Print("After Inlining of %s\n", flow_graph_-> 1721 OS::Print("After Inlining of %s\n", flow_graph_->
1719 parsed_function().function().ToFullyQualifiedCString()); 1722 parsed_function().function().ToFullyQualifiedCString());
1720 FlowGraphPrinter printer(*flow_graph_); 1723 FlowGraphPrinter printer(*flow_graph_);
1721 printer.PrintBlocks(); 1724 printer.PrintBlocks();
1722 } 1725 }
1723 } 1726 }
1724 } 1727 }
1725 } 1728 }
1726 1729
1727 } // namespace dart 1730 } // namespace dart
OLDNEW
« no previous file with comments | « dart/runtime/vm/flow_graph_compiler_x64.cc ('k') | dart/runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698