Home
last modified time | relevance | path

Searched refs:arena_ (Results 1 – 25 of 29) sorted by relevance

12

/external/protobuf/src/google/protobuf/
Dlite_arena_unittest.cc45 arena_.reset(new Arena(options)); in LiteArenaTest()
48 Arena::CreateArray<char>(arena_.get(), 1); in LiteArenaTest()
51 std::unique_ptr<Arena> arena_; member in google::protobuf::__anon0424fda60111::LiteArenaTest
64 Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(arena_.get()); in TEST_F()
69 Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(arena_.get()); in TEST_F()
78 arena_.get()); in TEST_F()
Dmap_field_lite.h66 MapFieldLite() : arena_(NULL) { SetDefaultEnumValue(); } in MapFieldLite()
68 explicit MapFieldLite(Arena* arena) : arena_(arena), map_(arena) { in MapFieldLite()
95 if (arena_ == NULL) { in NewEntry()
98 return Arena::CreateMessage<EntryType>(arena_); in NewEntry()
104 return EntryType::EnumWrap(key, t, arena_); in NewEnumEntryWrapper()
109 return EntryType::Wrap(key, t, arena_); in NewEntryWrapper()
129 Arena* arena_; variable
Dmap.h143 Map() : arena_(NULL), default_enum_value_(0) { Init(); } in Map()
144 explicit Map(Arena* arena) : arena_(arena), default_enum_value_(0) { Init(); } in Map()
147 : arena_(NULL), default_enum_value_(other.default_enum_value_) { in Map()
153 if (other.arena_) { in Map()
161 if (arena_ != other.arena_) {
172 : arena_(NULL), default_enum_value_(0) { in Map()
179 if (arena_ == NULL) { in ~Map()
187 Arena::Create<InnerMap>(arena_, 0u, hasher(), Allocator(arena_)); in Init()
204 MapAllocator() : arena_(NULL) {} in MapAllocator()
205 explicit MapAllocator(Arena* arena) : arena_(arena) {} in MapAllocator()
[all …]
Ddynamic_message.cc277 Arena* GetArena() const override { return arena_; } in GetArena()
313 Arena* const arena_; member in google::protobuf::DynamicMessage
319 : type_info_(type_info), arena_(NULL), cached_byte_size_(0) { in DynamicMessage()
324 : type_info_(type_info), arena_(arena), cached_byte_size_(0) { in DynamicMessage()
329 : type_info_(type_info), arena_(NULL), cached_byte_size_(0) { in DynamicMessage()
358 InternalMetadataWithArena(arena_); in SharedCtor()
361 new (OffsetToPointer(type_info_->extensions_offset)) ExtensionSet(arena_); in SharedCtor()
375 new (field_ptr) RepeatedField<TYPE>(arena_); \ in SharedCtor()
392 new (field_ptr) RepeatedField<int>(arena_); in SharedCtor()
413 new (field_ptr) RepeatedPtrField<std::string>(arena_); in SharedCtor()
[all …]
Dimplicit_weak_message.h57 ImplicitWeakMessage() : arena_(NULL) {} in ImplicitWeakMessage()
58 explicit ImplicitWeakMessage(Arena* arena) : arena_(arena) {} in ImplicitWeakMessage()
69 Arena* GetArena() const override { return arena_; } in GetArena()
96 Arena* const arena_;
Dextension_set.cc188 : arena_(arena), in ExtensionSet()
193 : Arena::CreateArray<KeyValue>(arena_, flat_capacity_)} {} in ExtensionSet()
196 : arena_(NULL), in ExtensionSet()
201 : Arena::CreateArray<KeyValue>(arena_, flat_capacity_)} {} in ExtensionSet()
205 if (arena_ == NULL) { in ~ExtensionSet()
348 Arena::CreateMessage<RepeatedField<LOWERCASE>>(arena_); \
393 Arena::CreateMessage<RepeatedField<int32>>(arena_); in MutableRawRepeatedField()
397 Arena::CreateMessage<RepeatedField<int64>>(arena_); in MutableRawRepeatedField()
401 Arena::CreateMessage<RepeatedField<uint32>>(arena_); in MutableRawRepeatedField()
405 Arena::CreateMessage<RepeatedField<uint64>>(arena_); in MutableRawRepeatedField()
[all …]
Drepeated_field.cc115 ? prototype->New(arena_) in AddWeak()
116 : Arena::CreateMessage<ImplicitWeakMessage>(arena_); in AddWeak()
Dmap_field.cc43 if (repeated_field_ != NULL && arena_ == NULL) delete repeated_field_; in ~MapFieldBase()
115 if (arena_ == nullptr) { in SyncRepeatedFieldWithMap()
119 Arena::CreateMessage<RepeatedPtrField<Message> >(arena_); in SyncRepeatedFieldWithMap()
133 repeated_field_ = Arena::CreateMessage<RepeatedPtrField<Message> >(arena_); in SyncRepeatedFieldWithMapNoLock()
363 if (MapFieldBase::arena_ == NULL) { in SyncRepeatedFieldWithMapNoLock()
368 MapFieldBase::arena_); in SyncRepeatedFieldWithMapNoLock()
Dextension_set_heavy.cc178 extension->message_value = prototype->New(arena_); in MutableMessage()
205 if (arena_ == NULL) { in ReleaseMessage()
209 if (arena_ != NULL) { in ReleaseMessage()
233 if (arena_ == NULL) { in UnsafeArenaReleaseMessage()
252 Arena::CreateMessage<RepeatedPtrField<MessageLite> >(arena_); in MaybeNewRepeatedExtension()
277 result = prototype->New(arena_); in AddMessage()
Dmap_field_inl.h281 if (this->MapFieldBase::arena_ == NULL) { in SyncRepeatedFieldWithMapNoLock()
286 this->MapFieldBase::arena_); in SyncRepeatedFieldWithMapNoLock()
305 down_cast<EntryType*>(default_entry->New(this->MapFieldBase::arena_)); in SyncRepeatedFieldWithMapNoLock()
Dmap_entry_lite.h197 MapEntryImpl() : arena_(NULL) {
204 explicit MapEntryImpl(Arena* arena) : arena_(arena) {
572 inline Arena* GetArenaNoVirtual() const { return arena_; }
577 Arena* arena_;
Darena.cc228 head_ = arena_->NewBlock(head_, n); in AllocateAlignedFallback()
354 serial->arena_ = arena; in New()
Drepeated_field.h592 inline Arena* GetArenaNoVirtual() const { return arena_; }
607 Arena* arena_;
1493 : arena_(NULL), current_size_(0), total_size_(0), rep_(NULL) {}
1496 : arena_(arena), current_size_(0), total_size_(0), rep_(NULL) {}
1500 if (rep_ != NULL && arena_ == NULL) {
1579 TypeHandler::Delete(cast<TypeHandler>(rep_->elements[index]), arena_);
1593 TypeHandler::NewFromPrototype(prototype, arena_);
1610 TypeHandler::New(arena_, std::move(value));
1834 arena_);
Dmap_field.h72 : arena_(NULL), repeated_field_(NULL), state_(STATE_MODIFIED_MAP) {} in MapFieldBase()
74 : arena_(arena), repeated_field_(NULL), state_(STATE_MODIFIED_MAP) { in MapFieldBase()
147 Arena* arena_; variable
Darena_impl.h198 ArenaImpl* arena_; // Containing arena. variable
/external/tensorflow/tensorflow/lite/
Darena_planner.cc37 arena_(kDefaultArenaAlignment), in ArenaPlanner()
50 return arena_.BasePointer(); in BasePointer()
56 TF_LITE_ENSURE_STATUS(arena_.ClearPlan()); in ResetAllocations()
70 TF_LITE_ENSURE_STATUS(arena_.Deallocate(context_, allocs_[i])); in ResetAllocationsAfter()
226 TF_LITE_ENSURE_STATUS(arena_.ReleaseBuffer()); in ReleaseNonPersistentMemory()
239 TF_LITE_ENSURE_STATUS(arena_.Commit(context_)); in AcquireNonPersistentMemory()
251 return arena_.GetBufferSize() != 0; in HasNonPersistentMemory()
255 TF_LITE_ENSURE_STATUS(arena_.Commit(context_)); in Commit()
306 TF_LITE_ENSURE_STATUS(arena_.ResolveAlloc(context_, allocs_[tensor_index], in ResolveTensorAllocation()
321 TF_LITE_ENSURE_STATUS(arena_.Allocate(context_, tensor_alignment_, in CalculateTensorAllocation()
[all …]
Darena_planner.h111 SimpleMemoryArena arena_; variable
/external/tensorflow/tensorflow/core/kernels/tensor_forest/
Dresources.cc32 protobuf::Arena::CreateMessage<boosted_trees::Tree>(&arena_)) {} in TensorForestTreeResource()
66 arena_.Reset(); in Reset()
67 DCHECK_EQ(0, arena_.SpaceAllocated()); in Reset()
68 decision_tree_ = protobuf::Arena::CreateMessage<boosted_trees::Tree>(&arena_); in Reset()
Dresources.h60 protobuf::Arena arena_; variable
/external/libtextclassifier/native/utils/grammar/
Dmatcher.h111 arena_(kBlocksize), in Matcher()
154 return reinterpret_cast<Match*>(arena_.Alloc(size)); in AllocateMatch()
159 return reinterpret_cast<T*>(arena_.Alloc(sizeof(T))); in AllocateMatch()
170 size_t ArenaSize() const { return arena_.status().bytes_allocated(); } in ArenaSize()
216 UnsafeArena arena_; variable
Dmatcher.cc241 arena_.Reset(); in Reset()
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_chttp2_transport.cc196 arena_ = gpr_arena_create(4096); in Stream()
202 gpr_arena_destroy(arena_); in ~Stream()
211 gpr_arena_destroy(arena_); in Init()
212 arena_ = gpr_arena_create(4096); in Init()
216 nullptr, arena_); in Init()
248 gpr_arena* arena_; member in Stream
/external/tensorflow/tensorflow/core/kernels/boosted_trees/
Dresources.cc30 &arena_)) {} in BoostedTreesEnsembleResource()
374 arena_.Reset(); in Reset()
375 CHECK_EQ(0, arena_.SpaceAllocated()); in Reset()
377 protobuf::Arena::CreateMessage<boosted_trees::TreeEnsemble>(&arena_); in Reset()
Dresources.h175 protobuf::Arena arena_;
/external/tensorflow/tensorflow/core/graph/
Dgraph.cc374 arena_(8 << 10 /* 8kB */) { in Graph()
505 e = new (arena_.Alloc(sizeof(Edge))) Edge; // placement new in AddEdge()
780 node = new (arena_.Alloc(sizeof(Node))) Node; // placement new in AllocateNode()

12