| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index 9894eda42ff9db69b402827b229d04c6ad5956b8..fb113019d85abbea4b991e3d7481298b79f47f8c 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -3322,10 +3322,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());
|
|
|
| @@ -3448,14 +3448,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);
|
| }
|
|
|
| @@ -3480,7 +3480,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.
|
| @@ -3489,7 +3489,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);
|
| }
|
|
|
| @@ -3521,7 +3521,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.
|
| @@ -3529,7 +3529,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);
|
| }
|
|
|
| @@ -3561,7 +3561,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.
|
| @@ -3569,7 +3569,7 @@ TEST(IncrementalMarkingClearsPolymorphicIC) {
|
| SimulateIncrementalMarking(CcTest::heap());
|
| CcTest::heap()->CollectAllGarbage();
|
|
|
| - CheckVectorICCleared(f, 0);
|
| + CheckVectorICCleared(f, 1);
|
| CHECK(ic_before->ic_state() == DEFAULT);
|
| }
|
|
|
| @@ -4719,12 +4719,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);
|
| }
|
|
|
|
|
| @@ -4755,12 +4755,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);
|
| }
|
|
|
|
|
|
|