Lines Matching full:capacity
309 bool MemoryAllocator::Setup(intptr_t capacity, intptr_t capacity_executable) {
310 capacity_ = RoundUp(capacity, Page::kPageSize);
375 "V8 Executable Allocation capacity exceeded"));
718 PrintF(" capacity: %" V8_PTR_PREFIX "d"
841 ASSERT(Capacity() <= max_capacity_);
860 return (Capacity() > 0);
1010 ASSERT(Capacity() % Page::kObjectAreaSize == 0);
1012 if (Capacity() == max_capacity_) return false;
1014 ASSERT(Capacity() < max_capacity_);
1019 static_cast<int>((max_capacity_ - Capacity()) / Page::kObjectAreaSize);
1021 // not kPagesPerChunk pages available without exceeding the max capacity then
1031 ASSERT(Capacity() <= max_capacity_);
1089 ASSERT(Capacity() == CountTotalPages() * Page::kObjectAreaSize);
1093 bool PagedSpace::EnsureCapacity(int capacity) {
1094 if (Capacity() >= capacity) return true;
1105 // Expand the space until it has the required capacity or expansion fails.
1112 } while (Capacity() < capacity);
1264 heap()->isolate()->memory_allocator()->Protect(ToSpaceLow(), Capacity());
1265 heap()->isolate()->memory_allocator()->Protect(FromSpaceLow(), Capacity());
1270 heap()->isolate()->memory_allocator()->Unprotect(ToSpaceLow(), Capacity(),
1272 heap()->isolate()->memory_allocator()->Unprotect(FromSpaceLow(), Capacity(),
1287 ASSERT(Capacity() < MaximumCapacity());
1293 if (!to_space_.ShrinkTo(from_space_.Capacity())) {
1309 if (rounded_new_capacity < Capacity() &&
1315 if (!to_space_.GrowTo(from_space_.Capacity())) {
1420 // memory of size 'capacity' when set up, and does not grow or shrink
1446 // Double the semispace size but only up to maximum capacity.
1696 float pct = static_cast<float>(Available()) / Capacity();
1697 PrintF(" capacity: %" V8_PTR_PREFIX "d"
1699 Capacity(), Available(), static_cast<int>(pct*100));
2026 ASSERT(Available() == Capacity());
2479 int pct = static_cast<int>(Available() * 100 / Capacity());
2480 PrintF(" capacity: %" V8_PTR_PREFIX "d"
2483 Capacity(), Waste(), Available(), pct);
2507 ASSERT(Available() == Capacity());
2640 int pct = static_cast<int>(Available() * 100 / Capacity());
2641 PrintF(" capacity: %" V8_PTR_PREFIX "d"
2644 Capacity(), Waste(), Available(), pct);