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..c242f6351676054a3947d097271d453003aa3e15 |
--- /dev/null |
+++ b/src/compiler/js-inlining.h |
@@ -0,0 +1,35 @@ |
+// 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/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_ |