Home
last modified time | relevance | path

Searched refs:initial_capacity (Results 1 – 15 of 15) sorted by relevance

/external/vixl/test/
Dtest-code-buffer.cc86 const size_t initial_capacity = 1234; in TEST() local
87 CodeBuffer buffer(initial_capacity); in TEST()
90 for (size_t space = 0; space < initial_capacity; space++) { in TEST()
92 VIXL_CHECK(buffer.GetCapacity() == initial_capacity); in TEST()
96 buffer.EnsureSpaceFor(initial_capacity + 1); in TEST()
97 VIXL_CHECK(buffer.GetCapacity() > initial_capacity); in TEST()
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dstream_map.cc29 size_t initial_capacity) { in grpc_chttp2_stream_map_init() argument
30 GPR_ASSERT(initial_capacity > 1); in grpc_chttp2_stream_map_init()
32 static_cast<uint32_t*>(gpr_malloc(sizeof(uint32_t) * initial_capacity)); in grpc_chttp2_stream_map_init()
34 static_cast<void**>(gpr_malloc(sizeof(void*) * initial_capacity)); in grpc_chttp2_stream_map_init()
37 map->capacity = initial_capacity; in grpc_chttp2_stream_map_init()
Dstream_map.h41 size_t initial_capacity);
/external/mesa3d/src/util/
Dstring_buffer.c47 _mesa_string_buffer_create(void *mem_ctx, uint32_t initial_capacity) in _mesa_string_buffer_create() argument
56 str->capacity = initial_capacity ? initial_capacity : 32; in _mesa_string_buffer_create()
Dstring_buffer.h45 _mesa_string_buffer_create(void *mem_ctx, uint32_t initial_capacity);
/external/v8/src/strings/
Dstring-builder.cc105 FixedArrayBuilder::FixedArrayBuilder(Isolate* isolate, int initial_capacity) in FixedArrayBuilder() argument
106 : array_(isolate->factory()->NewFixedArrayWithHoles(initial_capacity)), in FixedArrayBuilder()
111 DCHECK_GT(initial_capacity, 0); in FixedArrayBuilder()
Dstring-builder-inl.h40 explicit FixedArrayBuilder(Isolate* isolate, int initial_capacity);
/external/boringssl/src/crypto/bytestring/
Dcbb.c51 int CBB_init(CBB *cbb, size_t initial_capacity) { in CBB_init() argument
54 uint8_t *buf = OPENSSL_malloc(initial_capacity); in CBB_init()
55 if (initial_capacity > 0 && buf == NULL) { in CBB_init()
59 if (!cbb_init(cbb, buf, initial_capacity)) { in CBB_init()
/external/perfetto/include/perfetto/ext/base/
Dcircular_queue.h177 CircularQueue(size_t initial_capacity = 1024) { Grow(initial_capacity); }
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.h500 void Initialize(uptr initial_capacity) { in Initialize() argument
501 capacity_ = Max(initial_capacity, (uptr)1); in Initialize()
582 explicit InternalMmapVector(uptr initial_capacity) { in InternalMmapVector() argument
583 InternalMmapVectorNoCtor<T>::Initialize(initial_capacity); in InternalMmapVector()
/external/v8/src/base/
Dhashmap.h185 TemplateHashMapImpl(uint32_t initial_capacity, MatchFun match, in TemplateHashMapImpl() argument
188 Initialize(initial_capacity); in TemplateHashMapImpl()
/external/boringssl/src/include/openssl/
Dbytestring.h362 OPENSSL_EXPORT int CBB_init(CBB *cbb, size_t initial_capacity);
/external/v8/src/heap/
Dnew-spaces.cc91 void SemiSpace::SetUp(size_t initial_capacity, size_t maximum_capacity) { in SetUp() argument
93 minimum_capacity_ = RoundDown(initial_capacity, Page::kPageSize); in SetUp()
Dnew-spaces.h54 void SetUp(size_t initial_capacity, size_t maximum_capacity);
/external/v8/src/objects/
Djs-objects.cc2105 int initial_capacity = V8_DICT_MODE_PROTOTYPES_BOOL in New() local
2109 initial_map, initial_capacity, AllocationType::kYoung, site); in New()
2948 int initial_capacity = V8_DICT_MODE_PROTOTYPES_BOOL in MigrateFastToSlow() local
2951 property_count += initial_capacity; in MigrateFastToSlow()