Index: test/cctest/test-feedback-vector.cc |
diff --git a/test/cctest/test-feedback-vector.cc b/test/cctest/test-feedback-vector.cc |
index 4322e746e28881739e2d224ff5100ab187ab60f8..2b6fbf06d9214066333be0dbb5574e96506a1243 100644 |
--- a/test/cctest/test-feedback-vector.cc |
+++ b/test/cctest/test-feedback-vector.cc |
@@ -199,8 +199,6 @@ TEST(VectorCallICStates) { |
LocalContext context; |
v8::HandleScope scope(context->GetIsolate()); |
Isolate* isolate = CcTest::i_isolate(); |
- Heap* heap = isolate->heap(); |
- |
// Make sure function f has a call that uses a type feedback slot. |
CompileRun( |
"function foo() { return 17; }" |
@@ -219,7 +217,7 @@ TEST(VectorCallICStates) { |
CHECK_EQ(GENERIC, nexus.StateFromFeedback()); |
// After a collection, state should remain GENERIC. |
- heap->CollectAllGarbage(); |
+ CcTest::CollectAllGarbage(i::Heap::kFinalizeIncrementalMarkingMask); |
CHECK_EQ(GENERIC, nexus.StateFromFeedback()); |
} |
@@ -229,8 +227,6 @@ TEST(VectorCallFeedbackForArray) { |
LocalContext context; |
v8::HandleScope scope(context->GetIsolate()); |
Isolate* isolate = CcTest::i_isolate(); |
- Heap* heap = isolate->heap(); |
- |
// Make sure function f has a call that uses a type feedback slot. |
CompileRun( |
"function foo() { return 17; }" |
@@ -246,7 +242,7 @@ TEST(VectorCallFeedbackForArray) { |
CHECK_EQ(MONOMORPHIC, nexus.StateFromFeedback()); |
CHECK(nexus.GetFeedback()->IsAllocationSite()); |
- heap->CollectAllGarbage(); |
+ CcTest::CollectAllGarbage(i::Heap::kFinalizeIncrementalMarkingMask); |
// It should stay monomorphic even after a GC. |
CHECK_EQ(MONOMORPHIC, nexus.StateFromFeedback()); |
} |
@@ -304,7 +300,6 @@ TEST(VectorLoadICStates) { |
LocalContext context; |
v8::HandleScope scope(context->GetIsolate()); |
Isolate* isolate = CcTest::i_isolate(); |
- Heap* heap = isolate->heap(); |
// Make sure function f has a call that uses a type feedback slot. |
CompileRun( |
@@ -348,7 +343,7 @@ TEST(VectorLoadICStates) { |
CHECK(!nexus.FindFirstMap()); |
// After a collection, state should not be reset to PREMONOMORPHIC. |
- heap->CollectAllGarbage(); |
+ CcTest::CollectAllGarbage(i::Heap::kFinalizeIncrementalMarkingMask); |
CHECK_EQ(MEGAMORPHIC, nexus.StateFromFeedback()); |
} |