Chromium Code Reviews| Index: src/compiler/js-inlining.h |
| diff --git a/src/compiler/js-inlining.h b/src/compiler/js-inlining.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0734037344d9480b2635baa81e9fa22101c3bfce |
| --- /dev/null |
| +++ b/src/compiler/js-inlining.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2014 the V8 project authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef V8_COMPILER_JS_INLINING_H_ |
| +#define V8_COMPILER_JS_INLINING_H_ |
| + |
| +#include "src/compiler/graph-reducer.h" |
| +#include "src/compiler/js-graph.h" |
| +#include "src/contexts.h" |
|
Michael Starzinger
2014/08/14 10:36:22
nit: Both the graph-reducer.h and the contexts.h i
sigurds
2014/08/19 11:31:19
Done.
|
| +#include "src/v8.h" |
| + |
| +namespace v8 { |
| +namespace internal { |
| +namespace compiler { |
| + |
| +class JSInliner { |
| + public: |
| + JSInliner(CompilationInfo* info, JSGraph* jsgraph) |
| + : info_(info), jsgraph_(jsgraph) {} |
| + |
| + void Inline(); |
| + void TryInlineCall(Node* node); |
| + |
| + private: |
| + friend class InlinerVisitor; |
| + CompilationInfo* info_; |
| + JSGraph* jsgraph_; |
| + |
| + static void UnifyReturn(Graph* graph); |
| +}; |
| +} |
| +} |
| +} // namespace v8::internal::compiler |
| + |
| +#endif // V8_COMPILER_JS_INLINING_H_ |