Home | History | Annotate | Download | only in src

Lines Matching refs:bytes

41 char* HeapStringAllocator::allocate(unsigned bytes) {
42 space_ = NewArray<char>(bytes);
558 char* HeapStringAllocator::grow(unsigned* bytes) {
559 unsigned new_bytes = *bytes * 2;
561 if (new_bytes <= *bytes) {
568 memcpy(new_space, space_, *bytes);
569 *bytes = new_bytes;
577 char* NoAllocationStringAllocator::grow(unsigned* bytes) {
578 ASSERT(size_ >= *bytes);
579 *bytes = size_;