| 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_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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 | 904 |
| 905 void InsertPhi(intptr_t var_index, intptr_t var_count); | 905 void InsertPhi(intptr_t var_index, intptr_t var_count); |
| 906 void RemoveDeadPhis(); | 906 void RemoveDeadPhis(); |
| 907 | 907 |
| 908 intptr_t phi_count() const { return phi_count_; } | 908 intptr_t phi_count() const { return phi_count_; } |
| 909 | 909 |
| 910 virtual void PrintTo(BufferFormatter* f) const; | 910 virtual void PrintTo(BufferFormatter* f) const; |
| 911 virtual void PrintToVisualizer(BufferFormatter* f) const; | 911 virtual void PrintToVisualizer(BufferFormatter* f) const; |
| 912 | 912 |
| 913 private: | 913 private: |
| 914 friend class FlowGraph; // Access to predecessors_ when inlining. |
| 914 virtual void ClearPredecessors() { predecessors_.Clear(); } | 915 virtual void ClearPredecessors() { predecessors_.Clear(); } |
| 915 virtual void AddPredecessor(BlockEntryInstr* predecessor); | 916 virtual void AddPredecessor(BlockEntryInstr* predecessor); |
| 916 | 917 |
| 917 GrowableArray<BlockEntryInstr*> predecessors_; | 918 GrowableArray<BlockEntryInstr*> predecessors_; |
| 918 ZoneGrowableArray<PhiInstr*>* phis_; | 919 ZoneGrowableArray<PhiInstr*>* phis_; |
| 919 intptr_t phi_count_; | 920 intptr_t phi_count_; |
| 920 | 921 |
| 921 DISALLOW_COPY_AND_ASSIGN(JoinEntryInstr); | 922 DISALLOW_COPY_AND_ASSIGN(JoinEntryInstr); |
| 922 }; | 923 }; |
| 923 | 924 |
| (...skipping 3042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3966 ForwardInstructionIterator* current_iterator_; | 3967 ForwardInstructionIterator* current_iterator_; |
| 3967 | 3968 |
| 3968 private: | 3969 private: |
| 3969 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 3970 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 3970 }; | 3971 }; |
| 3971 | 3972 |
| 3972 | 3973 |
| 3973 } // namespace dart | 3974 } // namespace dart |
| 3974 | 3975 |
| 3975 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 3976 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |