@@ -531,14 +531,9 @@ TEST(WeakGlobalHandlesScavenge) {
531531
532532 // Scavenge treats weak pointers as normal roots.
533533 CcTest::CollectGarbage (NEW_SPACE);
534-
535534 CHECK ((*h1)->IsString ());
536535 CHECK ((*h2)->IsHeapNumber ());
537-
538536 CHECK (!WeakPointerCleared);
539- CHECK (!global_handles->IsNearDeath (h2.location ()));
540- CHECK (!global_handles->IsNearDeath (h1.location ()));
541-
542537 GlobalHandles::Destroy (h1.location ());
543538 GlobalHandles::Destroy (h2.location ());
544539}
@@ -576,11 +571,8 @@ TEST(WeakGlobalUnmodifiedApiHandlesScavenge) {
576571 &TestWeakGlobalHandleCallback, v8::WeakCallbackType::kParameter );
577572
578573 CcTest::CollectGarbage (NEW_SPACE);
579-
580574 CHECK ((*h1)->IsHeapNumber ());
581575 CHECK (WeakPointerCleared);
582- CHECK (!global_handles->IsNearDeath (h1.location ()));
583-
584576 GlobalHandles::Destroy (h1.location ());
585577}
586578
@@ -617,10 +609,7 @@ TEST(WeakGlobalApiHandleModifiedMapScavenge) {
617609 &TestWeakGlobalHandleCallback, v8::WeakCallbackType::kParameter );
618610
619611 CcTest::CollectGarbage (NEW_SPACE);
620-
621612 CHECK (!WeakPointerCleared);
622- CHECK (!global_handles->IsNearDeath (h1.location ()));
623-
624613 GlobalHandles::Destroy (h1.location ());
625614}
626615
@@ -661,10 +650,7 @@ TEST(WeakGlobalApiHandleWithElementsScavenge) {
661650 &TestWeakGlobalHandleCallback, v8::WeakCallbackType::kParameter );
662651
663652 CcTest::CollectGarbage (NEW_SPACE);
664-
665653 CHECK (!WeakPointerCleared);
666- CHECK (!global_handles->IsNearDeath (h1.location ()));
667-
668654 GlobalHandles::Destroy (h1.location ());
669655}
670656
@@ -699,17 +685,11 @@ TEST(WeakGlobalHandlesMark) {
699685 GlobalHandles::MakeWeak (
700686 h2.location (), reinterpret_cast <void *>(&handle_and_id),
701687 &TestWeakGlobalHandleCallback, v8::WeakCallbackType::kParameter );
702- CHECK (!GlobalHandles::IsNearDeath (h1.location ()));
703- CHECK (!GlobalHandles::IsNearDeath (h2.location ()));
704688
705689 // Incremental marking potentially marked handles before they turned weak.
706690 CcTest::CollectAllGarbage ();
707-
708691 CHECK ((*h1)->IsString ());
709-
710692 CHECK (WeakPointerCleared);
711- CHECK (!GlobalHandles::IsNearDeath (h1.location ()));
712-
713693 GlobalHandles::Destroy (h1.location ());
714694}
715695
0 commit comments