Index: test/cctest/compiler/test-run-inlining.cc |
diff --git a/test/cctest/compiler/test-run-inlining.cc b/test/cctest/compiler/test-run-inlining.cc |
index 2ab72172278f034d957e3901f401720dc314067c..3de929cbc81ee03a7dffc112ec3063c7c245dd47 100644 |
--- a/test/cctest/compiler/test-run-inlining.cc |
+++ b/test/cctest/compiler/test-run-inlining.cc |
@@ -78,6 +78,20 @@ TEST(SimpleInliningDeopt) { |
} |
+TEST(SimpleInliningDeoptSelf) { |
+ FunctionTester T( |
+ "(function(){" |
+ " function foo(s) { %_DeoptimizeNow(); return s; };" |
+ " function bar(s, t) { return foo(s); };" |
+ " return bar;" |
+ "})();", |
+ kInlineFlags); |
+ |
+ InstallAssertInlineCountHelper(CcTest::isolate()); |
+ T.CheckCall(T.Val(1), T.Val(1), T.Val(2)); |
+} |
+ |
+ |
TEST(SimpleInliningContext) { |
FunctionTester T( |
"(function () {" |