| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |