Lines Matching refs:old_space
419 OldSpace* old_space = new OldSpace(heap, OLD_SPACE, NOT_EXECUTABLE); in TEST() local
420 CHECK(old_space != NULL); in TEST()
421 CHECK(old_space->SetUp()); in TEST()
434 int pages_in_old_space = old_space->CountTotalPages(); in TEST()
439 old_space->MergeCompactionSpace(compaction_space); in TEST()
440 CHECK_EQ(old_space->CountTotalPages(), in TEST()
444 delete old_space; in TEST()
466 OldSpace* old_space = new OldSpace(heap, OLD_SPACE, NOT_EXECUTABLE); in TEST() local
467 CHECK(old_space != NULL); in TEST()
468 CHECK(old_space->SetUp()); in TEST()
485 old_space->AllocateRawUnaligned(kObjectSize).ToObjectChecked(); in TEST()
487 intptr_t rest = static_cast<int>(old_space->Available()); in TEST()
501 CHECK_EQ(old_space->CountTotalPages(), kExpectedInitialOldSpacePages); in TEST()
505 old_space->DivideUponCompactionSpaces(&collection, 1, rest); in TEST()
519 old_space->MergeCompactionSpace(compaction_space); in TEST()
520 CHECK_EQ(old_space->CountTotalPages(), kExpectedOldSpacePagesAfterMerge); in TEST()
523 delete old_space; in TEST()
597 OldSpace* old_space = new OldSpace(heap, OLD_SPACE, NOT_EXECUTABLE); in TestCompactionSpaceDivide() local
598 CHECK(old_space != nullptr); in TestCompactionSpaceDivide()
599 CHECK(old_space->SetUp()); in TestCompactionSpaceDivide()
600 old_space->AllocateRawUnaligned(object_size).ToObjectChecked(); in TestCompactionSpaceDivide()
601 old_space->EmptyAllocationInfo(); in TestCompactionSpaceDivide()
603 intptr_t rest_capacity = old_space->accounting_stats_.Capacity() - in TestCompactionSpaceDivide()
604 old_space->accounting_stats_.Size(); in TestCompactionSpaceDivide()
611 intptr_t initial_old_space_capacity = old_space->accounting_stats_.Capacity(); in TestCompactionSpaceDivide()
615 old_space->DivideUponCompactionSpaces(spaces, num_compaction_spaces, in TestCompactionSpaceDivide()
623 intptr_t old_space_capacity = old_space->accounting_stats_.Capacity(); in TestCompactionSpaceDivide()
624 intptr_t old_space_size = old_space->accounting_stats_.Size(); in TestCompactionSpaceDivide()
634 CHECK_EQ(old_space->accounting_stats_.Size(), old_space_size); in TestCompactionSpaceDivide()
635 CHECK_EQ(old_space->accounting_stats_.Capacity(), old_space_capacity); in TestCompactionSpaceDivide()
639 MergeCompactionSpaces(old_space, spaces, num_compaction_spaces); in TestCompactionSpaceDivide()
641 CHECK_EQ(old_space->accounting_stats_.Capacity(), in TestCompactionSpaceDivide()
643 CHECK_EQ(old_space->accounting_stats_.Size(), in TestCompactionSpaceDivide()
646 CHECK_EQ(old_space->accounting_stats_.Capacity(), in TestCompactionSpaceDivide()
650 delete old_space; in TestCompactionSpaceDivide()