Lines Matching refs:MemoryChunk

135   Address aligned_base = RoundUp(base, MemoryChunk::kAlignment);  in SetUp()
210 DCHECK(IsAddressAligned(current.start, MemoryChunk::kAlignment)); in AllocateRawMemory()
232 DCHECK(IsAddressAligned(address, MemoryChunk::kAlignment)); in FreeRawMemory()
258 size_t aligned_requested = RoundUp(requested_size, MemoryChunk::kAlignment); in ReserveBlock()
264 DCHECK(IsAddressAligned(block->start, MemoryChunk::kAlignment)); in ReserveBlock()
428 MemoryChunk* chunk = in Initialize()
429 MemoryChunk::Initialize(heap, start, Page::kPageSize, area_start, in Initialize()
433 chunk->SetFlag(in_to_space ? MemoryChunk::IN_TO_SPACE in Initialize()
434 : MemoryChunk::IN_FROM_SPACE); in Initialize()
435 DCHECK(!chunk->IsFlagSet(in_to_space ? MemoryChunk::IN_FROM_SPACE in Initialize()
436 : MemoryChunk::IN_TO_SPACE)); in Initialize()
453 MemoryChunk* MemoryChunk::Initialize(Heap* heap, Address base, size_t size, in Initialize()
456 MemoryChunk* chunk = FromAddress(base); in Initialize()
487 DCHECK(OFFSET_OF(MemoryChunk, flags_) == kFlagsOffset); in Initialize()
488 DCHECK(OFFSET_OF(MemoryChunk, live_byte_count_) == kLiveBytesOffset); in Initialize()
499 bool MemoryChunk::CommitArea(size_t requested) { in CommitArea()
551 void MemoryChunk::InsertAfter(MemoryChunk* other) { in InsertAfter()
552 MemoryChunk* other_next = other->next_chunk(); in InsertAfter()
561 void MemoryChunk::Unlink() { in Unlink()
562 MemoryChunk* next_element = next_chunk(); in Unlink()
563 MemoryChunk* prev_element = prev_chunk(); in Unlink()
571 MemoryChunk* MemoryAllocator::AllocateChunk(intptr_t reserve_area_size, in AllocateChunk()
643 IsAligned(reinterpret_cast<intptr_t>(base), MemoryChunk::kAlignment)); in AllocateChunk()
650 MemoryChunk::kAlignment, executable, in AllocateChunk()
665 chunk_size = RoundUp(MemoryChunk::kObjectStartOffset + reserve_area_size, in AllocateChunk()
668 RoundUp(MemoryChunk::kObjectStartOffset + commit_area_size, in AllocateChunk()
671 AllocateAlignedMemory(chunk_size, commit_size, MemoryChunk::kAlignment, in AllocateChunk()
695 MemoryChunk* result = MemoryChunk::Initialize( in AllocateChunk()
713 MemoryChunk* chunk = AllocateChunk(size, size, executable, owner); in AllocateChunk()
722 MemoryChunk* chunk = in AllocateChunk()
729 void MemoryAllocator::PreFreeMemory(MemoryChunk* chunk) { in AllocateChunk()
730 DCHECK(!chunk->IsFlagSet(MemoryChunk::PRE_FREED)); in AllocateChunk()
757 chunk->SetFlag(MemoryChunk::PRE_FREED); in AllocateChunk()
761 void MemoryAllocator::PerformFreeMemory(MemoryChunk* chunk) { in AllocateChunk()
762 DCHECK(chunk->IsFlagSet(MemoryChunk::PRE_FREED)); in AllocateChunk()
774 void MemoryAllocator::Free(MemoryChunk* chunk) { in AllocateChunk()
924 void MemoryChunk::IncrementLiveBytesFromMutator(HeapObject* object, int by) { in AllocateChunk()
925 MemoryChunk* chunk = MemoryChunk::FromAddress(object->address()); in AllocateChunk()
933 void MemoryChunk::ReleaseAllocatedMemory() { in AllocateChunk()
1130 MemoryChunk::UpdateHighWaterMark(allocation_info_.top()); in AllocateChunk()
1242 if (page->IsFlagSet(MemoryChunk::SCAN_ON_SCAVENGE)) { in AllocateChunk()
1244 page->ClearFlag(MemoryChunk::SCAN_ON_SCAVENGE); in AllocateChunk()
1523 MemoryChunk::UpdateHighWaterMark(allocation_info_.top()); in AllocateChunk()
1945 page->ClearFlag(MemoryChunk::IN_FROM_SPACE); in AllocateChunk()
1946 page->SetFlag(MemoryChunk::IN_TO_SPACE); in AllocateChunk()
1947 page->ClearFlag(MemoryChunk::NEW_SPACE_BELOW_AGE_MARK); in AllocateChunk()
1950 page->SetFlag(MemoryChunk::IN_FROM_SPACE); in AllocateChunk()
1951 page->ClearFlag(MemoryChunk::IN_TO_SPACE); in AllocateChunk()
1953 DCHECK(page->IsFlagSet(MemoryChunk::SCAN_ON_SCAVENGE)); in AllocateChunk()
1954 DCHECK(page->IsFlagSet(MemoryChunk::IN_TO_SPACE) || in AllocateChunk()
1955 page->IsFlagSet(MemoryChunk::IN_FROM_SPACE)); in AllocateChunk()
1999 it.next()->SetFlag(MemoryChunk::NEW_SPACE_BELOW_AGE_MARK); in AllocateChunk()
2016 CHECK(page->IsFlagSet(is_from_space ? MemoryChunk::IN_FROM_SPACE in AllocateChunk()
2017 : MemoryChunk::IN_TO_SPACE)); in AllocateChunk()
2018 CHECK(!page->IsFlagSet(is_from_space ? MemoryChunk::IN_TO_SPACE in AllocateChunk()
2019 : MemoryChunk::IN_FROM_SPACE)); in AllocateChunk()
2020 CHECK(page->IsFlagSet(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING)); in AllocateChunk()
2025 CHECK(page->IsFlagSet(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING)); in AllocateChunk()
2028 !page->IsFlagSet(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING)); in AllocateChunk()
2033 CHECK(page->IsFlagSet(MemoryChunk::SCAN_ON_SCAVENGE)); in AllocateChunk()
2255 MemoryChunk::UpdateHighWaterMark(allocation_info_.top()); in AllocateChunk()
3120 uintptr_t base = reinterpret_cast<uintptr_t>(page) / MemoryChunk::kAlignment; in AllocateChunk()
3121 uintptr_t limit = base + (page->size() - 1) / MemoryChunk::kAlignment; in AllocateChunk()
3169 uintptr_t key = reinterpret_cast<uintptr_t>(a) / MemoryChunk::kAlignment; in AllocateChunk()
3229 const intptr_t alignment = MemoryChunk::kAlignment; in AllocateChunk()
3245 MemoryChunk* chunk = MemoryChunk::FromAddress(address); in AllocateChunk()