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

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

Issue 15779006: Add deoptimization history to optimized functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
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_OPTIMIZER_H_ 5 #ifndef VM_FLOW_GRAPH_OPTIMIZER_H_
6 #define VM_FLOW_GRAPH_OPTIMIZER_H_ 6 #define VM_FLOW_GRAPH_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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Loop invariant code motion. 193 // Loop invariant code motion.
194 class LICM : public ValueObject { 194 class LICM : public ValueObject {
195 public: 195 public:
196 explicit LICM(FlowGraph* flow_graph); 196 explicit LICM(FlowGraph* flow_graph);
197 197
198 void Optimize(); 198 void Optimize();
199 199
200 private: 200 private:
201 FlowGraph* flow_graph() const { return flow_graph_; } 201 FlowGraph* flow_graph() const { return flow_graph_; }
202 202
203 bool MayHoist(Instruction* instr, BlockEntryInstr* pre_header);
204
203 void Hoist(ForwardInstructionIterator* it, 205 void Hoist(ForwardInstructionIterator* it,
204 BlockEntryInstr* pre_header, 206 BlockEntryInstr* pre_header,
205 Instruction* current); 207 Instruction* current);
206 208
207 void TryHoistCheckSmiThroughPhi(ForwardInstructionIterator* it, 209 void TryHoistCheckSmiThroughPhi(ForwardInstructionIterator* it,
208 BlockEntryInstr* header, 210 BlockEntryInstr* header,
209 BlockEntryInstr* pre_header, 211 BlockEntryInstr* pre_header,
210 CheckSmiInstr* current); 212 CheckSmiInstr* current);
211 213
212 FlowGraph* const flow_graph_; 214 FlowGraph* const flow_graph_;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // Optimize spill stores inside try-blocks by identifying values that always 363 // Optimize spill stores inside try-blocks by identifying values that always
362 // contain a single known constant at catch block entry. 364 // contain a single known constant at catch block entry.
363 class TryCatchAnalyzer : public AllStatic { 365 class TryCatchAnalyzer : public AllStatic {
364 public: 366 public:
365 static void Optimize(FlowGraph* flow_graph); 367 static void Optimize(FlowGraph* flow_graph);
366 }; 368 };
367 369
368 } // namespace dart 370 } // namespace dart
369 371
370 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 372 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698