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