Searched refs:NewCapacity (Results 1 – 8 of 8) 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()
443 unsigned NewCapacity = std::max( in Append() local446 char *NewBuffer = static_cast<char *>(malloc(NewCapacity)); in Append()452 BufferCapacity = NewCapacity; in Append()
254 inline int NewCapacity(int min_capacity) { in NewCapacity() function261 Vector<byte> new_store = Vector<byte>::New(NewCapacity(kInitialCapacity)); in ExpandBuffer()274 new_store = Vector<byte>::New(NewCapacity(new_content_size)); in ConvertToTwoByte()
255 size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2)); in grow() local256 if (NewCapacity < MinSize) in grow()257 NewCapacity = MinSize; in grow()258 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow()272 this->CapacityX = this->begin()+NewCapacity; in grow()
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()