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

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

Issue 132163005: Version 1.1.0-dev.5.7 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 11 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/flow_graph_compiler_x64.cc ('k') | runtime/vm/flow_graph_optimizer.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 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 return true; 1053 return true;
1054 } 1054 }
1055 } 1055 }
1056 1056
1057 return false; 1057 return false;
1058 } 1058 }
1059 1059
1060 1060
1061 bool PolymorphicInliner::TryInlining(intptr_t receiver_cid, 1061 bool PolymorphicInliner::TryInlining(intptr_t receiver_cid,
1062 const Function& target) { 1062 const Function& target) {
1063 if (!target.IsOptimizable()) { 1063 if (!target.IsInlineable()) {
1064 if (TryInlineRecognizedMethod(receiver_cid, target)) { 1064 if (TryInlineRecognizedMethod(receiver_cid, target)) {
1065 owner_->inlined_ = true; 1065 owner_->inlined_ = true;
1066 return true; 1066 return true;
1067 } 1067 }
1068 return false; 1068 return false;
1069 } 1069 }
1070 1070
1071 GrowableArray<Value*> arguments(call_->ArgumentCount()); 1071 GrowableArray<Value*> arguments(call_->ArgumentCount());
1072 for (int i = 0; i < call_->ArgumentCount(); ++i) { 1072 for (int i = 0; i < call_->ArgumentCount(); ++i) {
1073 arguments.Add(call_->PushArgumentAt(i)->value()); 1073 arguments.Add(call_->PushArgumentAt(i)->value());
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 OS::Print("After Inlining of %s\n", flow_graph_-> 1479 OS::Print("After Inlining of %s\n", flow_graph_->
1480 parsed_function().function().ToFullyQualifiedCString()); 1480 parsed_function().function().ToFullyQualifiedCString());
1481 FlowGraphPrinter printer(*flow_graph_); 1481 FlowGraphPrinter printer(*flow_graph_);
1482 printer.PrintBlocks(); 1482 printer.PrintBlocks();
1483 } 1483 }
1484 } 1484 }
1485 } 1485 }
1486 } 1486 }
1487 1487
1488 } // namespace dart 1488 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698