Eric Salo
121896da15
upb: add upb_Message_ExtensionByIndex()
...
PiperOrigin-RevId: 592091162
11 months ago
Eric Salo
1f67b8dfe1
upb: tag upb_MiniTableField:offset as UPB_ONLYBITS()
...
PiperOrigin-RevId: 592081461
11 months ago
Eric Salo
5b7bafc60e
upb: upb_Message_Extension -> upb_Extension
...
PiperOrigin-RevId: 592075816
11 months ago
Eric Salo
a4a98bdcc0
upb: tag upb_Array.size as UPB_ONLYBITS()
...
PiperOrigin-RevId: 592035282
11 months ago
Eric Salo
088fee7f28
upb: implement upb_Message_FindExtensionByNumber()
...
PiperOrigin-RevId: 590420044
12 months ago
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
0755621dd2
Automated rollback of commit 3c75c331d3
.
...
PiperOrigin-RevId: 588239901
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
12 months 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
bb5322a194
upb: lock down upb_MiniTable (mostly)
...
PiperOrigin-RevId: 586542236
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
21133d554f
upb: lock down upb_MiniTableExtension
...
PiperOrigin-RevId: 585817227
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
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
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
Eric Salo
0a2fe573a2
upb: remove unused code from message/promote_test
...
PiperOrigin-RevId: 579453773
1 year ago
Eric Salo
90a7de5063
upb: use upb_c_proto_library() instead of upb_proto_library()
...
PiperOrigin-RevId: 574674453
1 year ago
Eric Salo
ec69a0af63
upb: s/NULL/nullptr in C++ unit tests
...
PiperOrigin-RevId: 572320485
1 year ago
Eric Salo
5b6543edb5
upb: first attempt at implementing name mangling for minitable symbols
...
PiperOrigin-RevId: 571636273
1 year ago
Eric Salo
07fba1da07
upb: merge ":collections" into ":message"
...
PiperOrigin-RevId: 569594353
1 year ago
Adam Cozzette
501ececd39
Reorganize upb file structure
...
This change moves almost everything in the `upb/` directory up one level, so
that for example `upb/upb/generated_code_support.h` becomes just
`upb/generated_code_support.h`. The only exceptions I made to this were that I
left `upb/cmake` and `upb/BUILD` where they are, mostly because that avoids
conflict with other files and the current locations seem reasonable for now.
The `python/` directory is a little bit of a challenge because we had to merge
the existing directory there with `upb/python/`. I made `upb/python/BUILD` into
the BUILD file for the merged directory, and it effectively loads the contents
of the other BUILD file via `python/build_targets.bzl`, but I plan to clean
this up soon.
PiperOrigin-RevId: 568651768
1 year ago
Adam Cozzette
0d1ba13e83
Move everything into new upb/ directory
1 year ago
Eric Salo
21ecc29ed0
upb: fix the leaking port defs
...
PiperOrigin-RevId: 559225386
1 year ago
Protobuf Team Bot
d06eac7b5e
Fixed "unused-parameter-warning"
...
PiperOrigin-RevId: 559198615
1 year ago
Eric Salo
6d458db48b
upb: dedup upb/message/
...
Remove message/message.h as a hdr from :message_internal
Lock down the visibility of :message_types to upb-only
message/types.h is not an internal header because the definitions there are part of the public surface. But the fact that it needs to exist is an implementation detail that should remain opaque, so make it a private dep.
PiperOrigin-RevId: 558960776
1 year ago
Eric Salo
d2f10df2dc
upb: split apart upb/upb.hpp, delete :upb
...
PiperOrigin-RevId: 558945210
1 year ago
Eric Salo
cc41a8bed3
upb: dedup the libraries
...
Remove array.h and map.h as hdrs from :collections_internal
Remove alloc.h and arena.h as hdrs from :mem_internal (and add them to :mem)
Remove common.h and decode.h and encode.h as hdrs from :wire_internal
Lock down the visibility of :wire_internal to upb-only
Merge :mini_descriptor_encode_internal into :mini_descriptor_internal
PiperOrigin-RevId: 558235138
1 year ago
Eric Salo
d90f74d47b
upb: create upb/message/BUILD
...
PiperOrigin-RevId: 557944463
1 year ago
Eric Salo
61967e84dd
upb: delete upb/upb.h
...
PiperOrigin-RevId: 557659890
1 year ago
Eric Salo
f669ef6576
upb: clean up upb/message/internal/
...
PiperOrigin-RevId: 557164806
1 year ago
Protobuf Team Bot
c552102d66
No public description
...
PiperOrigin-RevId: 556849883
1 year ago
Adam Cozzette
5aca728f72
Reformat copyright headers
...
PiperOrigin-RevId: 554509301
1 year ago
Mike Kruskal
58877b55e0
Fixes a bug on 32-bit architectures with map decoding.
...
This also enables 32-bit tests and adds ASAN coverage for better diagnostics.
PiperOrigin-RevId: 553946734
1 year ago