| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 void InsertPhi(intptr_t var_index, intptr_t var_count); | 1147 void InsertPhi(intptr_t var_index, intptr_t var_count); |
| 1148 void RemoveDeadPhis(Definition* replacement); | 1148 void RemoveDeadPhis(Definition* replacement); |
| 1149 | 1149 |
| 1150 void InsertPhi(PhiInstr* phi); | 1150 void InsertPhi(PhiInstr* phi); |
| 1151 | 1151 |
| 1152 virtual void PrintTo(BufferFormatter* f) const; | 1152 virtual void PrintTo(BufferFormatter* f) const; |
| 1153 | 1153 |
| 1154 private: | 1154 private: |
| 1155 // Classes that have access to predecessors_ when inlining. | 1155 // Classes that have access to predecessors_ when inlining. |
| 1156 friend class BlockEntryInstr; | 1156 friend class BlockEntryInstr; |
| 1157 friend class ValueInliningContext; | 1157 friend class InliningContext; |
| 1158 | 1158 |
| 1159 // Direct access to phis_ in order to resize it due to phi elimination. | 1159 // Direct access to phis_ in order to resize it due to phi elimination. |
| 1160 friend class ConstantPropagator; | 1160 friend class ConstantPropagator; |
| 1161 | 1161 |
| 1162 virtual void ClearPredecessors() { predecessors_.Clear(); } | 1162 virtual void ClearPredecessors() { predecessors_.Clear(); } |
| 1163 virtual void AddPredecessor(BlockEntryInstr* predecessor); | 1163 virtual void AddPredecessor(BlockEntryInstr* predecessor); |
| 1164 | 1164 |
| 1165 GrowableArray<BlockEntryInstr*> predecessors_; | 1165 GrowableArray<BlockEntryInstr*> predecessors_; |
| 1166 ZoneGrowableArray<PhiInstr*>* phis_; | 1166 ZoneGrowableArray<PhiInstr*>* phis_; |
| 1167 | 1167 |
| (...skipping 3336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4504 ForwardInstructionIterator* current_iterator_; | 4504 ForwardInstructionIterator* current_iterator_; |
| 4505 | 4505 |
| 4506 private: | 4506 private: |
| 4507 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4507 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4508 }; | 4508 }; |
| 4509 | 4509 |
| 4510 | 4510 |
| 4511 } // namespace dart | 4511 } // namespace dart |
| 4512 | 4512 |
| 4513 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4513 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |