| 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 void ApplyICData(); | 21 void ApplyICData(); |
| 22 | 22 |
| 23 void OptimizeComputations(); | 23 void OptimizeComputations(); |
| 24 | 24 |
| 25 virtual void VisitStaticCall(StaticCallComp* comp, BindInstr* instr); | 25 virtual void VisitStaticCall(StaticCallComp* comp, BindInstr* instr); |
| 26 virtual void VisitInstanceCall(InstanceCallComp* comp, BindInstr* instr); | 26 virtual void VisitInstanceCall(InstanceCallComp* comp, BindInstr* instr); |
| 27 virtual void VisitRelationalOp(RelationalOpComp* comp, BindInstr* instr); | 27 virtual void VisitRelationalOp(RelationalOpComp* comp, BindInstr* instr); |
| 28 virtual void VisitEqualityCompare(EqualityCompareComp* comp, | 28 virtual void VisitEqualityCompare(EqualityCompareComp* comp, |
| 29 BindInstr* instr); | 29 BindInstr* instr); |
| 30 virtual void VisitBind(BindInstr* instr); | 30 virtual void VisitBind(BindInstr* instr); |
| 31 virtual void VisitBranch(BranchInstr* instr); |
| 31 | 32 |
| 32 private: | 33 private: |
| 33 bool TryReplaceWithArrayOp(BindInstr* instr, | 34 bool TryReplaceWithArrayOp(BindInstr* instr, |
| 34 InstanceCallComp* comp, | 35 InstanceCallComp* comp, |
| 35 Token::Kind op_kind); | 36 Token::Kind op_kind); |
| 36 bool TryReplaceWithBinaryOp(BindInstr* instr, | 37 bool TryReplaceWithBinaryOp(BindInstr* instr, |
| 37 InstanceCallComp* comp, | 38 InstanceCallComp* comp, |
| 38 Token::Kind op_kind); | 39 Token::Kind op_kind); |
| 39 bool TryReplaceWithUnaryOp(BindInstr* instr, | 40 bool TryReplaceWithUnaryOp(BindInstr* instr, |
| 40 InstanceCallComp* comp, | 41 InstanceCallComp* comp, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 private: | 121 private: |
| 121 const GrowableArray<BlockEntryInstr*>& blocks_; | 122 const GrowableArray<BlockEntryInstr*>& blocks_; |
| 122 | 123 |
| 123 DISALLOW_COPY_AND_ASSIGN(LocalCSE); | 124 DISALLOW_COPY_AND_ASSIGN(LocalCSE); |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 | 127 |
| 127 } // namespace dart | 128 } // namespace dart |
| 128 | 129 |
| 129 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 130 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |