| 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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 error = isolate->object_store()->sticky_error(); | 746 error = isolate->object_store()->sticky_error(); |
| 747 isolate->object_store()->clear_sticky_error(); | 747 isolate->object_store()->clear_sticky_error(); |
| 748 isolate->set_deopt_id(prev_deopt_id); | 748 isolate->set_deopt_id(prev_deopt_id); |
| 749 TRACE_INLINING(OS::Print(" Bailout: %s\n", error.ToErrorCString())); | 749 TRACE_INLINING(OS::Print(" Bailout: %s\n", error.ToErrorCString())); |
| 750 return false; | 750 return false; |
| 751 } | 751 } |
| 752 } | 752 } |
| 753 | 753 |
| 754 void PrintInlinedInfo(const Function& top) { | 754 void PrintInlinedInfo(const Function& top) { |
| 755 if (inlined_info_.length() > 0) { | 755 if (inlined_info_.length() > 0) { |
| 756 OS::Print("Inlining into: '%s' growth: %f (%"Pd" -> %"Pd")\n", | 756 OS::Print("Inlining into: '%s' growth: %f (%" Pd " -> %" Pd ")\n", |
| 757 top.ToFullyQualifiedCString(), | 757 top.ToFullyQualifiedCString(), |
| 758 GrowthFactor(), | 758 GrowthFactor(), |
| 759 initial_size_, | 759 initial_size_, |
| 760 inlined_size_); | 760 inlined_size_); |
| 761 PrintInlinedInfoFor(top, 1); | 761 PrintInlinedInfoFor(top, 1); |
| 762 } | 762 } |
| 763 } | 763 } |
| 764 | 764 |
| 765 private: | 765 private: |
| 766 friend class PolymorphicInliner; | 766 friend class PolymorphicInliner; |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1643 OS::Print("After Inlining of %s\n", flow_graph_-> | 1643 OS::Print("After Inlining of %s\n", flow_graph_-> |
| 1644 parsed_function().function().ToFullyQualifiedCString()); | 1644 parsed_function().function().ToFullyQualifiedCString()); |
| 1645 FlowGraphPrinter printer(*flow_graph_); | 1645 FlowGraphPrinter printer(*flow_graph_); |
| 1646 printer.PrintBlocks(); | 1646 printer.PrintBlocks(); |
| 1647 } | 1647 } |
| 1648 } | 1648 } |
| 1649 } | 1649 } |
| 1650 } | 1650 } |
| 1651 | 1651 |
| 1652 } // namespace dart | 1652 } // namespace dart |
| OLD | NEW |