• Home
  • Raw
  • Download

Lines Matching refs:space

27 static uint32_t PageSizeOfSpace(int space) {  in PageSizeOfSpace()  argument
29 MemoryAllocator::PageAreaSize(static_cast<AllocationSpace>(space))); in PageSizeOfSpace()
32 uint32_t DefaultSerializerAllocator::TargetChunkSize(int space) { in TargetChunkSize() argument
33 if (custom_chunk_size_ == 0) return PageSizeOfSpace(space); in TargetChunkSize()
34 DCHECK_LE(custom_chunk_size_, PageSizeOfSpace(space)); in TargetChunkSize()
38 SerializerReference DefaultSerializerAllocator::Allocate(AllocationSpace space, in Allocate() argument
40 DCHECK(space >= 0 && space < kNumberOfPreallocatedSpaces); in Allocate()
41 DCHECK(size > 0 && size <= PageSizeOfSpace(space)); in Allocate()
44 DCHECK_NE(MAP_SPACE, space); in Allocate()
46 uint32_t old_chunk_size = pending_chunk_[space]; in Allocate()
50 if (new_chunk_size > TargetChunkSize(space) && old_chunk_size != 0) { in Allocate()
51 serializer_->PutNextChunk(space); in Allocate()
52 completed_chunks_[space].push_back(pending_chunk_[space]); in Allocate()
53 pending_chunk_[space] = 0; in Allocate()
56 uint32_t offset = pending_chunk_[space]; in Allocate()
57 pending_chunk_[space] = new_chunk_size; in Allocate()
59 space, static_cast<uint32_t>(completed_chunks_[space].size()), offset); in Allocate()
85 AllocationSpace space = reference.space(); in BackReferenceIsAlreadyAllocated() local
86 if (space == LO_SPACE) { in BackReferenceIsAlreadyAllocated()
88 } else if (space == MAP_SPACE) { in BackReferenceIsAlreadyAllocated()
90 } else if (space == RO_SPACE && in BackReferenceIsAlreadyAllocated()
97 if (chunk_index == completed_chunks_[space].size()) { in BackReferenceIsAlreadyAllocated()
98 return reference.chunk_offset() < pending_chunk_[space]; in BackReferenceIsAlreadyAllocated()
100 return chunk_index < completed_chunks_[space].size() && in BackReferenceIsAlreadyAllocated()
101 reference.chunk_offset() < completed_chunks_[space][chunk_index]; in BackReferenceIsAlreadyAllocated()
138 for (int space = FIRST_SPACE; space < kNumberOfSpaces; space++) { in OutputStatistics() local
139 PrintF("%16s", AllocationSpaceName(static_cast<AllocationSpace>(space))); in OutputStatistics()
143 for (int space = FIRST_SPACE; space < kNumberOfPreallocatedSpaces; space++) { in OutputStatistics() local
144 size_t s = pending_chunk_[space]; in OutputStatistics()
145 for (uint32_t chunk_size : completed_chunks_[space]) s += chunk_size; in OutputStatistics()