Lines Matching refs:MemoryChunk
128 MemoryChunk::kAlignment); in SetUp()
198 size_t aligned_requested = RoundUp(requested_size, MemoryChunk::kAlignment); in AllocateRawMemory()
207 DCHECK(IsAddressAligned(current.start, MemoryChunk::kAlignment)); in AllocateRawMemory()
234 DCHECK(IsAddressAligned(address, MemoryChunk::kAlignment)); in FreeRawMemory()
403 MemoryChunk* chunk = in Initialize()
404 MemoryChunk::Initialize(heap, start, Page::kPageSize, area_start, in Initialize()
410 chunk->SetFlag(in_to_space ? MemoryChunk::IN_TO_SPACE in Initialize()
411 : MemoryChunk::IN_FROM_SPACE); in Initialize()
412 DCHECK(!chunk->IsFlagSet(in_to_space ? MemoryChunk::IN_FROM_SPACE in Initialize()
413 : MemoryChunk::IN_TO_SPACE)); in Initialize()
430 MemoryChunk* MemoryChunk::Initialize(Heap* heap, Address base, size_t size, in Initialize()
433 MemoryChunk* chunk = FromAddress(base); in Initialize()
460 DCHECK(OFFSET_OF(MemoryChunk, flags_) == kFlagsOffset); in Initialize()
461 DCHECK(OFFSET_OF(MemoryChunk, live_byte_count_) == kLiveBytesOffset); in Initialize()
476 bool MemoryChunk::CommitArea(size_t requested) { in CommitArea()
528 void MemoryChunk::InsertAfter(MemoryChunk* other) { in InsertAfter()
529 MemoryChunk* other_next = other->next_chunk(); in InsertAfter()
538 void MemoryChunk::Unlink() { in Unlink()
539 MemoryChunk* next_element = next_chunk(); in Unlink()
540 MemoryChunk* prev_element = prev_chunk(); in Unlink()
548 MemoryChunk* MemoryAllocator::AllocateChunk(intptr_t reserve_area_size, in AllocateChunk()
612 IsAligned(reinterpret_cast<intptr_t>(base), MemoryChunk::kAlignment)); in AllocateChunk()
619 MemoryChunk::kAlignment, executable, in AllocateChunk()
634 chunk_size = RoundUp(MemoryChunk::kObjectStartOffset + reserve_area_size, in AllocateChunk()
637 RoundUp(MemoryChunk::kObjectStartOffset + commit_area_size, in AllocateChunk()
640 AllocateAlignedMemory(chunk_size, commit_size, MemoryChunk::kAlignment, in AllocateChunk()
664 MemoryChunk* result = MemoryChunk::Initialize( in AllocateChunk()
682 MemoryChunk* chunk = AllocateChunk(size, size, executable, owner); in AllocatePage()
693 MemoryChunk* chunk = in AllocateLargePage()
700 void MemoryAllocator::Free(MemoryChunk* chunk) { in Free()
868 void MemoryChunk::IncrementLiveBytesFromMutator(Address address, int by) { in IncrementLiveBytesFromMutator()
869 MemoryChunk* chunk = MemoryChunk::FromAddress(address); in IncrementLiveBytesFromMutator()
922 MemoryChunk::UpdateHighWaterMark(allocation_info_.top()); in CommittedPhysicalMemory()
1073 if (page->IsFlagSet(MemoryChunk::SCAN_ON_SCAVENGE)) { in ReleasePage()
1075 page->ClearFlag(MemoryChunk::SCAN_ON_SCAVENGE); in ReleasePage()
1086 if (page->IsFlagSet(MemoryChunk::CONTAINS_ONLY_DATA)) { in ReleasePage()
1303 MemoryChunk::UpdateHighWaterMark(allocation_info_.top()); in UpdateAllocationInfo()
1613 page->ClearFlag(MemoryChunk::IN_FROM_SPACE); in FlipPages()
1614 page->SetFlag(MemoryChunk::IN_TO_SPACE); in FlipPages()
1615 page->ClearFlag(MemoryChunk::NEW_SPACE_BELOW_AGE_MARK); in FlipPages()
1618 page->SetFlag(MemoryChunk::IN_FROM_SPACE); in FlipPages()
1619 page->ClearFlag(MemoryChunk::IN_TO_SPACE); in FlipPages()
1621 DCHECK(page->IsFlagSet(MemoryChunk::SCAN_ON_SCAVENGE)); in FlipPages()
1622 DCHECK(page->IsFlagSet(MemoryChunk::IN_TO_SPACE) || in FlipPages()
1623 page->IsFlagSet(MemoryChunk::IN_FROM_SPACE)); in FlipPages()
1670 it.next()->SetFlag(MemoryChunk::NEW_SPACE_BELOW_AGE_MARK); in set_age_mark()
1687 CHECK(page->IsFlagSet(is_from_space ? MemoryChunk::IN_FROM_SPACE in Verify()
1688 : MemoryChunk::IN_TO_SPACE)); in Verify()
1689 CHECK(!page->IsFlagSet(is_from_space ? MemoryChunk::IN_TO_SPACE in Verify()
1690 : MemoryChunk::IN_FROM_SPACE)); in Verify()
1691 CHECK(page->IsFlagSet(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING)); in Verify()
1696 CHECK(page->IsFlagSet(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING)); in Verify()
1699 !page->IsFlagSet(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING)); in Verify()
1704 CHECK(page->IsFlagSet(MemoryChunk::SCAN_ON_SCAVENGE)); in Verify()
1943 MemoryChunk::UpdateHighWaterMark(allocation_info_.top()); in CommittedPhysicalMemory()
2864 uintptr_t base = reinterpret_cast<uintptr_t>(page) / MemoryChunk::kAlignment; in AllocateRaw()
2865 uintptr_t limit = base + (page->size() - 1) / MemoryChunk::kAlignment; in AllocateRaw()
2913 uintptr_t key = reinterpret_cast<uintptr_t>(a) / MemoryChunk::kAlignment; in FindPage()
2963 const intptr_t alignment = MemoryChunk::kAlignment; in FreeUnmarkedObjects()
2984 MemoryChunk* chunk = MemoryChunk::FromAddress(address); in Contains()