Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index ed80bd69811482c87c59e14565e59f273344b6c8..a64915f0a6d9f4243611f9ab5e9825e4e5520428 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -3320,7 +3320,7 @@ TEST(Regress2211) { |
} |
-TEST(IncrementalMarkingClearsTypeFeedbackInfo) { |
+TEST(IncrementalMarkingPreservesMonomorphicCallIC) { |
if (i::FLAG_always_opt) return; |
CcTest::InitializeVM(); |
v8::HandleScope scope(CcTest::isolate()); |
@@ -3355,16 +3355,16 @@ TEST(IncrementalMarkingClearsTypeFeedbackInfo) { |
CHECK_EQ(expected_slots, feedback_vector->ICSlots()); |
int slot1 = 0; |
int slot2 = 1; |
- CHECK(feedback_vector->Get(FeedbackVectorICSlot(slot1))->IsJSFunction()); |
- CHECK(feedback_vector->Get(FeedbackVectorICSlot(slot2))->IsJSFunction()); |
+ CHECK(feedback_vector->Get(FeedbackVectorICSlot(slot1))->IsWeakCell()); |
+ CHECK(feedback_vector->Get(FeedbackVectorICSlot(slot2))->IsWeakCell()); |
SimulateIncrementalMarking(CcTest::heap()); |
CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags); |
- CHECK_EQ(feedback_vector->Get(FeedbackVectorICSlot(slot1)), |
- *TypeFeedbackVector::UninitializedSentinel(CcTest::i_isolate())); |
- CHECK_EQ(feedback_vector->Get(FeedbackVectorICSlot(slot2)), |
- *TypeFeedbackVector::UninitializedSentinel(CcTest::i_isolate())); |
+ CHECK(!WeakCell::cast(feedback_vector->Get(FeedbackVectorICSlot(slot1))) |
+ ->cleared()); |
+ CHECK(!WeakCell::cast(feedback_vector->Get(FeedbackVectorICSlot(slot2))) |
+ ->cleared()); |
} |