Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/google/protobuf/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ cc_library(
"raw_ptr.cc",
"repeated_field.cc",
"repeated_ptr_field.cc",
"unknown_field_set_lite.cc",
"wire_format_lite.cc",
],
# TODO Fix ODR violations across BUILD.bazel files.
Expand Down Expand Up @@ -747,6 +748,7 @@ cc_library(
"runtime_version.h",
"serial_arena.h",
"thread_safe_arena.h",
"unknown_field_set.h",
"wire_format_lite.h",
],
copts = COPTS + select({
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/google/protobuf/compiler/java/java_features.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/google/protobuf/compiler/plugin.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/google/protobuf/cpp_features.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/google/protobuf/cpp_file_options.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 23 additions & 23 deletions src/google/protobuf/descriptor.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions src/google/protobuf/generated_message_tctable_full.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,10 @@ namespace protobuf {
namespace internal {

const char* TcParser::GenericFallback(PROTOBUF_TC_PARAM_DECL) {
PROTOBUF_MUSTTAIL return GenericFallbackImpl<Message, UnknownFieldSet>(
PROTOBUF_TC_PARAM_PASS);
PROTOBUF_MUSTTAIL return GenericFallbackImpl<Message>(PROTOBUF_TC_PARAM_PASS);
}

const char* TcParser::ReflectionFallback(PROTOBUF_TC_PARAM_DECL) {
bool must_fallback_to_generic = (ptr == nullptr);
if (ABSL_PREDICT_FALSE(must_fallback_to_generic)) {
PROTOBUF_MUSTTAIL return GenericFallback(PROTOBUF_TC_PARAM_PASS);
}

SyncHasbits(msg, hasbits, table);
uint32_t tag = data.tag();
if (tag == 0 || (tag & 7) == WireFormatLite::WIRETYPE_END_GROUP) {
Expand Down
5 changes: 4 additions & 1 deletion src/google/protobuf/generated_message_tctable_gen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,10 @@ TailCallTableInfo::TailCallTableInfo(
// Reflection and weak messages have the reflection fallback
: !message_options.uses_codegen || HasWeakFields(descriptor)
? TcParseFunction::kReflectionFallback
// Codegen messages have lite and non-lite version
// Messages without extensions fallback directly to MpUnknownFields
: descriptor->extension_range_count() == 0
? TcParseFunction::kMpUnknownFields
// Codegen messages with extensions have lite and non-lite version
: message_options.is_lite ? TcParseFunction::kGenericFallbackLite
: TcParseFunction::kGenericFallback;

Expand Down
Loading
Loading