| OLD | NEW |
| 1 // Copyright (c) 2012, 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/compiler.h" | 7 #include "vm/compiler.h" |
| 8 #include "vm/flags.h" | 8 #include "vm/flags.h" |
| 9 #include "vm/flow_graph.h" | 9 #include "vm/flow_graph.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| 11 #include "vm/flow_graph_optimizer.h" | 11 #include "vm/flow_graph_optimizer.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 // Helper to get the default value of a formal parameter. | 128 // Helper to get the default value of a formal parameter. |
| 129 static ConstantInstr* GetDefaultValue(intptr_t i, | 129 static ConstantInstr* GetDefaultValue(intptr_t i, |
| 130 const ParsedFunction& parsed_function) { | 130 const ParsedFunction& parsed_function) { |
| 131 return new ConstantInstr(Object::ZoneHandle( | 131 return new ConstantInstr(Object::ZoneHandle( |
| 132 parsed_function.default_parameter_values().At(i))); | 132 parsed_function.default_parameter_values().At(i))); |
| 133 } | 133 } |
| 134 | 134 |
| 135 | 135 |
| 136 // Pair of an argument name and its value. | 136 // Pair of an argument name and its value. |
| 137 struct NamedArgument : ValueObject { | 137 struct NamedArgument { |
| 138 public: | 138 public: |
| 139 String* name; | 139 String* name; |
| 140 Value* value; | 140 Value* value; |
| 141 NamedArgument(String* name, Value* value) | 141 NamedArgument(String* name, Value* value) |
| 142 : name(name), value(value) { } | 142 : name(name), value(value) { } |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 | 145 |
| 146 // Helper to collect information about a callee graph when considering it for | 146 // Helper to collect information about a callee graph when considering it for |
| 147 // inlining. | 147 // inlining. |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 OS::Print("After Inlining of %s\n", flow_graph_-> | 883 OS::Print("After Inlining of %s\n", flow_graph_-> |
| 884 parsed_function().function().ToFullyQualifiedCString()); | 884 parsed_function().function().ToFullyQualifiedCString()); |
| 885 FlowGraphPrinter printer(*flow_graph_); | 885 FlowGraphPrinter printer(*flow_graph_); |
| 886 printer.PrintBlocks(); | 886 printer.PrintBlocks(); |
| 887 } | 887 } |
| 888 } | 888 } |
| 889 } | 889 } |
| 890 } | 890 } |
| 891 | 891 |
| 892 } // namespace dart | 892 } // namespace dart |
| OLD | NEW |