Protobuf Team Bot
1b62d18159
Reunify with-bits and no-bits on upb.js to only use bits for non-repeated getters and string-alloc (the latter we can revisit in a followup). All setters go through the upb C api.
...
PiperOrigin-RevId: 590258193
12 months ago
Eric Salo
0c3e116c25
upb: tag _upb_Message_AddUnknown() as UPB_PRIVATE()
...
PiperOrigin-RevId: 590013675
12 months ago
Eric Salo
a649ddadb5
upb: reverse the polarity of the MiniTableField untyped data accessors
...
PiperOrigin-RevId: 590007603
12 months ago
Eric Salo
a303ccbe05
upb: use upb_alloc functions internally instead of stdlib malloc/free
...
PiperOrigin-RevId: 589864832
12 months ago
Eric Salo
cca8a7cc23
upb: delete upb::SymbolTable typedef
...
PiperOrigin-RevId: 589157104
12 months ago
Eric Salo
b83a1fece1
upb: implement upb_MiniTable_MapKey() and upb_MiniTable_MapValue()
...
PiperOrigin-RevId: 588418734
12 months ago
Protobuf Team Bot
4ffe0868f9
Auto-generate files after cl/588239901
12 months ago
Eric Salo
0755621dd2
Automated rollback of commit 3c75c331d3
.
...
PiperOrigin-RevId: 588239901
12 months ago
Protobuf Team Bot
c17fddf2c0
Auto-generate files after cl/588189563
12 months ago
Eric Salo
3c75c331d3
upb: inline upb_Message_New()
...
PiperOrigin-RevId: 588189563
12 months ago
Eric Salo
6efd909a9b
upb: clean up and lock down the internal oneof accessors
...
PiperOrigin-RevId: 588166536
12 months ago
Eric Salo
347486dd85
upb: clean up and lock down the internal hasbit accessors
...
PiperOrigin-RevId: 588147628
12 months ago
Eric Salo
a8c3eb7fa5
upb: upb_MiniTable_FindUnknown() -> upb_Message_FindUnknown()
...
PiperOrigin-RevId: 588120426
12 months ago
Eric Salo
b64c6e193b
upb: implement upb_Message_ShallowClone()/Copy()
...
PiperOrigin-RevId: 588088145
12 months ago
Eric Salo
10c3e3dfb6
upb: move some extension-related message functions
...
PiperOrigin-RevId: 587586555
1 year ago
Eric Salo
848a2bfd41
upb: tag upb_MiniTableField:number as UPB_ONLYBITS()
...
PiperOrigin-RevId: 587127664
1 year ago
Protobuf Team Bot
2ff245ef18
Internal
...
PiperOrigin-RevId: 587060845
1 year ago
Eric Salo
0e6607a5c9
upb: tag upb_MiniTableField:mode as UPB_ONLYBITS()
...
PiperOrigin-RevId: 587022805
1 year ago
Protobuf Team Bot
de57b67561
Auto-generate files after cl/586781244
1 year ago
Mike Kruskal
f99c0bd47e
Add an EDITION_MAX enum value for plugins that will never need edition-based changes
...
PiperOrigin-RevId: 586781244
1 year ago
Eric Salo
bb5322a194
upb: lock down upb_MiniTable (mostly)
...
PiperOrigin-RevId: 586542236
1 year ago
Protobuf Team Bot
5b8b87f3f7
Auto-generate files after cl/586204703
1 year ago
Mike Kruskal
ec76af2b0e
Internal Code Change
...
PiperOrigin-RevId: 586204703
1 year ago
Protobuf Team Bot
842f56b57a
Auto-generate files after cl/586187469
1 year ago
Eric Salo
d0c85637e7
upb: lock down upb_MiniTableSub
...
PiperOrigin-RevId: 586187469
1 year ago
Eric Salo
19ef3a58cf
upb: lock down MiniTableField
...
PiperOrigin-RevId: 586171362
1 year ago
Eric Salo
8dfd82096b
upb: lock down upbMiniTable_File
...
PiperOrigin-RevId: 586003350
1 year ago
Eric Salo
21133d554f
upb: lock down upb_MiniTableExtension
...
PiperOrigin-RevId: 585817227
1 year ago
Eric Salo
f6b38b5838
upb: lock down upb_MiniTableEnum
...
PiperOrigin-RevId: 585733953
1 year ago
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
Eric Salo
a49f6b8ea0
upb: move ElemSizeLg2() from message/ into mini_table/
...
PiperOrigin-RevId: 584380544
1 year ago
Eric Salo
0b892a5466
upb: move IsOneof() from message/internal/accessors.h
...
PiperOrigin-RevId: 584358795
1 year ago
Protobuf Team Bot
4656b0d6e0
Make SetField/GetField public and operate on MessageValue instead of void*.
...
PiperOrigin-RevId: 584309590
1 year ago
Eric Salo
45b292f119
upb: refactor mini_table/enum.h
...
PiperOrigin-RevId: 584154442
1 year ago
Protobuf Team Bot
0fab773c1d
Update remainder of upb to new short license style.
...
PiperOrigin-RevId: 584116886
1 year ago
Eric Salo
7fa050d8c1
upb: move IsSubMessage() and IsRepeatedOrMap() from mini_table/internal/field.h
...
PiperOrigin-RevId: 584082079
1 year ago
Eric Salo
8324c900b7
upb: steal a bit from upb_Array
...
PiperOrigin-RevId: 583524301
1 year ago
Eric Salo
88f0a82a18
upb: normalize the accessor functions for hasbits and oneof_cases
...
PiperOrigin-RevId: 582708011
1 year ago
Jason Lunn
42f8b7782e
Add support for extensions in CRuby, JRuby, and FFI Ruby ( #14703 )
...
Follow up to #14594 , which added support for custom options, this PR implements extensions support, which should fully resolve #1198 .
Closes #14703
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/14703 from protocolbuffers:add-support-for-extensions-in-ruby 601aca4121
PiperOrigin-RevId: 582460674
1 year ago
Eric Salo
8849deab91
upb: implement some upb_FieldType and upb_CType functions
...
PiperOrigin-RevId: 582150596
1 year ago
Protobuf Team Bot
a74398fbe6
Change array insertions to use `_upb_Array_ResizeUninitialized` instead of `upb_Array_Resize`.
...
`upb_Array_Append` and `upb_Array_Insert` will resize the array and then immediately overwrite the new values. These methods currently use `upb_Array_Resize` to do the array resizing, however this does extra unnecessary work by initializing those new values. This changes these insertion methods to use `_upb_Array_ResizeUninitialized` instead, which will perform the resize without the extra unnecessary initialization.
PiperOrigin-RevId: 581980280
1 year ago
Mike Kruskal
8699fde0a9
Enable upb editions conformance testing.
...
This also cleans up some pre-existing bugs and adds a Fasttable/ASAN build.
PiperOrigin-RevId: 581408568
1 year ago
Mike Kruskal
c23d5333c3
Expose editions in Python/upb.
...
This also fixes a few minor bugs in the editions implementation that were caught in python/conformance tests, and adds a new SetFeatureSetDefaults API to the def pool for consistency with C++ and other python implementations.
PiperOrigin-RevId: 581384108
1 year ago
Protobuf Team Bot
6105bb19ee
Auto-generate files after cl/580682733
1 year ago
Adam Cozzette
5ca84008fc
Move utf8_range into the protobuf repo
...
This makes third_party/utf8_range no longer a Git subtree, but instead the
permanent location and source of truth for utf8_range. It is also now
incorporated into the @com_google_protobuf Bazel repo. Utf8_range still has its
own separate CMake build for now, though.
PiperOrigin-RevId: 580682733
1 year ago
Protobuf Team Bot
fa15c2160e
Fix upb's json decoder ignoring trailing characters after a successfully parsed object.
...
This is a breaking change since the JSON parser will now correctly reject certain bad inputs that it previously silently accepted (for example: json="{}x" was accepted).
PiperOrigin-RevId: 580493003
1 year ago
Protobuf Team Bot
e6ea44c911
Fix upb_MiniTable_GetOneof(miniTable, field) to work correctly if `field` is the very first field in the proto.
...
PiperOrigin-RevId: 580285127
1 year ago
Joshua Haberman
cf3a6f5868
Enabled editions support for upb generated code.
...
This required enabling the feature in the code generator and fixing a few edge cases around label and type.
Also added tests to verify the special cases, and to verify that required fields work as expected.
PiperOrigin-RevId: 580263087
1 year ago
Protobuf Team Bot
66ee906904
Add initial fuzz test to upb's json encode/decode.
...
Unlike the wire fuzz test this only fuzzes json against a fixed message; in a subsequent improvement it can additionally fuzz over the message def itself.
PiperOrigin-RevId: 580158012
1 year ago