| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 virtual void VisitAssertAssignable(AssertAssignableComp* comp, | 90 virtual void VisitAssertAssignable(AssertAssignableComp* comp, |
| 91 BindInstr* instr); | 91 BindInstr* instr); |
| 92 virtual void VisitAssertBoolean(AssertBooleanComp* comp, BindInstr* instr); | 92 virtual void VisitAssertBoolean(AssertBooleanComp* comp, BindInstr* instr); |
| 93 virtual void VisitInstanceOf(InstanceOfComp* comp, BindInstr* instr); | 93 virtual void VisitInstanceOf(InstanceOfComp* comp, BindInstr* instr); |
| 94 | 94 |
| 95 virtual void VisitGraphEntry(GraphEntryInstr* graph_entry); | 95 virtual void VisitGraphEntry(GraphEntryInstr* graph_entry); |
| 96 virtual void VisitJoinEntry(JoinEntryInstr* join_entry); | 96 virtual void VisitJoinEntry(JoinEntryInstr* join_entry); |
| 97 virtual void VisitBind(BindInstr* bind); | 97 virtual void VisitBind(BindInstr* bind); |
| 98 virtual void VisitPhi(PhiInstr* phi); | 98 virtual void VisitPhi(PhiInstr* phi); |
| 99 virtual void VisitParameter(ParameterInstr* param); | 99 virtual void VisitParameter(ParameterInstr* param); |
| 100 virtual void VisitPushArgument(PushArgumentInstr* bind); |
| 100 | 101 |
| 101 private: | 102 private: |
| 102 const ParsedFunction& parsed_function_; | 103 const ParsedFunction& parsed_function_; |
| 103 const bool is_ssa_; // TODO(regis): Remove once virtual frame backend is | 104 const bool is_ssa_; // TODO(regis): Remove once virtual frame backend is |
| 104 // removed. | 105 // removed. |
| 105 bool still_changing_; | 106 bool still_changing_; |
| 106 DISALLOW_COPY_AND_ASSIGN(FlowGraphTypePropagator); | 107 DISALLOW_COPY_AND_ASSIGN(FlowGraphTypePropagator); |
| 107 }; | 108 }; |
| 108 | 109 |
| 109 } // namespace dart | 110 } // namespace dart |
| 110 | 111 |
| 111 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 112 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |