| 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. |
| 913 virtual void ClearPredecessors() { predecessors_.Clear(); } | 914 virtual void ClearPredecessors() { predecessors_.Clear(); } |
| 914 virtual void AddPredecessor(BlockEntryInstr* predecessor); | 915 virtual void AddPredecessor(BlockEntryInstr* predecessor); |
| 915 | 916 |
| 916 GrowableArray<BlockEntryInstr*> predecessors_; | 917 GrowableArray<BlockEntryInstr*> predecessors_; |
| 917 ZoneGrowableArray<PhiInstr*>* phis_; | 918 ZoneGrowableArray<PhiInstr*>* phis_; |
| 918 intptr_t phi_count_; | 919 intptr_t phi_count_; |
| 919 | 920 |
| 920 DISALLOW_COPY_AND_ASSIGN(JoinEntryInstr); | 921 DISALLOW_COPY_AND_ASSIGN(JoinEntryInstr); |
| 921 }; | 922 }; |
| 922 | 923 |
| (...skipping 3022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3945 ForwardInstructionIterator* current_iterator_; | 3946 ForwardInstructionIterator* current_iterator_; |
| 3946 | 3947 |
| 3947 private: | 3948 private: |
| 3948 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 3949 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 3949 }; | 3950 }; |
| 3950 | 3951 |
| 3951 | 3952 |
| 3952 } // namespace dart | 3953 } // namespace dart |
| 3953 | 3954 |
| 3954 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 3955 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |