63d4ad7d5f
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
29 lines
742 B
C++
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_
|