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