Index: test/cctest/test-feedback-vector.cc |
diff --git a/test/cctest/test-feedback-vector.cc b/test/cctest/test-feedback-vector.cc |
index 2b6fbf06d9214066333be0dbb5574e96506a1243..6194a47090863c54cbfa2f01f7de0c2febf42838 100644 |
--- a/test/cctest/test-feedback-vector.cc |
+++ b/test/cctest/test-feedback-vector.cc |
@@ -269,6 +269,11 @@ TEST(VectorCallCounts) { |
CompileRun("f(foo); f(foo);"); |
CHECK_EQ(MONOMORPHIC, nexus.StateFromFeedback()); |
CHECK_EQ(3, nexus.ExtractCallCount()); |
+ |
+ // Send the IC megamorphic, but we should still have incrementing counts. |
+ CompileRun("f(function() { return 12; });"); |
+ CHECK_EQ(GENERIC, nexus.StateFromFeedback()); |
+ CHECK_EQ(4, nexus.ExtractCallCount()); |
} |
TEST(VectorConstructCounts) { |