Protobuf Team Bot
967a351e26
Auto-generate files after cl/585696951
1 year ago
Eric Salo
3ce2c573b3
upb: start to lock down upb_Array
...
PiperOrigin-RevId: 585696951
1 year ago
Protobuf Team Bot
4f40ab86d5
Automated rollback of commit e7edf5c532
.
...
PiperOrigin-RevId: 585681939
1 year ago
Protobuf Team Bot
e7edf5c532
Google-internal change
...
PiperOrigin-RevId: 585659859
1 year ago
Jakob Buchgraber
ab11a0d1a8
Name the lifetime in the signature of SettableValue.set_on()
...
This change names the lifetime of Mut<'a, T> and requires that T outlives 'a. The motivation for this change came up while implementing `Map<K, ProtoStr>`. The Map implementation makes it so that `V` needs to implement the `MapWithKeyOps` trait which has an associated type with a lifetime (`Value<'a>`. The lifetime bound on `T` ensures that e.g. for `MapWithKeyOps<Value<'b>=&'b ProtoStr>` `'a` outlives `'b`.
PiperOrigin-RevId: 585657154
1 year ago
Protobuf Team Bot
f9929e997e
Internal Change
...
PiperOrigin-RevId: 585644617
1 year ago
Protobuf Team Bot
a2f92689da
Protobuf Java Cross-version validation in OSS.
...
PiperOrigin-RevId: 585139332
1 year ago
Protobuf Team Bot
62d5d9bf67
Auto-generate files after cl/584925599
1 year ago
Protobuf Team Bot
2f25726b89
Automated rollback of commit f046526a0e
.
...
PiperOrigin-RevId: 584925599
1 year ago
Sandy Zhang
b4858b255b
Breaking change: Make deprecated Java gencode PARSER variable private.
...
This was marked deprecated ~8 years ago.
PiperOrigin-RevId: 584690916
1 year ago
Protobuf Team Bot
c25e9ca0f8
remove usage of host_fragments in third_party/protobuf/rust/aspects.bzl
...
PiperOrigin-RevId: 584635878
1 year ago
Mike Kruskal
571b727cb6
Make rules_ruby a dev-only dependency.
...
There is no canonical rules_ruby repo today, and we don't want our fork to become one. In order to unblock inclusion of Protobuf in the bzlmod registry, we're making this a dev dependency and dropping support for Bazel/Ruby.
Fixes #14569
PiperOrigin-RevId: 584393841
1 year ago
Protobuf Team Bot
c80260904f
Auto-generate files after cl/584380544
1 year ago
Eric Salo
a49f6b8ea0
upb: move ElemSizeLg2() from message/ into mini_table/
...
PiperOrigin-RevId: 584380544
1 year ago
Protobuf Team Bot
e81cda1834
Auto-generate files after cl/584358795
1 year ago
Eric Salo
0b892a5466
upb: move IsOneof() from message/internal/accessors.h
...
PiperOrigin-RevId: 584358795
1 year ago
Protobuf Team Bot
f9abeba8bf
Auto-generate files after cl/584346836
1 year ago
Protobuf Team Bot
318d310e64
Create `RuntimeVersion.java` that is updated with releases to prepare version check.
...
PiperOrigin-RevId: 584346836
1 year ago
Protobuf Team Bot
194ae0c16d
Delete Delete().
...
The function is dead.
PiperOrigin-RevId: 584340674
1 year ago
Protobuf Team Bot
81a47f67ce
Auto-generate files after cl/584322655
1 year ago
Protobuf Team Bot
f046526a0e
DescritorTable improvements:
...
- Inline the once_flag object. This avoids an unnecessary indirection and secondary object.
- Reorganize the fields to reduce the size by 8 bytes.
PiperOrigin-RevId: 584322655
1 year ago
Protobuf Team Bot
1b8e15fa4e
Always inline call to `Destroy<>()` in `DestroyProtos()`.
...
This reduces stack size in some builds where Destroy<> did not get inlined.
PiperOrigin-RevId: 584320630
1 year ago
Protobuf Team Bot
54573a45d2
Auto-generate files after cl/584309590
1 year ago
Protobuf Team Bot
4656b0d6e0
Make SetField/GetField public and operate on MessageValue instead of void*.
...
PiperOrigin-RevId: 584309590
1 year ago
Jakob Buchgraber
95073f8e78
Implement Proxied for Maps
...
This change implements the Proxied trait for the Map type.
It leaves a TODO to implement SettableValue. I haven't implemented SettableValue yet because I have not yet been able to verify that we get the right copy_from semantics for both kernels. I'll implement set_on in a follow up.
PiperOrigin-RevId: 584285061
1 year ago
Protobuf Team Bot
08d8b80b22
Internal change.
...
PiperOrigin-RevId: 584276582
1 year ago
Protobuf Team Bot
c5b3eb8059
Auto-generate files after cl/584154442
1 year ago
Eric Salo
45b292f119
upb: refactor mini_table/enum.h
...
PiperOrigin-RevId: 584154442
1 year ago
Protobuf Team Bot
5ae9efc02c
Fix Unreachable() test to property EXPECT_DEATH in NDEBUG mode.
...
EXPECT_DEBUG_DEATH runs the statement without expecting a death in NDEBUG mode, causing a test failure in asan due to reaching `__builtin_unreachable`.
Also, improve a bit the definition of Unreachable to be more readable/useful.
PiperOrigin-RevId: 584133307
1 year ago
Protobuf Team Bot
0fab773c1d
Update remainder of upb to new short license style.
...
PiperOrigin-RevId: 584116886
1 year ago
Richard Levasseur
06776d20a5
Add `load()` statements for builtin Python rules/providers
...
PiperOrigin-RevId: 584089414
1 year ago
Protobuf Team Bot
78391a1318
Auto-generate files after cl/584082079
1 year ago
Eric Salo
7fa050d8c1
upb: move IsSubMessage() and IsRepeatedOrMap() from mini_table/internal/field.h
...
PiperOrigin-RevId: 584082079
1 year ago
Kevin King
9b8b2760f8
Move MessageInit function to cc_library
...
This allows rust generator to use this function directly in order to generate symbol names for Message MiniTables.
PiperOrigin-RevId: 584054361
1 year ago
Protobuf Team Bot
c33967fcbc
Add iterator_concept support.
...
This allows for better code generation in C++20 for algorithms that take advantage of random access vs contiguous data.
```
name old INSTRUCTIONS/op new INSTRUCTIONS/op delta
BM_RepeatedField_Sort 5.74k ± 0% 5.74k ± 0% -0.13% (p=0.000 n=179+183)
BM_RepeatedField_ToVector 693 ± 0% 693 ± 0% ~ (p=0.153 n=93+91)
BM_RepeatedPtrField_SortIndirect 562 ± 0% 559 ± 0% -0.53% (p=0.000 n=92+92)
```
PiperOrigin-RevId: 583983215
1 year ago
Eric Salo
708913c05c
rust: stop using deprecated upb:collections as a dep
...
PiperOrigin-RevId: 583932650
1 year ago
Protobuf Team Bot
c9a8b46fd0
Auto-generate files after cl/583524301
1 year ago
Eric Salo
8324c900b7
upb: steal a bit from upb_Array
...
PiperOrigin-RevId: 583524301
1 year ago
Mike Kruskal
6546eca70a
Register a shutdown deleter for C++ feature defaults
...
Fixes #14794
PiperOrigin-RevId: 583510779
1 year ago
Protobuf Team Bot
8a1a6ef910
Auto-generate files after cl/583486341
1 year ago
Protobuf Team Bot
c83fc3dc42
Add arena aware move constructors.
...
PiperOrigin-RevId: 583486341
1 year ago
Protobuf Team Bot
80056dfb30
Replace ASSUME(false) with Unreachable() for clearer intent.
...
They have the same optimization effect.
PiperOrigin-RevId: 583455660
1 year ago
Protobuf Team Bot
b41f04d42a
Auto-generate files after cl/583411456
1 year ago
Protobuf Team Bot
92157c8db5
Fix typo in FieldDescriptorProto.
...
PiperOrigin-RevId: 583411456
1 year ago
Protobuf Team Bot
d7dccd5d3f
Auto-generate files after cl/583379506
1 year ago
Protobuf Team Bot
33811d1227
Refactor ClassData to use MessageLite for merge_to_from.
...
This CL has no behavior changes, but helps reduce boilerplate changes in a future CL where the signature will be used.
PiperOrigin-RevId: 583379506
1 year ago
Protobuf Team Bot
4864e43b7d
Allow Messages to be used in Oneofs.
...
PiperOrigin-RevId: 583347013
1 year ago
Protobuf Team Bot
b0d7441f83
Avoid calling GetArena() multiple times.
...
PiperOrigin-RevId: 583188151
1 year ago
Protobuf Team Bot
838d9b7c7f
Push/pop `noreturn` when it is a macro.
...
This is coming from C's stdnoreturn.h which seems to be unguarded for C++ in
some toolchains.
PiperOrigin-RevId: 583165958
1 year ago
Hong Shin
1a5cdb9378
Migrate optional.rs to googletest-rust
...
PiperOrigin-RevId: 583072875
1 year ago