| 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_FLOW_GRAPH_ALLOCATOR_H_ | 5 #ifndef VM_FLOW_GRAPH_ALLOCATOR_H_ |
| 6 #define VM_FLOW_GRAPH_ALLOCATOR_H_ | 6 #define VM_FLOW_GRAPH_ALLOCATOR_H_ |
| 7 | 7 |
| 8 #include "vm/growable_array.h" | 8 #include "vm/growable_array.h" |
| 9 #include "vm/intermediate_language.h" | 9 #include "vm/intermediate_language.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 phis_(10) { } | 25 phis_(10) { } |
| 26 | 26 |
| 27 BitVector* Get(PhiInstr* phi); | 27 BitVector* Get(PhiInstr* phi); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 void AddPhi(PhiInstr* phi); | 30 void AddPhi(PhiInstr* phi); |
| 31 void Compute(); | 31 void Compute(); |
| 32 | 32 |
| 33 const FlowGraph& flow_graph_; | 33 const FlowGraph& flow_graph_; |
| 34 GrowableArray<PhiInstr*> phis_; | 34 GrowableArray<PhiInstr*> phis_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(ReachingDefs); |
| 35 }; | 37 }; |
| 36 | 38 |
| 37 | 39 |
| 38 class FlowGraphAllocator : public ValueObject { | 40 class FlowGraphAllocator : public ValueObject { |
| 39 public: | 41 public: |
| 40 // Number of stack slots needed for a double spill slot. | 42 // Number of stack slots needed for a double spill slot. |
| 41 static const intptr_t kDoubleSpillSlotFactor = kDoubleSize / kWordSize; | 43 static const intptr_t kDoubleSpillSlotFactor = kDoubleSize / kWordSize; |
| 42 | 44 |
| 43 explicit FlowGraphAllocator(const FlowGraph& flow_graph); | 45 explicit FlowGraphAllocator(const FlowGraph& flow_graph); |
| 44 | 46 |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 | 659 |
| 658 AllocationFinger finger_; | 660 AllocationFinger finger_; |
| 659 | 661 |
| 660 DISALLOW_COPY_AND_ASSIGN(LiveRange); | 662 DISALLOW_COPY_AND_ASSIGN(LiveRange); |
| 661 }; | 663 }; |
| 662 | 664 |
| 663 | 665 |
| 664 } // namespace dart | 666 } // namespace dart |
| 665 | 667 |
| 666 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ | 668 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ |
| OLD | NEW |