diff --git a/src/google/protobuf/any.pb.cc b/src/google/protobuf/any.pb.cc index f27d031ab5..2f38832f54 100644 --- a/src/google/protobuf/any.pb.cc +++ b/src/google/protobuf/any.pb.cc @@ -10,7 +10,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" @@ -189,13 +188,6 @@ inline void Any::SharedDtor() { _impl_.~Impl_(); } -inline void* Any::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Any(arena); -} -constexpr auto Any::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Any)); -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -206,9 +198,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Any::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &Any::ByteSizeLong, &Any::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE diff --git a/src/google/protobuf/any.pb.h b/src/google/protobuf/any.pb.h index c073a1981c..79bea6da18 100644 --- a/src/google/protobuf/any.pb.h +++ b/src/google/protobuf/any.pb.h @@ -190,7 +190,7 @@ class PROTOBUF_EXPORT Any final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Any* New(::google::protobuf::Arena* arena = nullptr) const { + Any* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -246,9 +246,6 @@ class PROTOBUF_EXPORT Any final : public ::google::protobuf::Message *this = ::std::move(from); } const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; public: diff --git a/src/google/protobuf/api.pb.cc b/src/google/protobuf/api.pb.cc index ddec0837ce..2d51ccf914 100644 --- a/src/google/protobuf/api.pb.cc +++ b/src/google/protobuf/api.pb.cc @@ -10,7 +10,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" @@ -335,32 +334,6 @@ inline void Api::SharedDtor() { _impl_.~Impl_(); } -inline void* Api::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Api(arena); -} -constexpr auto Api::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Api, _impl_.methods_) + - decltype(Api::_impl_.methods_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Api, _impl_.options_) + - decltype(Api::_impl_.options_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Api, _impl_.mixins_) + - decltype(Api::_impl_.mixins_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Api), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Api::PlacementNew_, - sizeof(Api)); - } -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -371,9 +344,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Api::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &Api::ByteSizeLong, &Api::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE @@ -796,24 +769,6 @@ inline void Method::SharedDtor() { _impl_.~Impl_(); } -inline void* Method::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Method(arena); -} -constexpr auto Method::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Method, _impl_.options_) + - decltype(Method::_impl_.options_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Method), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Method::PlacementNew_, - sizeof(Method)); - } -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -824,9 +779,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Method::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &Method::ByteSizeLong, &Method::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE @@ -1192,13 +1147,6 @@ inline void Mixin::SharedDtor() { _impl_.~Impl_(); } -inline void* Mixin::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Mixin(arena); -} -constexpr auto Mixin::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Mixin)); -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -1209,9 +1157,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Mixin::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &Mixin::ByteSizeLong, &Mixin::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE diff --git a/src/google/protobuf/api.pb.h b/src/google/protobuf/api.pb.h index 234e7c4345..d05be84724 100644 --- a/src/google/protobuf/api.pb.h +++ b/src/google/protobuf/api.pb.h @@ -150,7 +150,7 @@ class PROTOBUF_EXPORT Mixin final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Mixin* New(::google::protobuf::Arena* arena = nullptr) const { + Mixin* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -206,9 +206,6 @@ class PROTOBUF_EXPORT Mixin final : public ::google::protobuf::Message *this = ::std::move(from); } const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; public: @@ -363,7 +360,7 @@ class PROTOBUF_EXPORT Method final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Method* New(::google::protobuf::Arena* arena = nullptr) const { + Method* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -419,9 +416,6 @@ class PROTOBUF_EXPORT Method final : public ::google::protobuf::Message *this = ::std::move(from); } const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; public: @@ -649,7 +643,7 @@ class PROTOBUF_EXPORT Api final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Api* New(::google::protobuf::Arena* arena = nullptr) const { + Api* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -705,9 +699,6 @@ class PROTOBUF_EXPORT Api final : public ::google::protobuf::Message *this = ::std::move(from); } const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; public: diff --git a/src/google/protobuf/duration.pb.cc b/src/google/protobuf/duration.pb.cc index 526fb9bd0a..ddbda94b36 100644 --- a/src/google/protobuf/duration.pb.cc +++ b/src/google/protobuf/duration.pb.cc @@ -10,7 +10,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" @@ -152,13 +151,6 @@ inline void Duration::SharedDtor() { _impl_.~Impl_(); } -inline void* Duration::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Duration(arena); -} -constexpr auto Duration::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Duration)); -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -169,9 +161,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Duration::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &Duration::ByteSizeLong, &Duration::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE diff --git a/src/google/protobuf/duration.pb.h b/src/google/protobuf/duration.pb.h index d3c3b4d363..b1414b3f64 100644 --- a/src/google/protobuf/duration.pb.h +++ b/src/google/protobuf/duration.pb.h @@ -142,7 +142,7 @@ class PROTOBUF_EXPORT Duration final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Duration* New(::google::protobuf::Arena* arena = nullptr) const { + Duration* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -198,9 +198,6 @@ class PROTOBUF_EXPORT Duration final : public ::google::protobuf::Message *this = ::std::move(from); } const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; public: diff --git a/src/google/protobuf/empty.pb.cc b/src/google/protobuf/empty.pb.cc index 31811d5168..ce7099c2ba 100644 --- a/src/google/protobuf/empty.pb.cc +++ b/src/google/protobuf/empty.pb.cc @@ -10,7 +10,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" @@ -127,13 +126,6 @@ Empty::Empty( // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty) } -inline void* Empty::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Empty(arena); -} -constexpr auto Empty::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Empty)); -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -144,9 +136,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Empty::MergeImpl, - ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::internal::ZeroFieldsBase::GetDeleteImpl(), + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &Empty::ByteSizeLong, &Empty::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE diff --git a/src/google/protobuf/empty.pb.h b/src/google/protobuf/empty.pb.h index 328d119e50..cc0f39a2b7 100644 --- a/src/google/protobuf/empty.pb.h +++ b/src/google/protobuf/empty.pb.h @@ -142,7 +142,7 @@ class PROTOBUF_EXPORT Empty final : public ::google::protobuf::internal::ZeroFie // implements Message ---------------------------------------------- - Empty* New(::google::protobuf::Arena* arena = nullptr) const { + Empty* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -170,9 +170,6 @@ class PROTOBUF_EXPORT Empty final : public ::google::protobuf::internal::ZeroFie *this = ::std::move(from); } const ::google::protobuf::internal::ZeroFieldsBase::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::internal::ZeroFieldsBase::ClassDataFull _class_data_; public: diff --git a/src/google/protobuf/field_mask.pb.cc b/src/google/protobuf/field_mask.pb.cc index 8b0cebc802..9de7ccfada 100644 --- a/src/google/protobuf/field_mask.pb.cc +++ b/src/google/protobuf/field_mask.pb.cc @@ -10,7 +10,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" @@ -162,24 +161,6 @@ inline void FieldMask::SharedDtor() { _impl_.~Impl_(); } -inline void* FieldMask::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) FieldMask(arena); -} -constexpr auto FieldMask::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(FieldMask, _impl_.paths_) + - decltype(FieldMask::_impl_.paths_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FieldMask), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&FieldMask::PlacementNew_, - sizeof(FieldMask)); - } -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -190,9 +171,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &FieldMask::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &FieldMask::ByteSizeLong, &FieldMask::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE diff --git a/src/google/protobuf/field_mask.pb.h b/src/google/protobuf/field_mask.pb.h index 552a6e969e..b6f7e493c4 100644 --- a/src/google/protobuf/field_mask.pb.h +++ b/src/google/protobuf/field_mask.pb.h @@ -142,7 +142,7 @@ class PROTOBUF_EXPORT FieldMask final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - FieldMask* New(::google::protobuf::Arena* arena = nullptr) const { + FieldMask* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -198,9 +198,6 @@ class PROTOBUF_EXPORT FieldMask final : public ::google::protobuf::Message *this = ::std::move(from); } const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; public: diff --git a/src/google/protobuf/source_context.pb.cc b/src/google/protobuf/source_context.pb.cc index 86b0aefd44..84c62f1bf1 100644 --- a/src/google/protobuf/source_context.pb.cc +++ b/src/google/protobuf/source_context.pb.cc @@ -10,7 +10,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" @@ -165,13 +164,6 @@ inline void SourceContext::SharedDtor() { _impl_.~Impl_(); } -inline void* SourceContext::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) SourceContext(arena); -} -constexpr auto SourceContext::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SourceContext)); -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -182,9 +174,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &SourceContext::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &SourceContext::ByteSizeLong, &SourceContext::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE diff --git a/src/google/protobuf/source_context.pb.h b/src/google/protobuf/source_context.pb.h index 099fb8371c..806d61478c 100644 --- a/src/google/protobuf/source_context.pb.h +++ b/src/google/protobuf/source_context.pb.h @@ -142,7 +142,7 @@ class PROTOBUF_EXPORT SourceContext final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - SourceContext* New(::google::protobuf::Arena* arena = nullptr) const { + SourceContext* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -198,9 +198,6 @@ class PROTOBUF_EXPORT SourceContext final : public ::google::protobuf::Message *this = ::std::move(from); } const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; public: diff --git a/src/google/protobuf/struct.pb.cc b/src/google/protobuf/struct.pb.cc index c4e5e7c8fe..df869743a9 100644 --- a/src/google/protobuf/struct.pb.cc +++ b/src/google/protobuf/struct.pb.cc @@ -10,7 +10,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" @@ -245,13 +244,6 @@ bool NullValue_IsValid(int value) { Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse() : SuperType() {} Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE - inline void* Struct_FieldsEntry_DoNotUse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Struct_FieldsEntry_DoNotUse(arena); - } - constexpr auto Struct_FieldsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Struct_FieldsEntry_DoNotUse)); - } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -262,9 +254,9 @@ bool NullValue_IsValid(int value) { nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Struct_FieldsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::ClearImpl, ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl, #endif // PROTOBUF_CUSTOM_VTABLE @@ -379,28 +371,6 @@ inline void Struct::SharedDtor() { _impl_.~Impl_(); } -inline void* Struct::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Struct(arena); -} -constexpr auto Struct::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Struct, _impl_.fields_) + - decltype(Struct::_impl_.fields_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Struct, _impl_.fields_) + - decltype(Struct::_impl_.fields_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Struct), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Struct::PlacementNew_, - sizeof(Struct)); - } -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -411,9 +381,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Struct::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &Struct::ByteSizeLong, &Struct::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE @@ -460,7 +430,7 @@ const ::_pbi::TcParseTable<0, 1, 2, 37, 2> Struct::_table_ = { decltype(Struct()._impl_.fields_)>( 1, 0, 0, 9, 11)}, - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + {::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>}, }}, {{ "\26\6\0\0\0\0\0\0" "google.protobuf.Struct" @@ -745,13 +715,6 @@ void Value::clear_kind() { } -inline void* Value::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Value(arena); -} -constexpr auto Value::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Value)); -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -762,9 +725,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Value::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &Value::ByteSizeLong, &Value::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE @@ -1102,24 +1065,6 @@ inline void ListValue::SharedDtor() { _impl_.~Impl_(); } -inline void* ListValue::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) ListValue(arena); -} -constexpr auto ListValue::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_) + - decltype(ListValue::_impl_.values_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ListValue), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&ListValue::PlacementNew_, - sizeof(ListValue)); - } -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -1130,9 +1075,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &ListValue::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &ListValue::ByteSizeLong, &ListValue::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE diff --git a/src/google/protobuf/struct.pb.h b/src/google/protobuf/struct.pb.h index c4e3ec5660..9fceeb3759 100644 --- a/src/google/protobuf/struct.pb.h +++ b/src/google/protobuf/struct.pb.h @@ -187,7 +187,7 @@ class PROTOBUF_EXPORT ListValue final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ListValue* New(::google::protobuf::Arena* arena = nullptr) const { + ListValue* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -243,9 +243,6 @@ class PROTOBUF_EXPORT ListValue final : public ::google::protobuf::Message *this = ::std::move(from); } const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; public: @@ -383,7 +380,7 @@ class PROTOBUF_EXPORT Struct final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Struct* New(::google::protobuf::Arena* arena = nullptr) const { + Struct* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -439,9 +436,6 @@ class PROTOBUF_EXPORT Struct final : public ::google::protobuf::Message *this = ::std::move(from); } const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; public: @@ -525,9 +519,6 @@ class Struct_FieldsEntry_DoNotUse final private: - friend class ::google::protobuf::MessageLite; - friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, @@ -535,10 +526,8 @@ class Struct_FieldsEntry_DoNotUse final _table_; const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; + friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto; }; // ------------------------------------------------------------------- @@ -628,7 +617,7 @@ class PROTOBUF_EXPORT Value final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Value* New(::google::protobuf::Arena* arena = nullptr) const { + Value* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -684,9 +673,6 @@ class PROTOBUF_EXPORT Value final : public ::google::protobuf::Message *this = ::std::move(from); } const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; public: diff --git a/src/google/protobuf/timestamp.pb.cc b/src/google/protobuf/timestamp.pb.cc index 8f7597e322..9dbca85a05 100644 --- a/src/google/protobuf/timestamp.pb.cc +++ b/src/google/protobuf/timestamp.pb.cc @@ -10,7 +10,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" @@ -152,13 +151,6 @@ inline void Timestamp::SharedDtor() { _impl_.~Impl_(); } -inline void* Timestamp::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Timestamp(arena); -} -constexpr auto Timestamp::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Timestamp)); -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -169,9 +161,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Timestamp::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &Timestamp::ByteSizeLong, &Timestamp::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE diff --git a/src/google/protobuf/timestamp.pb.h b/src/google/protobuf/timestamp.pb.h index 3f68d6000c..1b9cc67ae9 100644 --- a/src/google/protobuf/timestamp.pb.h +++ b/src/google/protobuf/timestamp.pb.h @@ -142,7 +142,7 @@ class PROTOBUF_EXPORT Timestamp final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Timestamp* New(::google::protobuf::Arena* arena = nullptr) const { + Timestamp* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -198,9 +198,6 @@ class PROTOBUF_EXPORT Timestamp final : public ::google::protobuf::Message *this = ::std::move(from); } const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); - static constexpr auto InternalNewImpl_(); static const ::google::protobuf::Message::ClassDataFull _class_data_; public: diff --git a/src/google/protobuf/type.pb.cc b/src/google/protobuf/type.pb.cc index 654f3207e1..5597e6dfc1 100644 --- a/src/google/protobuf/type.pb.cc +++ b/src/google/protobuf/type.pb.cc @@ -10,7 +10,6 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" @@ -527,32 +526,6 @@ inline void Type::SharedDtor() { _impl_.~Impl_(); } -inline void* Type::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Type(arena); -} -constexpr auto Type::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Type, _impl_.fields_) + - decltype(Type::_impl_.fields_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Type, _impl_.oneofs_) + - decltype(Type::_impl_.oneofs_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Type, _impl_.options_) + - decltype(Type::_impl_.options_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Type), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Type::PlacementNew_, - sizeof(Type)); - } -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -563,9 +536,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Type::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &Type::ByteSizeLong, &Type::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE @@ -985,24 +958,6 @@ inline void Field::SharedDtor() { _impl_.~Impl_(); } -inline void* Field::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Field(arena); -} -constexpr auto Field::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Field, _impl_.options_) + - decltype(Field::_impl_.options_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Field), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Field::PlacementNew_, - sizeof(Field)); - } -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -1013,9 +968,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Field::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &Field::ByteSizeLong, &Field::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE @@ -1480,28 +1435,6 @@ inline void Enum::SharedDtor() { _impl_.~Impl_(); } -inline void* Enum::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Enum(arena); -} -constexpr auto Enum::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Enum, _impl_.enumvalue_) + - decltype(Enum::_impl_.enumvalue_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Enum, _impl_.options_) + - decltype(Enum::_impl_.options_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Enum), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Enum::PlacementNew_, - sizeof(Enum)); - } -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -1512,9 +1445,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Enum::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &Enum::ByteSizeLong, &Enum::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE @@ -1888,24 +1821,6 @@ inline void EnumValue::SharedDtor() { _impl_.~Impl_(); } -inline void* EnumValue::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) EnumValue(arena); -} -constexpr auto EnumValue::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.options_) + - decltype(EnumValue::_impl_.options_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EnumValue), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&EnumValue::PlacementNew_, - sizeof(EnumValue)); - } -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -1916,9 +1831,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &EnumValue::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), ::google::protobuf::Message::GetClearImpl(), &EnumValue::ByteSizeLong, &EnumValue::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE @@ -2200,13 +2115,6 @@ inline void Option::SharedDtor() { _impl_.~Impl_(); } -inline void* Option::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) Option(arena); -} -constexpr auto Option::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Option)); -} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::MessageLite::ClassDataFull @@ -2217,9 +2125,9 @@ const ::google::protobuf::MessageLite::ClassDataFull nullptr, // OnDemandRegisterArenaDtor nullptr, // IsInitialized &Option::MergeImpl, - ::google::protobuf::Message::GetNewImpl