| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index ab2391a875e88da54c1a2bddc8e82f54f0ed9187..19a6a0e9f5dfb1dc1b66cfe0f996e1a712c4ec3a 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -3357,10 +3357,10 @@ TEST(IncrementalMarkingPreservesMonomorphicCallIC) {
|
|
|
| Handle<TypeFeedbackVector> feedback_vector(f->shared()->feedback_vector());
|
|
|
| - int expected_slots = 2;
|
| + int expected_slots = 3;
|
| CHECK_EQ(expected_slots, feedback_vector->ICSlots());
|
| - int slot1 = 0;
|
| - int slot2 = 1;
|
| + int slot1 = 1;
|
| + int slot2 = 2;
|
| CHECK(feedback_vector->Get(FeedbackVectorICSlot(slot1))->IsWeakCell());
|
| CHECK(feedback_vector->Get(FeedbackVectorICSlot(slot2))->IsWeakCell());
|
|
|
| @@ -3483,14 +3483,14 @@ TEST(IncrementalMarkingPreservesMonomorphicIC) {
|
| CcTest::global()->Get(v8_str("f"))));
|
|
|
| Code* ic_before = FindFirstIC(f->shared()->code(), Code::LOAD_IC);
|
| - CheckVectorIC(f, 0, MONOMORPHIC);
|
| + CheckVectorIC(f, 1, MONOMORPHIC);
|
| CHECK(ic_before->ic_state() == DEFAULT);
|
|
|
| SimulateIncrementalMarking(CcTest::heap());
|
| CcTest::heap()->CollectAllGarbage();
|
|
|
| Code* ic_after = FindFirstIC(f->shared()->code(), Code::LOAD_IC);
|
| - CheckVectorIC(f, 0, MONOMORPHIC);
|
| + CheckVectorIC(f, 1, MONOMORPHIC);
|
| CHECK(ic_after->ic_state() == DEFAULT);
|
| }
|
|
|
| @@ -3515,7 +3515,7 @@ TEST(IncrementalMarkingClearsMonomorphicIC) {
|
| *v8::Handle<v8::Function>::Cast(CcTest::global()->Get(v8_str("f"))));
|
|
|
| Code* ic_before = FindFirstIC(f->shared()->code(), Code::LOAD_IC);
|
| - CheckVectorIC(f, 0, MONOMORPHIC);
|
| + CheckVectorIC(f, 1, MONOMORPHIC);
|
| CHECK(ic_before->ic_state() == DEFAULT);
|
|
|
| // Fire context dispose notification.
|
| @@ -3524,7 +3524,7 @@ TEST(IncrementalMarkingClearsMonomorphicIC) {
|
| CcTest::heap()->CollectAllGarbage();
|
|
|
| Code* ic_after = FindFirstIC(f->shared()->code(), Code::LOAD_IC);
|
| - CheckVectorICCleared(f, 0);
|
| + CheckVectorICCleared(f, 1);
|
| CHECK(ic_after->ic_state() == DEFAULT);
|
| }
|
|
|
| @@ -3556,7 +3556,7 @@ TEST(IncrementalMarkingPreservesPolymorphicIC) {
|
| *v8::Handle<v8::Function>::Cast(CcTest::global()->Get(v8_str("f"))));
|
|
|
| Code* ic_before = FindFirstIC(f->shared()->code(), Code::LOAD_IC);
|
| - CheckVectorIC(f, 0, POLYMORPHIC);
|
| + CheckVectorIC(f, 1, POLYMORPHIC);
|
| CHECK(ic_before->ic_state() == DEFAULT);
|
|
|
| // Fire context dispose notification.
|
| @@ -3564,7 +3564,7 @@ TEST(IncrementalMarkingPreservesPolymorphicIC) {
|
| CcTest::heap()->CollectAllGarbage();
|
|
|
| Code* ic_after = FindFirstIC(f->shared()->code(), Code::LOAD_IC);
|
| - CheckVectorIC(f, 0, POLYMORPHIC);
|
| + CheckVectorIC(f, 1, POLYMORPHIC);
|
| CHECK(ic_after->ic_state() == DEFAULT);
|
| }
|
|
|
| @@ -3596,7 +3596,7 @@ TEST(IncrementalMarkingClearsPolymorphicIC) {
|
| *v8::Handle<v8::Function>::Cast(CcTest::global()->Get(v8_str("f"))));
|
|
|
| Code* ic_before = FindFirstIC(f->shared()->code(), Code::LOAD_IC);
|
| - CheckVectorIC(f, 0, POLYMORPHIC);
|
| + CheckVectorIC(f, 1, POLYMORPHIC);
|
| CHECK(ic_before->ic_state() == DEFAULT);
|
|
|
| // Fire context dispose notification.
|
| @@ -3604,7 +3604,7 @@ TEST(IncrementalMarkingClearsPolymorphicIC) {
|
| SimulateIncrementalMarking(CcTest::heap());
|
| CcTest::heap()->CollectAllGarbage();
|
|
|
| - CheckVectorICCleared(f, 0);
|
| + CheckVectorICCleared(f, 1);
|
| CHECK(ic_before->ic_state() == DEFAULT);
|
| }
|
|
|
| @@ -4755,12 +4755,12 @@ TEST(MonomorphicStaysMonomorphicAfterGC) {
|
| CompileRun("(testIC())");
|
| }
|
| heap->CollectAllGarbage();
|
| - CheckIC(loadIC->code(), Code::LOAD_IC, loadIC->shared(), 0, MONOMORPHIC);
|
| + CheckIC(loadIC->code(), Code::LOAD_IC, loadIC->shared(), 1, MONOMORPHIC);
|
| {
|
| v8::HandleScope scope(CcTest::isolate());
|
| CompileRun("(testIC())");
|
| }
|
| - CheckIC(loadIC->code(), Code::LOAD_IC, loadIC->shared(), 0, MONOMORPHIC);
|
| + CheckIC(loadIC->code(), Code::LOAD_IC, loadIC->shared(), 1, MONOMORPHIC);
|
| }
|
|
|
|
|
| @@ -4791,12 +4791,12 @@ TEST(PolymorphicStaysPolymorphicAfterGC) {
|
| CompileRun("(testIC())");
|
| }
|
| heap->CollectAllGarbage();
|
| - CheckIC(loadIC->code(), Code::LOAD_IC, loadIC->shared(), 0, POLYMORPHIC);
|
| + CheckIC(loadIC->code(), Code::LOAD_IC, loadIC->shared(), 1, POLYMORPHIC);
|
| {
|
| v8::HandleScope scope(CcTest::isolate());
|
| CompileRun("(testIC())");
|
| }
|
| - CheckIC(loadIC->code(), Code::LOAD_IC, loadIC->shared(), 0, POLYMORPHIC);
|
| + CheckIC(loadIC->code(), Code::LOAD_IC, loadIC->shared(), 1, POLYMORPHIC);
|
| }
|
|
|
|
|
|
|