Home
last modified time | relevance | path

Searched refs:Arena (Results 1 – 25 of 94) sorted by relevance

1234

/external/protobuf/src/google/protobuf/
Darena_unittest.cc158 EXPECT_TRUE(Arena::is_arena_constructable<TestAllTypes>::type::value); in TEST()
159 EXPECT_TRUE(Arena::is_arena_constructable<const TestAllTypes>::type::value); in TEST()
160 EXPECT_FALSE(Arena::is_arena_constructable<Arena>::type::value); in TEST()
164 Arena arena; in TEST()
165 EXPECT_TRUE(Arena::Create<int32>(&arena) != NULL); in TEST()
166 EXPECT_TRUE(Arena::Create<int64>(&arena) != NULL); in TEST()
167 EXPECT_TRUE(Arena::Create<float>(&arena) != NULL); in TEST()
168 EXPECT_TRUE(Arena::Create<double>(&arena) != NULL); in TEST()
169 EXPECT_TRUE(Arena::Create<string>(&arena) != NULL); in TEST()
177 SimpleDataType* data = Arena::Create<SimpleDataType>(&arena); in TEST()
[all …]
Darena.cc42 google::protobuf::internal::SequenceNumber Arena::lifecycle_id_generator_;
44 Arena::ThreadCache& Arena::thread_cache() { in thread_cache()
50 Arena::ThreadCache& Arena::thread_cache() { in thread_cache()
55 GOOGLE_THREAD_LOCAL Arena::ThreadCache Arena::thread_cache_ = { -1, NULL };
58 void Arena::Init() { in Init()
91 Arena::~Arena() { in ~Arena()
100 uint64 Arena::Reset() { in Reset()
106 uint64 Arena::ResetInternal() { in ResetInternal()
118 Arena::Block* Arena::NewBlock(void* me, Block* my_last_block, size_t n, in NewBlock()
151 void Arena::AddBlock(Block* b) { in AddBlock()
[all …]
Dproto3_arena_unittest.cc126 Arena arena; in TEST()
127 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
136 Arena arena; in TEST()
137 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
154 Arena arena1; in TEST()
155 Arena arena2; in TEST()
158 TestAllTypes* arena1_message = Arena::CreateMessage<TestAllTypes>(&arena1); in TEST()
159 TestAllTypes* arena2_message = Arena::CreateMessage<TestAllTypes>(&arena2); in TEST()
166 Arena arena; in TEST()
167 TestAllTypes *arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
[all …]
Dwrappers.pb.h64 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } in GetArena()
78 DoubleValue* New(::google::protobuf::Arena* arena) const;
99 explicit DoubleValue(::google::protobuf::Arena* arena);
102 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
104 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { in GetArenaNoVirtual()
128 friend class ::google::protobuf::Arena;
155 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } in GetArena()
169 FloatValue* New(::google::protobuf::Arena* arena) const;
190 explicit FloatValue(::google::protobuf::Arena* arena);
193 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
[all …]
Dmap_type_handler.h84 static inline Type* CreateMessage(Arena* arena);
89 static inline Type* CreateMessage(Arena* arena) {
90 return Arena::CreateMessage<Type>(arena);
96 static inline Type* CreateMessage(Arena* arena) {
97 return Arena::Create<Type>(arena);
174 static inline void Merge(const Type& from, Type** to, Arena* arena);
175 static inline void Clear(Type** value, Arena* arena);
176 static inline void ClearMaybeByDefaultEnum(Type** value, Arena* arena,
178 static inline void Initialize(Type** x, Arena* arena);
182 Arena* arena);
[all …]
Darena.h63 class Arena; // defined below variable
128 void* (*on_arena_init)(Arena* arena);
129 void (*on_arena_reset)(Arena* arena, void* cookie, uint64 space_used);
130 void (*on_arena_destruction)(Arena* arena, void* cookie, uint64 space_used);
216 class Arena final {
218 class LIBPROTOBUF_EXPORT Arena {
223 explicit Arena(const ArenaOptions& options) : options_(options) { in Arena() function
229 Arena() { in Arena() function
237 ~Arena();
250 static T* CreateMessage(::google::protobuf::Arena* arena) { in CreateMessage()
[all …]
Dproto3_arena_lite_unittest.cc126 Arena arena; in TEST()
127 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
133 Arena arena1; in TEST()
134 Arena arena2; in TEST()
137 TestAllTypes* arena1_message = Arena::CreateMessage<TestAllTypes>(&arena1); in TEST()
138 TestAllTypes* arena2_message = Arena::CreateMessage<TestAllTypes>(&arena2); in TEST()
145 Arena arena; in TEST()
146 TestAllTypes *arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
154 Arena arena; in TEST()
155 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
Dmap_entry_lite.h39 class Arena; variable
209 MessageLite* New(Arena* arena) const { in New()
210 MapEntryLite* entry = Arena::CreateMessage<MapEntryLite>(arena); in New()
250 Arena* GetArena() const { in GetArena()
259 Arena* arena) { in EnumWrap()
260 return Arena::CreateMessage<MapEnumEntryWrapper< in EnumWrap()
267 static MapEntryLite* Wrap(const Key& key, const Value& value, Arena* arena) { in Wrap()
268 return Arena::CreateMessage<MapEntryWrapper<Key, Value, kKeyFieldType, in Wrap()
302 MapEntryWrapper(Arena* arena, const K& key, const V& value) in MapEntryWrapper()
316 friend class ::google::protobuf::Arena;
[all …]
Darenastring.h58 const ::std::string& value, ::google::protobuf::Arena* arena) { in Set()
72 ::google::protobuf::Arena* arena) { in Mutable()
84 ::google::protobuf::Arena* arena) { in Release()
105 ::google::protobuf::Arena* /* arena */) { in UnsafeArenaRelease()
118 ::std::string* value, ::google::protobuf::Arena* arena) { in SetAllocated()
138 ::google::protobuf::Arena* /* arena */) { in UnsafeArenaSetAllocated()
155 ::google::protobuf::Arena* arena) { in Destroy()
167 ::google::protobuf::Arena* /* arena */) { in ClearToEmpty()
179 ::google::protobuf::Arena* /* arena */) { in ClearToDefault()
287 GOOGLE_ATTRIBUTE_NOINLINE void CreateInstance(::google::protobuf::Arena* arena, in CreateInstance()
Dmetadata.h62 explicit InternalMetadataWithArena(Arena* arena) in InternalMetadataWithArena()
88 GOOGLE_ATTRIBUTE_ALWAYS_INLINE Arena* arena() const { in arena()
92 return PtrValue<Arena>(); in arena()
142 Arena* arena_;
146 Arena* my_arena = arena(); in mutable_unknown_fields_slow()
147 Container* container = Arena::Create<Container>(my_arena); in mutable_unknown_fields_slow()
Dlite_arena_unittest.cc46 google::protobuf::Arena arena(options); in TEST()
56 google::protobuf::Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(&arena); in TEST()
61 google::protobuf::Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(&arena); in TEST()
68 google::protobuf::Arena arena; in TEST()
70 google::protobuf::Arena::CreateMessage<protobuf_unittest::ForeignMessageArenaLite>( in TEST()
Dempty.pb.h56 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } in GetArena()
70 Empty* New(::google::protobuf::Arena* arena) const;
91 explicit Empty(::google::protobuf::Arena* arena);
94 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
96 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { in GetArenaNoVirtual()
114 friend class ::google::protobuf::Arena;
Dtimestamp.pb.h56 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } in GetArena()
70 Timestamp* New(::google::protobuf::Arena* arena) const;
91 explicit Timestamp(::google::protobuf::Arena* arena);
94 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
96 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { in GetArenaNoVirtual()
126 friend class ::google::protobuf::Arena;
Drepeated_field.h110 explicit RepeatedField(Arena* arena);
227 ::google::protobuf::Arena* GetArena() const { in GetArena()
246 Arena* arena;
258 friend class Arena; variable
272 inline Arena* GetArenaNoVirtual() const { in GetArenaNoVirtual()
393 explicit RepeatedPtrFieldBase(::google::protobuf::Arena* arena);
489 Arena* value_arena,
490 Arena* my_arena);
502 inline Arena* GetArenaNoVirtual() const {
519 Arena* arena_;
[all …]
Dmap_entry.h44 class Arena; variable
189 Message* New(Arena* arena) const { in New()
190 MapEntry* entry = Arena::CreateMessage<MapEntry>(arena); in New()
235 Arena* GetArena() const { in GetArena()
265 explicit MapEntry(Arena* arena) in MapEntry()
270 inline Arena* GetArenaNoVirtual() const { in GetArenaNoVirtual()
285 friend class ::google::protobuf::Arena;
Dmap_field.h68 explicit MapFieldBase(Arena* arena) in MapFieldBase()
138 Arena* arena_;
188 explicit TypeDefinedMapFieldBase(Arena* arena) : MapFieldBase(arena) {} in TypeDefinedMapFieldBase()
245 explicit MapField(Arena* arena);
250 MapField(Arena* arena, const Message* default_entry);
295 friend class ::google::protobuf::Arena;
301 DynamicMapField(const Message* default_entry, Arena* arena);
Dwrappers.pb.cc323 DoubleValue::DoubleValue(::google::protobuf::Arena* arena) in DoubleValue()
367 void DoubleValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor()
386 DoubleValue* DoubleValue::New(::google::protobuf::Arena* arena) const { in New()
387 return ::google::protobuf::Arena::CreateMessage<DoubleValue>(arena); in New()
581 FloatValue::FloatValue(::google::protobuf::Arena* arena) in FloatValue()
625 void FloatValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor()
644 FloatValue* FloatValue::New(::google::protobuf::Arena* arena) const { in New()
645 return ::google::protobuf::Arena::CreateMessage<FloatValue>(arena); in New()
839 Int64Value::Int64Value(::google::protobuf::Arena* arena) in Int64Value()
883 void Int64Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor()
[all …]
Dextension_set_unittest.cc325 ::google::protobuf::Arena arena1; in TEST()
327 ::google::protobuf::Arena::CreateMessage<unittest::TestAllExtensions>(&arena1); in TEST()
333 ::google::protobuf::Arena arena1; in TEST()
335 ::google::protobuf::Arena::CreateMessage<unittest::TestAllExtensions>(&arena1); in TEST()
343 ::google::protobuf::Arena arena1; in TEST()
345 ::google::protobuf::Arena::CreateMessage<unittest::TestAllExtensions>(&arena1); in TEST()
354 ::google::protobuf::Arena arena; in TEST()
356 ::google::protobuf::Arena::CreateMessage<unittest::TestAllExtensions>(&arena); in TEST()
377 ::google::protobuf::Arena arena1; in TEST()
378 google::protobuf::scoped_ptr<google::protobuf::Arena> arena2(new ::google::protobuf::Arena()); in TEST()
[all …]
Dmap_field_lite.h55 explicit MapFieldLite(Arena* arena);
88 Arena* arena_;
91 friend class ::google::protobuf::Arena;
110 default_enum_value>::MapFieldLite(Arena* arena) in MapFieldLite()
112 map_ = Arena::CreateMessage<Map<Key, T> >(arena); in MapFieldLite()
233 return Arena::CreateMessage<EntryType>(arena_); in NewEntry()
/external/tensorflow/tensorflow/core/lib/core/
Darena.cc45 Arena::Arena(const size_t block_size) in Arena() function in tensorflow::core::Arena
61 Arena::~Arena() { in ~Arena()
72 bool Arena::SatisfyAlignment(size_t alignment) { in SatisfyAlignment()
91 void Arena::Reset() { in Reset()
110 void Arena::MakeNewBlock(const uint32 alignment) { in MakeNewBlock()
135 Arena::AllocatedBlock* Arena::AllocNewBlock(const size_t block_size, in AllocNewBlock()
194 void* Arena::GetMemoryFallback(const size_t size, const int alignment) { in GetMemoryFallback()
234 void Arena::FreeBlocks() { in FreeBlocks()
Darena_test.cc49 Arena a(1024); in TEST()
61 Arena a(1024); in TEST()
75 Arena a(1024); in TEST()
91 Arena a(1024); in TEST()
106 Arena a(1024); in TEST()
Darena.h35 class Arena {
38 explicit Arena(const size_t block_size);
39 ~Arena();
104 TF_DISALLOW_COPY_AND_ASSIGN(Arena);
/external/clang/lib/Analysis/
DThreadSafetyCommon.cpp160 return CapabilityExpr(new (Arena) til::Wildcard(), false); in translateAttrExpr()
253 return new (Arena) til::Literal(cast<Expr>(S)); in translate()
263 return new (Arena) til::Undefined(S); in translate()
287 return new (Arena) til::LiteralPtr(VD); in translateDeclRefExpr()
337 til::SExpr *E = new (Arena) til::SApply(BE); in translateMemberExpr()
344 til::Project *P = new (Arena) til::Project(E, D); in translateMemberExpr()
370 E = new (Arena) til::Apply(E, A); in translateCallExpr()
372 return new (Arena) til::Call(E, CE); in translateCallExpr()
382 return new (Arena) til::Cast(til::CAST_objToPtr, E); in translateCXXMemberCallExpr()
397 return new (Arena) til::Cast(til::CAST_objToPtr, E); in translateCXXOperatorCallExpr()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Demangle/
DMicrosoftDemangle.cpp241 virtual Type *clone(ArenaAllocator &Arena) const;
281 Type *clone(ArenaAllocator &Arena) const override;
293 Type *clone(ArenaAllocator &Arena) const override;
305 Type *clone(ArenaAllocator &Arena) const override;
324 Type *clone(ArenaAllocator &Arena) const override;
331 Type *clone(ArenaAllocator &Arena) const override;
576 Type *Type::clone(ArenaAllocator &Arena) const { in clone()
577 return Arena.alloc<Type>(*this); in clone()
687 Type *PointerType::clone(ArenaAllocator &Arena) const { in clone()
688 return Arena.alloc<PointerType>(*this); in clone()
[all …]
/external/swiftshader/third_party/subzero/src/
DIceDefs.h166 VariableDeclarationList() : Arena(new ArenaAllocator()) {} in VariableDeclarationList()
174 return Arena->Allocate<T>(Count);
181 T *Ret = Arena->Allocate<T>(); in allocate_variable_declaration()
194 addArena(std::move(Other->Arena)); in merge()
210 if (Arena == nullptr) { in clearAndPurge()
225 Arena->Reset(); in clearAndPurge()
269 ArenaPtr Arena; variable

1234