| 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 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 parsed_function_(parsed_function), | 79 parsed_function_(parsed_function), |
| 80 still_changing_(false) { } | 80 still_changing_(false) { } |
| 81 virtual ~FlowGraphTypePropagator() { } | 81 virtual ~FlowGraphTypePropagator() { } |
| 82 | 82 |
| 83 const ParsedFunction& parsed_function() const { return parsed_function_; } | 83 const ParsedFunction& parsed_function() const { return parsed_function_; } |
| 84 | 84 |
| 85 void PropagateTypes(); | 85 void PropagateTypes(); |
| 86 | 86 |
| 87 virtual void VisitAssertAssignable(AssertAssignableComp* comp, | 87 virtual void VisitAssertAssignable(AssertAssignableComp* comp, |
| 88 BindInstr* instr); | 88 BindInstr* instr); |
| 89 virtual void VisitAssertBoolean(AssertBooleanComp* comp, | 89 virtual void VisitAssertBoolean(AssertBooleanComp* comp, BindInstr* instr); |
| 90 BindInstr* instr); | 90 virtual void VisitInstanceOf(InstanceOfComp* comp, BindInstr* instr); |
| 91 | 91 |
| 92 virtual void VisitGraphEntry(GraphEntryInstr* graph_entry); | 92 virtual void VisitGraphEntry(GraphEntryInstr* graph_entry); |
| 93 virtual void VisitJoinEntry(JoinEntryInstr* join_entry); | 93 virtual void VisitJoinEntry(JoinEntryInstr* join_entry); |
| 94 virtual void VisitBind(BindInstr* bind); | 94 virtual void VisitBind(BindInstr* bind); |
| 95 virtual void VisitPhi(PhiInstr* phi); | 95 virtual void VisitPhi(PhiInstr* phi); |
| 96 virtual void VisitParameter(ParameterInstr* param); | 96 virtual void VisitParameter(ParameterInstr* param); |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 const ParsedFunction& parsed_function_; | 99 const ParsedFunction& parsed_function_; |
| 100 bool still_changing_; | 100 bool still_changing_; |
| 101 DISALLOW_COPY_AND_ASSIGN(FlowGraphTypePropagator); | 101 DISALLOW_COPY_AND_ASSIGN(FlowGraphTypePropagator); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace dart | 104 } // namespace dart |
| 105 | 105 |
| 106 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 106 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |