Searched refs:NewCapacity (Results 1 – 9 of 9) sorted by relevance
45 void TypeLocBuilder::grow(size_t NewCapacity) { in grow() argument46 assert(NewCapacity > Capacity); in grow()49 char *NewBuffer = new char[NewCapacity]; in grow()50 unsigned NewIndex = Index + NewCapacity - Capacity; in grow()59 Capacity = NewCapacity; in grow()76 size_t NewCapacity = Capacity * 2; in pushImpl() local77 while (RequiredCapacity > NewCapacity) in pushImpl()78 NewCapacity *= 2; in pushImpl()79 grow(NewCapacity); in pushImpl()
133 void grow(size_t NewCapacity);
223 size_t NewCapacity = 2*CurCapacity; in grow() local224 if (NewCapacity < MinSize) in grow()225 NewCapacity = MinSize; in grow()228 T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); in grow()246 Capacity = Begin+NewCapacity; in grow()
379 size_t NewCapacity = 2*CurCapacity; in grow() local380 if (NewCapacity < MinSize) in grow()381 NewCapacity = MinSize; in grow()384 T *NewElts = new (C, llvm::alignOf<T>()) T[NewCapacity]; in grow()401 Capacity.setPointer(Begin+NewCapacity); in grow()
204 size_t NewCapacity = 2*CurCapacity + 1; // Always grow, even from zero. in grow() local205 if (NewCapacity < MinSize) in grow()206 NewCapacity = MinSize; in grow()207 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow()221 this->CapacityX = this->begin()+NewCapacity; in grow()
457 unsigned NewCapacity = std::max( in Append() local460 char *NewBuffer = static_cast<char *>(malloc(NewCapacity)); in Append()466 BufferCapacity = NewCapacity; in Append()
234 size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2)); in grow() local235 if (NewCapacity < MinSize) in grow()236 NewCapacity = MinSize; in grow()237 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow()251 this->CapacityX = this->begin()+NewCapacity; in grow()
442 inline int NewCapacity(int min_capacity) { in NewCapacity() function449 Vector<byte> new_store = Vector<byte>::New(NewCapacity(kInitialCapacity)); in ExpandBuffer()462 new_store = Vector<byte>::New(NewCapacity(new_content_size)); in ConvertToTwoByte()
125 unsigned NewCapacity = CurrentCapacity; in allocate() local127 NewCapacity *= 2; in allocate()128 } while (NewCapacity < UsedCapacity + Size); in allocate()130 char *NewStartOfBuffer = new char[NewCapacity]; in allocate()131 char *NewEndOfBuffer = NewStartOfBuffer + NewCapacity; in allocate()