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

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

Issue 2273943002: VM: More refactoring of recognized methods inlining. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 3 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/flow_graph.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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 InstanceCallInstr* call); 51 InstanceCallInstr* call);
52 52
53 static bool TryReplaceStaticCallWithInline( 53 static bool TryReplaceStaticCallWithInline(
54 FlowGraph* flow_graph, 54 FlowGraph* flow_graph,
55 ForwardInstructionIterator* iterator, 55 ForwardInstructionIterator* iterator,
56 StaticCallInstr* call); 56 StaticCallInstr* call);
57 57
58 static bool TryInlineRecognizedMethod(FlowGraph* flow_graph, 58 static bool TryInlineRecognizedMethod(FlowGraph* flow_graph,
59 intptr_t receiver_cid, 59 intptr_t receiver_cid,
60 const Function& target, 60 const Function& target,
61 Instruction* call, 61 Definition* call,
62 Definition* receiver, 62 Definition* receiver,
63 TokenPosition token_pos, 63 TokenPosition token_pos,
64 const ICData& ic_data, 64 const ICData& ic_data,
65 TargetEntryInstr** entry, 65 TargetEntryInstr** entry,
66 Definition** last); 66 Definition** last);
67 67
68 bool use_speculative_inlining() const { return use_speculative_inlining_; } 68 bool use_speculative_inlining() const { return use_speculative_inlining_; }
69 69
70 private: 70 private:
71 friend class CallSiteInliner; 71 friend class CallSiteInliner;
72 72
73 FlowGraph* flow_graph_; 73 FlowGraph* flow_graph_;
74 GrowableArray<const Function*>* inline_id_to_function_; 74 GrowableArray<const Function*>* inline_id_to_function_;
75 GrowableArray<TokenPosition>* inline_id_to_token_pos_; 75 GrowableArray<TokenPosition>* inline_id_to_token_pos_;
76 GrowableArray<intptr_t>* caller_inline_id_; 76 GrowableArray<intptr_t>* caller_inline_id_;
77 const bool trace_inlining_; 77 const bool trace_inlining_;
78 const bool use_speculative_inlining_; 78 const bool use_speculative_inlining_;
79 GrowableArray<intptr_t>* inlining_black_list_; 79 GrowableArray<intptr_t>* inlining_black_list_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner); 81 DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner);
82 }; 82 };
83 83
84 } // namespace dart 84 } // namespace dart
85 85
86 #endif // VM_FLOW_GRAPH_INLINER_H_ 86 #endif // VM_FLOW_GRAPH_INLINER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698