| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #ifndef VM_FLOW_GRAPH_INLINER_H_ | 5 #ifndef VM_FLOW_GRAPH_INLINER_H_ |
| 6 #define VM_FLOW_GRAPH_INLINER_H_ | 6 #define VM_FLOW_GRAPH_INLINER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| 11 | 11 |
| 12 class FlowGraph; | 12 class FlowGraph; |
| 13 template <typename T> class GrowableArray; |
| 13 | 14 |
| 14 class FlowGraphInliner : ValueObject { | 15 class FlowGraphInliner : ValueObject { |
| 15 public: | 16 public: |
| 16 explicit FlowGraphInliner(FlowGraph* flow_graph) | 17 FlowGraphInliner(FlowGraph* flow_graph, |
| 17 : flow_graph_(flow_graph) { } | 18 const GrowableArray<intptr_t>& deopt_ids) |
| 19 : flow_graph_(flow_graph), |
| 20 uncalled_static_static_call_deopt_ids_(deopt_ids) {} |
| 18 | 21 |
| 19 // The flow graph is destructively updated upon inlining. | 22 // The flow graph is destructively updated upon inlining. |
| 20 void Inline(); | 23 void Inline(); |
| 21 | 24 |
| 22 private: | 25 private: |
| 23 FlowGraph* flow_graph_; | 26 FlowGraph* flow_graph_; |
| 27 const GrowableArray<intptr_t>& uncalled_static_static_call_deopt_ids_; |
| 28 |
| 24 DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner); | 29 DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner); |
| 25 }; | 30 }; |
| 26 | 31 |
| 27 } // namespace dart | 32 } // namespace dart |
| 28 | 33 |
| 29 #endif // VM_FLOW_GRAPH_INLINER_H_ | 34 #endif // VM_FLOW_GRAPH_INLINER_H_ |
| OLD | NEW |