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

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

Issue 2579413002: Revert "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
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/aot_optimizer.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 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
31 // Use ICData to optimize, replace or eliminate instructions. 35 // Use ICData to optimize, replace or eliminate instructions.
32 void ApplyICData(); 36 void ApplyICData();
33 37
34 // Use propagated class ids to optimize, replace or eliminate instructions. 38 // Use propagated class ids to optimize, replace or eliminate instructions.
35 void ApplyClassIds(); 39 void ApplyClassIds();
36 40
37 void ReplaceArrayBoundChecks(); 41 void ReplaceArrayBoundChecks();
38 42
39 virtual void VisitStaticCall(StaticCallInstr* instr); 43 virtual void VisitStaticCall(StaticCallInstr* instr);
40 virtual void VisitInstanceCall(InstanceCallInstr* instr); 44 virtual void VisitInstanceCall(InstanceCallInstr* instr);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 144
141 bool has_unique_no_such_method_; 145 bool has_unique_no_such_method_;
142 146
143 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); 147 DISALLOW_COPY_AND_ASSIGN(AotOptimizer);
144 }; 148 };
145 149
146 150
147 } // namespace dart 151 } // namespace dart
148 152
149 #endif // RUNTIME_VM_AOT_OPTIMIZER_H_ 153 #endif // RUNTIME_VM_AOT_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/aot_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698