Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: runtime/vm/flow_graph_inliner.h

Issue 2097413002: Improve inlining of recognized methods in AOT. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/aot_optimizer.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/aot_optimizer.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698