Files
sdk/runtime/vm/flow_graph_inliner.h
T
vegorov@google.com 9fc1b54794 Store optimized flow graph statistics on the function itself.
This gives a good estimate for an early bailout from the inlining attempt.

BUG=

Review URL: https://codereview.chromium.org//11567012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16212 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 15:22:16 +00:00

33 lines
804 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_INLINER_H_
#define VM_FLOW_GRAPH_INLINER_H_
#include "vm/allocation.h"
namespace dart {
class FlowGraph;
template <typename T> class GrowableArray;
class FlowGraphInliner : ValueObject {
public:
explicit FlowGraphInliner(FlowGraph* flow_graph)
: flow_graph_(flow_graph) {}
// The flow graph is destructively updated upon inlining.
void Inline();
static void CollectGraphInfo(FlowGraph* flow_graph);
private:
FlowGraph* flow_graph_;
DISALLOW_COPY_AND_ASSIGN(FlowGraphInliner);
};
} // namespace dart
#endif // VM_FLOW_GRAPH_INLINER_H_