| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Returns true if any instructions were canonicalized away. | 38 // Returns true if any instructions were canonicalized away. |
| 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(); |
| 48 |
| 47 virtual void VisitStaticCall(StaticCallInstr* instr); | 49 virtual void VisitStaticCall(StaticCallInstr* instr); |
| 48 virtual void VisitInstanceCall(InstanceCallInstr* instr); | 50 virtual void VisitInstanceCall(InstanceCallInstr* instr); |
| 49 virtual void VisitRelationalOp(RelationalOpInstr* instr); | 51 virtual void VisitRelationalOp(RelationalOpInstr* instr); |
| 50 virtual void VisitEqualityCompare(EqualityCompareInstr* instr); | 52 virtual void VisitEqualityCompare(EqualityCompareInstr* instr); |
| 51 virtual void VisitBranch(BranchInstr* instr); | 53 virtual void VisitBranch(BranchInstr* instr); |
| 52 virtual void VisitStrictCompare(StrictCompareInstr* instr); | 54 virtual void VisitStrictCompare(StrictCompareInstr* instr); |
| 53 | 55 |
| 54 void InsertBefore(Instruction* next, | 56 void InsertBefore(Instruction* next, |
| 55 Instruction* instr, | 57 Instruction* instr, |
| 56 Environment* env, | 58 Environment* env, |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 // platform. | 320 // platform. |
| 319 class IfConverter : public AllStatic { | 321 class IfConverter : public AllStatic { |
| 320 public: | 322 public: |
| 321 static void Simplify(FlowGraph* flow_graph); | 323 static void Simplify(FlowGraph* flow_graph); |
| 322 }; | 324 }; |
| 323 | 325 |
| 324 | 326 |
| 325 } // namespace dart | 327 } // namespace dart |
| 326 | 328 |
| 327 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 329 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |