Lines Matching refs:chunk_size
415 size_t chunk_size = requested_pages * Page::kPageSize;
419 if (size_ + static_cast<int>(chunk_size) > capacity_) {
421 chunk_size = capacity_ - size_;
422 requested_pages = static_cast<int>(chunk_size >> kPageSizeBits);
426 void* chunk = AllocateRawMemory(chunk_size, &chunk_size, owner->executable());
428 LOG(NewEvent("PagedChunk", chunk, chunk_size));
430 *allocated_pages = PagesInChunk(static_cast<Address>(chunk), chunk_size);
432 FreeRawMemory(chunk, chunk_size);
438 chunks_[chunk_id].init(static_cast<Address>(chunk), chunk_size, owner);
517 size_t chunk_size = chunks_[chunk_id].size();
518 Address high = RoundDown(chunk_start + chunk_size, Page::kPageSize);
607 size_t chunk_size = chunks_[chunk_id].size();
609 Address high = RoundDown(chunk_start + chunk_size, Page::kPageSize);
2496 size_t* chunk_size,
2500 chunk_size,
2503 LOG(NewEvent("LargeObjectChunk", mem, *chunk_size));
2504 if (*chunk_size < requested) {
2505 MemoryAllocator::FreeRawMemory(mem, *chunk_size);
2586 size_t chunk_size;
2588 LargeObjectChunk::New(requested_size, &chunk_size, executable);
2593 size_ += static_cast<int>(chunk_size);
2596 chunk->set_size(chunk_size);
2604 // large object page. If the chunk_size happened to be written there, its
2606 ASSERT((chunk_size & 0x1) == 0);
2728 size_t chunk_size = current->size();
2740 size_ -= static_cast<int>(chunk_size);
2742 MemoryAllocator::FreeRawMemory(chunk_address, chunk_size);