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);
218 size_t NewCapacity = 2*CurCapacity; in grow() local219 if (NewCapacity < MinSize) in grow()220 NewCapacity = MinSize; in grow()223 T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); in grow()240 Capacity = Begin+NewCapacity; in grow()
376 size_t NewCapacity = 2*CurCapacity; in grow() local377 if (NewCapacity < MinSize) in grow()378 NewCapacity = MinSize; in grow()381 T *NewElts = new (C, llvm::alignOf<T>()) T[NewCapacity]; in grow()397 Capacity = Begin+NewCapacity; in grow()
229 inline int NewCapacity(int min_capacity) { in NewCapacity() function236 Vector<byte> new_store = Vector<byte>::New(NewCapacity(kInitialCapacity)); in ExpandBuffer()249 new_store = Vector<byte>::New(NewCapacity(new_content_size)); in ConvertToUtf16()
268 inline int NewCapacity(int min_capacity) { in NewCapacity() function275 Vector<byte> new_store = Vector<byte>::New(NewCapacity(kInitialCapacity)); in ExpandBuffer()288 new_store = Vector<byte>::New(NewCapacity(new_content_size)); in ConvertToUtf16()
403 unsigned NewCapacity in Append() local407 char *NewBuffer = static_cast<char *>(malloc(NewCapacity)); in Append()413 BufferCapacity = NewCapacity; in Append()
272 size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2)); in grow() local273 if (NewCapacity < MinSize) in grow()274 NewCapacity = MinSize; in grow()275 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow()289 this->CapacityX = this->begin()+NewCapacity; in grow()
106 unsigned NewCapacity = CurrentCapacity; in allocate() local108 NewCapacity *= 2; in allocate()109 } while (NewCapacity < UsedCapacity + Size); in allocate()111 char *NewStartOfBuffer = new char[NewCapacity]; in allocate()112 char *NewEndOfBuffer = NewStartOfBuffer + NewCapacity; in allocate()