OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #ifndef VM_FLOW_GRAPH_ALLOCATOR_H_ |
| 6 #define VM_FLOW_GRAPH_ALLOCATOR_H_ |
| 7 |
| 8 #include "vm/growable_array.h" |
| 9 #include "vm/intermediate_language.h" |
| 10 |
| 11 namespace dart { |
| 12 |
| 13 class FlowGraphAllocator : public ValueObject { |
| 14 public: |
| 15 explicit FlowGraphAllocator(const GrowableArray<BlockEntryInstr*>& blocks) |
| 16 : blocks_(blocks) { } |
| 17 |
| 18 void ResolveConstraints(); |
| 19 |
| 20 private: |
| 21 const GrowableArray<BlockEntryInstr*>& blocks_; |
| 22 |
| 23 DISALLOW_COPY_AND_ASSIGN(FlowGraphAllocator); |
| 24 }; |
| 25 |
| 26 } // namespace dart |
| 27 |
| 28 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ |
OLD | NEW |