| 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 RUNTIME_VM_FLOW_GRAPH_INLINER_H_ | 5 #ifndef RUNTIME_VM_FLOW_GRAPH_INLINER_H_ |
| 6 #define RUNTIME_VM_FLOW_GRAPH_INLINER_H_ | 6 #define RUNTIME_VM_FLOW_GRAPH_INLINER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
| 10 | 10 |
| 11 namespace dart { | 11 namespace dart { |
| 12 | 12 |
| 13 class Definition; | 13 class Definition; |
| 14 class Field; | 14 class Field; |
| 15 class FlowGraph; | 15 class FlowGraph; |
| 16 class ForwardInstructionIterator; | 16 class ForwardInstructionIterator; |
| 17 class Function; | 17 class Function; |
| 18 class ICData; |
| 18 class InstanceCallInstr; | 19 class InstanceCallInstr; |
| 19 class Instruction; | 20 class Instruction; |
| 21 class Precompiler; |
| 20 class StaticCallInstr; | 22 class StaticCallInstr; |
| 21 class TargetEntryInstr; | 23 class TargetEntryInstr; |
| 22 class Precompiler; | |
| 23 | 24 |
| 24 class FlowGraphInliner : ValueObject { | 25 class FlowGraphInliner : ValueObject { |
| 25 public: | 26 public: |
| 26 FlowGraphInliner(FlowGraph* flow_graph, | 27 FlowGraphInliner(FlowGraph* flow_graph, |
| 27 GrowableArray<const Function*>* inline_id_to_function, | 28 GrowableArray<const Function*>* inline_id_to_function, |
| 28 GrowableArray<TokenPosition>* inline_id_to_token_pos, | 29 GrowableArray<TokenPosition>* inline_id_to_token_pos, |
| 29 GrowableArray<intptr_t>* caller_inline_id, | 30 GrowableArray<intptr_t>* caller_inline_id, |
| 30 bool use_speculative_inlining, | 31 bool use_speculative_inlining, |
| 31 GrowableArray<intptr_t>* inlining_black_list, | 32 GrowableArray<intptr_t>* inlining_black_list, |
| 32 Precompiler* precompiler); | 33 Precompiler* precompiler); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 const bool use_speculative_inlining_; | 81 const bool use_speculative_inlining_; |
| 81 GrowableArray<intptr_t>* inlining_black_list_; | 82 GrowableArray<intptr_t>* inlining_black_list_; |
| 82 Precompiler* precompiler_; | 83 Precompiler* precompiler_; |
| 83 | 84 |
| 84 DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner); | 85 DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner); |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace dart | 88 } // namespace dart |
| 88 | 89 |
| 89 #endif // RUNTIME_VM_FLOW_GRAPH_INLINER_H_ | 90 #endif // RUNTIME_VM_FLOW_GRAPH_INLINER_H_ |
| OLD | NEW |