| 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 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 return true; | 1058 return true; |
| 1059 } | 1059 } |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 return false; | 1062 return false; |
| 1063 } | 1063 } |
| 1064 | 1064 |
| 1065 | 1065 |
| 1066 bool PolymorphicInliner::TryInlining(intptr_t receiver_cid, | 1066 bool PolymorphicInliner::TryInlining(intptr_t receiver_cid, |
| 1067 const Function& target) { | 1067 const Function& target) { |
| 1068 if (!target.is_optimizable()) { | 1068 if (!target.IsOptimizable()) { |
| 1069 if (TryInlineRecognizedMethod(receiver_cid, target)) { | 1069 if (TryInlineRecognizedMethod(receiver_cid, target)) { |
| 1070 owner_->inlined_ = true; | 1070 owner_->inlined_ = true; |
| 1071 return true; | 1071 return true; |
| 1072 } | 1072 } |
| 1073 return false; | 1073 return false; |
| 1074 } | 1074 } |
| 1075 | 1075 |
| 1076 GrowableArray<Value*> arguments(call_->ArgumentCount()); | 1076 GrowableArray<Value*> arguments(call_->ArgumentCount()); |
| 1077 for (int i = 0; i < call_->ArgumentCount(); ++i) { | 1077 for (int i = 0; i < call_->ArgumentCount(); ++i) { |
| 1078 arguments.Add(call_->PushArgumentAt(i)->value()); | 1078 arguments.Add(call_->PushArgumentAt(i)->value()); |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1484 OS::Print("After Inlining of %s\n", flow_graph_-> | 1484 OS::Print("After Inlining of %s\n", flow_graph_-> |
| 1485 parsed_function().function().ToFullyQualifiedCString()); | 1485 parsed_function().function().ToFullyQualifiedCString()); |
| 1486 FlowGraphPrinter printer(*flow_graph_); | 1486 FlowGraphPrinter printer(*flow_graph_); |
| 1487 printer.PrintBlocks(); | 1487 printer.PrintBlocks(); |
| 1488 } | 1488 } |
| 1489 } | 1489 } |
| 1490 } | 1490 } |
| 1491 } | 1491 } |
| 1492 | 1492 |
| 1493 } // namespace dart | 1493 } // namespace dart |
| OLD | NEW |