Files
sdk/runtime/vm/flow_graph_allocator.h
T
fschneider@google.com 63d4ad7d5f Add new files and data structures for the new register allocator.
This CL adds new files to hold the new register allocator and
adds a parallel-move instructions that will be used to insert
moves for register constraints, spills and phi-resolution.

No new functionality added yet.
Review URL: https://chromiumcodereview.appspot.com//10635020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9027 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 10:59:06 +00:00

29 lines
742 B
C++

// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef VM_FLOW_GRAPH_ALLOCATOR_H_
#define VM_FLOW_GRAPH_ALLOCATOR_H_
#include "vm/growable_array.h"
#include "vm/intermediate_language.h"
namespace dart {
class FlowGraphAllocator : public ValueObject {
public:
explicit FlowGraphAllocator(const GrowableArray<BlockEntryInstr*>& blocks)
: blocks_(blocks) { }
void ResolveConstraints();
private:
const GrowableArray<BlockEntryInstr*>& blocks_;
DISALLOW_COPY_AND_ASSIGN(FlowGraphAllocator);
};
} // namespace dart
#endif // VM_FLOW_GRAPH_ALLOCATOR_H_