/external/protobuf/src/google/protobuf/ |
arena_nc.cc | 31 // Negative compilation test for arena usage. 33 #include <google/protobuf/arena.h> 40 google::protobuf::Arena arena; local 41 protobuf_unittest::TestAllTypes message(&arena);
|
arena_unittest.cc | 31 #include <google/protobuf/arena.h> 158 EXPECT_TRUE(Arena::is_arena_constructable<TestAllTypes>::type::value); 159 EXPECT_TRUE(Arena::is_arena_constructable<const TestAllTypes>::type::value); 160 EXPECT_FALSE(Arena::is_arena_constructable<Arena>::type::value); 164 Arena arena; local 165 EXPECT_TRUE(Arena::Create<int32>(&arena) != NULL); 166 EXPECT_TRUE(Arena::Create<int64>(&arena) != NULL) 187 Arena arena; local 201 Arena arena; local 250 Arena arena; local 266 Arena arena; local 404 Arena arena; local 420 Arena arena; local 433 Arena arena; local 441 Arena arena; local 523 Arena arena; local 541 Arena arena; local 556 Arena arena; local 793 Arena arena; local 853 Arena arena; local 867 Arena arena; local 877 Arena arena; local 898 Arena arena; local 969 Arena arena; local 980 Arena arena; local 985 Arena arena; local 990 Arena arena; local 1083 Arena arena; local 1191 Arena arena; local 1246 ::google::protobuf::Arena arena; local 1254 ::google::protobuf::Arena arena; local 1269 ::google::protobuf::Arena arena; local [all...] |
arena.cc | 31 #include <google/protobuf/arena.h> 42 google::protobuf::internal::SequenceNumber Arena::lifecycle_id_generator_; 44 Arena::ThreadCache& Arena::thread_cache() { 50 Arena::ThreadCache& Arena::thread_cache() { 55 GOOGLE_THREAD_LOCAL Arena::ThreadCache Arena::thread_cache_ = { -1, NULL }; 58 void Arena::Init() { 91 Arena::~Arena() [all...] |
lite_arena_unittest.cc | 46 google::protobuf::Arena arena(options); 56 google::protobuf::Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(&arena); 61 google::protobuf::Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(&arena); 68 google::protobuf::Arena arena; local 70 google::protobuf::Arena::CreateMessage<protobuf_unittest::ForeignMessageArenaLite>( 71 &arena); [all...] |
metadata.h | 32 // metadata (Unknown-field set, Arena pointer, ...) and allows its 42 #include <google/protobuf/arena.h> 49 // This is the representation for messages that support arena allocation. It 50 // uses a tagged pointer to either store the Arena pointer, if there are no 51 // unknown fields, or a pointer to a block of memory with both the Arena pointer 53 // allows for "zero-overhead" storage of the Arena pointer, relative to the 57 // indicate an arena pointer and bit 0 == 1 to indicate a UFS+Arena-container 62 explicit InternalMetadataWithArena(Arena* arena) 88 GOOGLE_ATTRIBUTE_ALWAYS_INLINE Arena* arena() const { function in class:google::protobuf::internal::InternalMetadataWithArena [all...] |
proto3_arena_unittest.cc | 41 #include <google/protobuf/arena.h> 51 // as this test is only expected to cover the basics of arena support. 118 // In this file we only test some basic functionalities of arena support in 119 // proto3 and expect the arena support to be fully tested in proto2 unittests 126 Arena arena; local 127 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); 136 Arena arena; local 166 Arena arena; local 175 Arena arena; local 185 Arena arena; local 194 Arena arena; local [all...] |
proto3_arena_lite_unittest.cc | 41 #include <google/protobuf/arena.h> 51 // as this test is only expected to cover the basics of arena support. 118 // In this file we only test some basic functionalities of arena support in 119 // proto3 and expect the arena support to be fully tested in proto2 unittests 126 Arena arena; local 127 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); 133 Arena arena1; 134 Arena arena2 145 Arena arena; local 154 Arena arena; local [all...] |
wrappers.pb.h | 22 #include <google/protobuf/arena.h> 64 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } 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 { 105 return _internal_metadata_.arena(); [all...] |
map_entry_lite.h | 39 class Arena; 209 MessageLite* New(Arena* arena) const { 210 MapEntryLite* entry = Arena::CreateMessage<MapEntryLite>(arena); 250 Arena* GetArena() const { 259 Arena* arena) { 260 return Arena::CreateMessage<MapEnumEntryWrapper< 262 arena, key, value) [all...] |
arenastring.h | 39 #include <google/protobuf/arena.h> 44 // This is the implementation of arena string fields written for the open-source 50 // closely with the arena allocator. 58 const ::std::string& value, ::google::protobuf::Arena* arena) { 60 CreateInstance(arena, &value); 72 ::google::protobuf::Arena* arena) { 74 CreateInstance(arena, default_value); 80 // Own()'d by any arena. If the field was not set, it returns NULL. The calle [all...] |
empty.pb.h | 22 #include <google/protobuf/arena.h> 56 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } 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 { 97 return _internal_metadata_.arena(); [all...] |
timestamp.pb.h | 22 #include <google/protobuf/arena.h> 56 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } 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 { 97 return _internal_metadata_.arena(); [all...] |
message_lite.h | 47 class Arena; 92 // Construct a new instance on the arena. Ownership is passed to the caller 93 // if arena is a NULL. Default implementation for backwards compatibility. 94 virtual MessageLite* New(::google::protobuf::Arena* arena) const; 96 // Get the arena, if any, associated with this message. Virtual method 97 // required for generic operations but most arena-related operations should 100 // types do not implement arena support. 101 virtual ::google::protobuf::Arena* GetArena() const { return NULL; } 103 // Get a pointer that may be equal to this message's arena, or may not be. I [all...] |
arena.h | 63 class Arena; // defined below 86 // ArenaOptions provides optional additional parameters to arena construction 94 // individual arena allocation request occurs with a size larger than this 99 // An initial block of memory for the arena to use, or NULL for none. If 100 // provided, the block must live at least as long as the arena itself. The 101 // creator of the Arena retains ownership of the block after the Arena is 115 // from the arena. By default, it contains a ptr to a wrapper function that 121 // Init hook may return a pointer to a cookie to be stored in the arena. 123 // pointer. This allows us to save an external object per arena instance an [all...] |
map_type_handler.h | 34 #include <google/protobuf/arena.h> 82 // Use arena to create message if Type is arena constructable. Otherwise, 84 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) [all...] |
/prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/ |
metadata.h | 32 // metadata (Unknown-field set, Arena pointer, ...) and allows its 42 #include <google/protobuf/arena.h> 49 // This is the representation for messages that support arena allocation. It 50 // uses a tagged pointer to either store the Arena pointer, if there are no 51 // unknown fields, or a pointer to a block of memory with both the Arena pointer 53 // allows for "zero-overhead" storage of the Arena pointer, relative to the 57 // indicate an arena pointer and bit 0 == 1 to indicate a UFS+Arena-container 62 explicit InternalMetadataWithArena(Arena* arena) 88 GOOGLE_ATTRIBUTE_ALWAYS_INLINE Arena* arena() const { function in class:google::protobuf::internal::InternalMetadataWithArena [all...] |
wrappers.pb.h | 22 #include <google/protobuf/arena.h> 64 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } 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 { 105 return _internal_metadata_.arena(); [all...] |
map_entry_lite.h | 39 class Arena; 209 MessageLite* New(Arena* arena) const { 210 MapEntryLite* entry = Arena::CreateMessage<MapEntryLite>(arena); 250 Arena* GetArena() const { 259 Arena* arena) { 260 return Arena::CreateMessage<MapEnumEntryWrapper< 262 arena, key, value) [all...] |
arenastring.h | 39 #include <google/protobuf/arena.h> 44 // This is the implementation of arena string fields written for the open-source 50 // closely with the arena allocator. 58 const ::std::string& value, ::google::protobuf::Arena* arena) { 60 CreateInstance(arena, &value); 72 ::google::protobuf::Arena* arena) { 74 CreateInstance(arena, default_value); 80 // Own()'d by any arena. If the field was not set, it returns NULL. The calle [all...] |
empty.pb.h | 22 #include <google/protobuf/arena.h> 56 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } 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 { 97 return _internal_metadata_.arena(); [all...] |
timestamp.pb.h | 22 #include <google/protobuf/arena.h> 56 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } 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 { 97 return _internal_metadata_.arena(); [all...] |
message_lite.h | 47 class Arena; 92 // Construct a new instance on the arena. Ownership is passed to the caller 93 // if arena is a NULL. Default implementation for backwards compatibility. 94 virtual MessageLite* New(::google::protobuf::Arena* arena) const; 96 // Get the arena, if any, associated with this message. Virtual method 97 // required for generic operations but most arena-related operations should 100 // types do not implement arena support. 101 virtual ::google::protobuf::Arena* GetArena() const { return NULL; } 103 // Get a pointer that may be equal to this message's arena, or may not be. I [all...] |
arena.h | 63 class Arena; // defined below 86 // ArenaOptions provides optional additional parameters to arena construction 94 // individual arena allocation request occurs with a size larger than this 99 // An initial block of memory for the arena to use, or NULL for none. If 100 // provided, the block must live at least as long as the arena itself. The 101 // creator of the Arena retains ownership of the block after the Arena is 115 // from the arena. By default, it contains a ptr to a wrapper function that 121 // Init hook may return a pointer to a cookie to be stored in the arena. 123 // pointer. This allows us to save an external object per arena instance an [all...] |
/art/runtime/base/ |
arena_allocator.h | 32 class Arena; 120 const Arena* first ATTRIBUTE_UNUSED, 135 void Dump(std::ostream& os, const Arena* first, ssize_t lost_bytes_adjustment) const; 197 class Arena { 199 Arena(); 200 virtual ~Arena() { } 225 // Return true if ptr is contained in the arena. 234 Arena* next_; 244 DISALLOW_COPY_AND_ASSIGN(Arena); 253 Arena* AllocArena(size_t size) REQUIRES(!lock_) [all...] |
arena_allocator.cc | 127 void ArenaAllocatorStatsImpl<kCount>::Dump(std::ostream& os, const Arena* first, 132 for (const Arena* arena = first; arena != nullptr; arena = arena->next_) { 133 malloc_bytes += arena->Size(); 134 lost_bytes += arena->RemainingSpace(); 137 // The lost_bytes_adjustment is used to make up for the fact that the current arena 182 Arena::Arena() : bytes_allocated_(0), memory_(nullptr), size_(0), next_(nullptr) 295 auto* arena = free_arenas_; local [all...] |