OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #ifndef VM_FLOW_GRAPH_OPTIMIZER_H_ |
| 6 #define VM_FLOW_GRAPH_OPTIMIZER_H_ |
| 7 |
| 8 #include "vm/intermediate_language.h" |
| 9 |
| 10 namespace dart { |
| 11 |
| 12 template <typename T> class GrowableArray; |
| 13 |
| 14 class FlowGraphOptimizer : public FlowGraphVisitor { |
| 15 public: |
| 16 explicit FlowGraphOptimizer(const GrowableArray<BlockEntryInstr*>& blocks) |
| 17 : FlowGraphVisitor(blocks) {} |
| 18 virtual ~FlowGraphOptimizer() {} |
| 19 |
| 20 void ApplyICData(); |
| 21 |
| 22 virtual void VisitInstanceCall(InstanceCallComp* comp); |
| 23 |
| 24 virtual void VisitDo(DoInstr* instr); |
| 25 virtual void VisitBind(BindInstr* instr); |
| 26 |
| 27 private: |
| 28 void VisitBlocks(); |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer); |
| 31 }; |
| 32 |
| 33 } // namespace dart |
| 34 |
| 35 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
OLD | NEW |