Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: vm/flow_graph_allocator.h

Issue 10635020: Add new files and data structures for the new register allocator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/compiler.cc ('k') | vm/flow_graph_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/flow_graph_allocator.h
===================================================================
--- vm/flow_graph_allocator.h (revision 0)
+++ vm/flow_graph_allocator.h (revision 0)
@@ -0,0 +1,28 @@
+// 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 {
srdjan 2012/06/22 14:10:20 Maybe add a comment that this is a register alloca
+
+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_
Property changes on: vm/flow_graph_allocator.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « vm/compiler.cc ('k') | vm/flow_graph_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698