Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DTypeLocBuilder.cpp45 void TypeLocBuilder::grow(size_t NewCapacity) { in grow() argument
46 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() local
77 while (RequiredCapacity > NewCapacity) in pushImpl()
78 NewCapacity *= 2; in pushImpl()
79 grow(NewCapacity); in pushImpl()
DTypeLocBuilder.h133 void grow(size_t NewCapacity);
/external/clang/include/clang/Analysis/Support/
DBumpVector.h223 size_t NewCapacity = 2*CurCapacity; in grow() local
224 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()
/external/clang/include/clang/AST/
DASTVector.h379 size_t NewCapacity = 2*CurCapacity; in grow() local
380 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()
/external/clang/lib/AST/
DNestedNameSpecifier.cpp443 unsigned NewCapacity = std::max( in Append() local
446 char *NewBuffer = static_cast<char *>(malloc(NewCapacity)); in Append()
452 BufferCapacity = NewCapacity; in Append()
/external/v8/src/parsing/
Dscanner.h254 inline int NewCapacity(int min_capacity) { in NewCapacity() function
261 Vector<byte> new_store = Vector<byte>::New(NewCapacity(kInitialCapacity)); in ExpandBuffer()
274 new_store = Vector<byte>::New(NewCapacity(new_content_size)); in ConvertToTwoByte()
/external/llvm/include/llvm/ADT/
DSmallVector.h255 size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2)); in grow() local
256 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()
/external/clang/lib/CodeGen/
DCGCleanup.cpp125 unsigned NewCapacity = CurrentCapacity; in allocate() local
127 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()