Index: test/cctest/test-feedback-vector.cc |
diff --git a/test/cctest/test-feedback-vector.cc b/test/cctest/test-feedback-vector.cc |
index f1f894e02d7b8c8e1eff063e2abb90a34f975f1a..0750f82b89f5ccaa8b36efb18ebc24c1229c5115 100644 |
--- a/test/cctest/test-feedback-vector.cc |
+++ b/test/cctest/test-feedback-vector.cc |
@@ -173,7 +173,7 @@ TEST(VectorICProfilerStatistics) { |
CHECK_EQ(0, feedback_info->ic_generic_count()); |
Handle<TypeFeedbackVector> feedback_vector = |
handle(f->shared()->feedback_vector(), isolate); |
- int ic_slot = 1; |
+ int ic_slot = 0; |
CallICNexus nexus(feedback_vector, FeedbackVectorICSlot(ic_slot)); |
CHECK_EQ(1, feedback_vector->ic_with_type_info_count()); |
CHECK_EQ(0, feedback_vector->ic_generic_count()); |
@@ -222,7 +222,7 @@ TEST(VectorCallICStates) { |
// There should be one IC. |
Handle<TypeFeedbackVector> feedback_vector = |
Handle<TypeFeedbackVector>(f->shared()->feedback_vector(), isolate); |
- FeedbackVectorICSlot slot(1); |
+ FeedbackVectorICSlot slot(0); |
CallICNexus nexus(feedback_vector, slot); |
CHECK_EQ(MONOMORPHIC, nexus.StateFromFeedback()); |
// CallIC doesn't return map feedback. |
@@ -264,7 +264,7 @@ TEST(VectorLoadICStates) { |
// There should be one IC. |
Handle<TypeFeedbackVector> feedback_vector = |
Handle<TypeFeedbackVector>(f->shared()->feedback_vector(), isolate); |
- FeedbackVectorICSlot slot(1); |
+ FeedbackVectorICSlot slot(0); |
LoadICNexus nexus(feedback_vector, slot); |
CHECK_EQ(PREMONOMORPHIC, nexus.StateFromFeedback()); |
@@ -322,8 +322,8 @@ TEST(VectorLoadICSlotSharing) { |
// There should be one IC slot. |
Handle<TypeFeedbackVector> feedback_vector = |
Handle<TypeFeedbackVector>(f->shared()->feedback_vector(), isolate); |
- CHECK_EQ(2, feedback_vector->ICSlots()); |
- FeedbackVectorICSlot slot(1); |
+ CHECK_EQ(1, feedback_vector->ICSlots()); |
+ FeedbackVectorICSlot slot(0); |
LoadICNexus nexus(feedback_vector, slot); |
CHECK_EQ(MONOMORPHIC, nexus.StateFromFeedback()); |
} |
@@ -346,7 +346,7 @@ TEST(VectorLoadICOnSmi) { |
// There should be one IC. |
Handle<TypeFeedbackVector> feedback_vector = |
Handle<TypeFeedbackVector>(f->shared()->feedback_vector(), isolate); |
- FeedbackVectorICSlot slot(1); |
+ FeedbackVectorICSlot slot(0); |
LoadICNexus nexus(feedback_vector, slot); |
CHECK_EQ(PREMONOMORPHIC, nexus.StateFromFeedback()); |