| 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 10 matching lines...) Expand all Loading... |
| 21 virtual ~FlowGraphOptimizer() {} | 21 virtual ~FlowGraphOptimizer() {} |
| 22 | 22 |
| 23 void ApplyICData(); | 23 void ApplyICData(); |
| 24 | 24 |
| 25 void OptimizeComputations(); | 25 void OptimizeComputations(); |
| 26 | 26 |
| 27 void EliminateDeadPhis(); | 27 void EliminateDeadPhis(); |
| 28 | 28 |
| 29 void SelectRepresentations(); | 29 void SelectRepresentations(); |
| 30 | 30 |
| 31 void PropagateSminess(); |
| 32 |
| 31 virtual void VisitStaticCall(StaticCallInstr* instr); | 33 virtual void VisitStaticCall(StaticCallInstr* instr); |
| 32 virtual void VisitInstanceCall(InstanceCallInstr* instr); | 34 virtual void VisitInstanceCall(InstanceCallInstr* instr); |
| 33 virtual void VisitRelationalOp(RelationalOpInstr* instr); | 35 virtual void VisitRelationalOp(RelationalOpInstr* instr); |
| 34 virtual void VisitEqualityCompare(EqualityCompareInstr* instr); | 36 virtual void VisitEqualityCompare(EqualityCompareInstr* instr); |
| 35 virtual void VisitBranch(BranchInstr* instr); | 37 virtual void VisitBranch(BranchInstr* instr); |
| 36 | 38 |
| 37 // TODO(fschneider): Once we get rid of the distinction between Instruction | 39 // TODO(fschneider): Once we get rid of the distinction between Instruction |
| 38 // and computation, this can be made private again. | 40 // and computation, this can be made private again. |
| 39 void InsertBefore(Instruction* instr, | 41 void InsertBefore(Instruction* instr, |
| 40 Definition* defn, | 42 Definition* defn, |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 private: | 150 private: |
| 149 static void OptimizeRecursive( | 151 static void OptimizeRecursive( |
| 150 BlockEntryInstr* entry, | 152 BlockEntryInstr* entry, |
| 151 DirectChainedHashMap<Definition*>* map); | 153 DirectChainedHashMap<Definition*>* map); |
| 152 }; | 154 }; |
| 153 | 155 |
| 154 | 156 |
| 155 } // namespace dart | 157 } // namespace dart |
| 156 | 158 |
| 157 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 159 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |