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

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

Issue 2572423004: Reapply "Save and restore feedback from JIT." (Closed)
Patch Set: Created 4 years 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
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 RUNTIME_VM_AOT_OPTIMIZER_H_ 5 #ifndef RUNTIME_VM_AOT_OPTIMIZER_H_
6 #define RUNTIME_VM_AOT_OPTIMIZER_H_ 6 #define RUNTIME_VM_AOT_OPTIMIZER_H_
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/flow_graph.h" 9 #include "vm/flow_graph.h"
10 10
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 AotOptimizer(Precompiler* precompiler, 22 AotOptimizer(Precompiler* precompiler,
23 FlowGraph* flow_graph, 23 FlowGraph* flow_graph,
24 bool use_speculative_inlining, 24 bool use_speculative_inlining,
25 GrowableArray<intptr_t>* inlining_black_list); 25 GrowableArray<intptr_t>* inlining_black_list);
26 26
27 virtual ~AotOptimizer() {} 27 virtual ~AotOptimizer() {}
28 28
29 FlowGraph* flow_graph() const { return flow_graph_; } 29 FlowGraph* flow_graph() const { return flow_graph_; }
30 30
31 // Add ICData to InstanceCalls, so that optimizations can be run on them.
32 // TODO(srdjan): StaticCals as well?
33 void PopulateWithICData();
34
35 // Use ICData to optimize, replace or eliminate instructions. 31 // Use ICData to optimize, replace or eliminate instructions.
36 void ApplyICData(); 32 void ApplyICData();
37 33
38 // Use propagated class ids to optimize, replace or eliminate instructions. 34 // Use propagated class ids to optimize, replace or eliminate instructions.
39 void ApplyClassIds(); 35 void ApplyClassIds();
40 36
41 void ReplaceArrayBoundChecks(); 37 void ReplaceArrayBoundChecks();
42 38
43 virtual void VisitStaticCall(StaticCallInstr* instr); 39 virtual void VisitStaticCall(StaticCallInstr* instr);
44 virtual void VisitInstanceCall(InstanceCallInstr* instr); 40 virtual void VisitInstanceCall(InstanceCallInstr* instr);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 140
145 bool has_unique_no_such_method_; 141 bool has_unique_no_such_method_;
146 142
147 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); 143 DISALLOW_COPY_AND_ASSIGN(AotOptimizer);
148 }; 144 };
149 145
150 146
151 } // namespace dart 147 } // namespace dart
152 148
153 #endif // RUNTIME_VM_AOT_OPTIMIZER_H_ 149 #endif // RUNTIME_VM_AOT_OPTIMIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698