| 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 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 static bool TryInlineRecognizedMethod(FlowGraph* flow_graph, | 45 static bool TryInlineRecognizedMethod(FlowGraph* flow_graph, |
| 46 intptr_t receiver_cid, | 46 intptr_t receiver_cid, |
| 47 const Function& target, | 47 const Function& target, |
| 48 Instruction* call, | 48 Instruction* call, |
| 49 Definition* receiver, | 49 Definition* receiver, |
| 50 TokenPosition token_pos, | 50 TokenPosition token_pos, |
| 51 const ICData& ic_data, | 51 const ICData& ic_data, |
| 52 TargetEntryInstr** entry, | 52 TargetEntryInstr** entry, |
| 53 Definition** last); | 53 Definition** last); |
| 54 | 54 |
| 55 bool use_speculative_inlining() const { return use_speculative_inlining_; } |
| 56 |
| 55 private: | 57 private: |
| 56 friend class CallSiteInliner; | 58 friend class CallSiteInliner; |
| 57 | 59 |
| 58 FlowGraph* flow_graph_; | 60 FlowGraph* flow_graph_; |
| 59 GrowableArray<const Function*>* inline_id_to_function_; | 61 GrowableArray<const Function*>* inline_id_to_function_; |
| 60 GrowableArray<TokenPosition>* inline_id_to_token_pos_; | 62 GrowableArray<TokenPosition>* inline_id_to_token_pos_; |
| 61 GrowableArray<intptr_t>* caller_inline_id_; | 63 GrowableArray<intptr_t>* caller_inline_id_; |
| 62 const bool trace_inlining_; | 64 const bool trace_inlining_; |
| 63 const bool use_speculative_inlining_; | 65 const bool use_speculative_inlining_; |
| 64 GrowableArray<intptr_t>* inlining_black_list_; | 66 GrowableArray<intptr_t>* inlining_black_list_; |
| 65 | 67 |
| 66 DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner); | 68 DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner); |
| 67 }; | 69 }; |
| 68 | 70 |
| 69 } // namespace dart | 71 } // namespace dart |
| 70 | 72 |
| 71 #endif // VM_FLOW_GRAPH_INLINER_H_ | 73 #endif // VM_FLOW_GRAPH_INLINER_H_ |
| OLD | NEW |