Home
last modified time | relevance | path

Searched refs:NewCapacity (Results 1 – 8 of 8) sorted by relevance

/external/clang/lib/Sema/
DTypeLocBuilder.h141 size_t NewCapacity = Capacity * 2; in pushImpl() local
142 while (RequiredCapacity > NewCapacity) in pushImpl()
143 NewCapacity *= 2; in pushImpl()
144 grow(NewCapacity); in pushImpl()
153 void grow(size_t NewCapacity) { in grow() argument
154 assert(NewCapacity > Capacity); in grow()
157 char *NewBuffer = new char[NewCapacity]; in grow()
158 unsigned NewIndex = Index + NewCapacity - Capacity; in grow()
167 Capacity = NewCapacity; in grow()
/external/clang/test/SemaTemplate/
Dexample-dynarray.cpp97 unsigned NewCapacity = capacity() * 2; in push_back() local
98 if (NewCapacity == 0) in push_back()
99 NewCapacity = 4; in push_back()
101 T* NewStart = (T*)malloc(sizeof(T) * NewCapacity); in push_back()
113 End = Start + NewCapacity; in push_back()
/external/clang/include/clang/Analysis/Support/
DBumpVector.h218 size_t NewCapacity = 2*CurCapacity; in grow() local
219 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()
/external/clang/include/clang/AST/
DASTVector.h372 size_t NewCapacity = 2*CurCapacity; in grow() local
373 if (NewCapacity < MinSize) in grow()
374 NewCapacity = MinSize; in grow()
377 T *NewElts = new (C) T[NewCapacity]; in grow()
393 Capacity = Begin+NewCapacity; in grow()
/external/v8/src/
Dscanner.h229 inline int NewCapacity(int min_capacity) { in NewCapacity() function
236 Vector<byte> new_store = Vector<byte>::New(NewCapacity(kInitialCapacity)); in ExpandBuffer()
249 new_store = Vector<byte>::New(NewCapacity(new_content_size)); in ConvertToUtf16()
/external/llvm/include/llvm/ADT/
DSmallVector.h197 size_t NewCapacity = 2*CurCapacity + 1; // Always grow, even from zero. in grow() local
198 if (NewCapacity < MinSize) in grow()
199 NewCapacity = MinSize; in grow()
200 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow()
214 this->CapacityX = this->begin()+NewCapacity; in grow()
/external/clang/lib/AST/
DNestedNameSpecifier.cpp402 unsigned NewCapacity in Append() local
406 char *NewBuffer = static_cast<char *>(malloc(NewCapacity)); in Append()
412 BufferCapacity = NewCapacity; in Append()
/external/clang/lib/CodeGen/
DCGCleanup.cpp100 unsigned NewCapacity = CurrentCapacity; in allocate() local
102 NewCapacity *= 2; in allocate()
103 } while (NewCapacity < UsedCapacity + Size); in allocate()
105 char *NewStartOfBuffer = new char[NewCapacity]; in allocate()
106 char *NewEndOfBuffer = NewStartOfBuffer + NewCapacity; in allocate()