| OLD | NEW |
| 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 28 matching lines...) Expand all Loading... |
| 39 bool Canonicalize(); | 39 bool Canonicalize(); |
| 40 | 40 |
| 41 void EliminateDeadPhis(); | 41 void EliminateDeadPhis(); |
| 42 | 42 |
| 43 void SelectRepresentations(); | 43 void SelectRepresentations(); |
| 44 | 44 |
| 45 void InferSmiRanges(); | 45 void InferSmiRanges(); |
| 46 | 46 |
| 47 void AnalyzeTryCatch(); | 47 void AnalyzeTryCatch(); |
| 48 | 48 |
| 49 template <typename T> |
| 50 bool TryInlineRecognizedMethod(const Function& target, |
| 51 T call, |
| 52 const ICData& ic_data, |
| 53 TargetEntryInstr** entry, |
| 54 Definition** last); |
| 55 |
| 49 // Remove environments from the instructions which do not deoptimize. | 56 // Remove environments from the instructions which do not deoptimize. |
| 50 void EliminateEnvironments(); | 57 void EliminateEnvironments(); |
| 51 | 58 |
| 52 virtual void VisitStaticCall(StaticCallInstr* instr); | 59 virtual void VisitStaticCall(StaticCallInstr* instr); |
| 53 virtual void VisitInstanceCall(InstanceCallInstr* instr); | 60 virtual void VisitInstanceCall(InstanceCallInstr* instr); |
| 54 virtual void VisitEqualityCompare(EqualityCompareInstr* instr); | 61 virtual void VisitEqualityCompare(EqualityCompareInstr* instr); |
| 55 virtual void VisitBranch(BranchInstr* instr); | 62 virtual void VisitBranch(BranchInstr* instr); |
| 56 virtual void VisitStrictCompare(StrictCompareInstr* instr); | 63 virtual void VisitStrictCompare(StrictCompareInstr* instr); |
| 57 | 64 |
| 58 void InsertBefore(Instruction* next, | 65 void InsertBefore(Instruction* next, |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 // Optimize spill stores inside try-blocks by identifying values that always | 372 // Optimize spill stores inside try-blocks by identifying values that always |
| 366 // contain a single known constant at catch block entry. | 373 // contain a single known constant at catch block entry. |
| 367 class TryCatchAnalyzer : public AllStatic { | 374 class TryCatchAnalyzer : public AllStatic { |
| 368 public: | 375 public: |
| 369 static void Optimize(FlowGraph* flow_graph); | 376 static void Optimize(FlowGraph* flow_graph); |
| 370 }; | 377 }; |
| 371 | 378 |
| 372 } // namespace dart | 379 } // namespace dart |
| 373 | 380 |
| 374 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 381 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |