Joshua Haberman
5817886392
Simplified the field path representation.
3 years ago
Joshua Haberman
0834ee254b
Baseline code.
3 years ago
Joshua Haberman
2199be91bc
Fixed UBSAN error.
3 years ago
Joshua Haberman
58968d6a78
A bit of minor code tweaking that improves benchmarks by 10%.
3 years ago
Joshua Haberman
58c1dbc11f
Addressed PR comments.
3 years ago
Joshua Haberman
1618e1b9a6
Fixed case of parsing an unknown field.
3 years ago
Joshua Haberman
779c30949b
Finished up the test.
3 years ago
Joshua Haberman
f7980b7ed1
Restructured for simplicity and fixed fasttable parser.
3 years ago
Joshua Haberman
dfa28861cc
Don't store field_start, derive it separately.
3 years ago
Joshua Haberman
7c83eb93be
Removed extra size from message.
3 years ago
Joshua Haberman
3d437bbcab
Some pre-PR fixes.
3 years ago
Joshua Haberman
a763267219
Addressed PR comments.
3 years ago
Joshua Haberman
4abe724dde
A few more fixes.
3 years ago
Joshua Haberman
4307f5dbba
Fixed the CMake build and amalgamation.
3 years ago
Joshua Haberman
7771a0515b
Addressed PR comments.
3 years ago
Joshua Haberman
16f763e4d6
Addressed PR comments.
3 years ago
Joshua Haberman
9d26c706e0
Removed dependency on popcount() intrinsic.
3 years ago
Joshua Haberman
7907ed913b
Expanded the test to cover packed fields also.
3 years ago
Joshua Haberman
c755099a89
WIP.
3 years ago
Joshua Haberman
401e1747b5
Addressed PR feedback.
3 years ago
Joshua Haberman
cd4981133f
WIP.
3 years ago
Joshua Haberman
cc03669a17
Several changes to defs.
...
Biggest/key changes:
1. Defs are now nested per the .proto file syntax.
2. Options are parsed and vended.
3 years ago
Joshua Haberman
2484d12c1c
Addressed PR comments.
3 years ago
Joshua Haberman
8c916941b0
MSET -> MSGSET
3 years ago
Joshua Haberman
b3c91c276b
Addressed PR comments.
3 years ago
Joshua Haberman
d80e682a9c
Moved find field function closer to where it is used.
3 years ago
Joshua Haberman
53ce4354cf
Minor formatting changes.
3 years ago
Joshua Haberman
37a577c0e7
Further factored the function.
3 years ago
Joshua Haberman
69bb5d1d94
Simplified main parsing function.
3 years ago
Joshua Haberman
6f89034249
Implemented support for MessageSet.
3 years ago
Joshua Haberman
29be74c5d2
Addressed PR comments.
3 years ago
Joshua Haberman
b1bbbdd4e7
Addressed PR comments.
3 years ago
Joshua Haberman
b23ec9a59c
Fixed fasttable parser.
3 years ago
Joshua Haberman
ce012b7b55
Added support for extensions.
3 years ago
Joshua Haberman
3366d02f04
Addressed PR comments.
3 years ago
Joshua Haberman
5c28ab6b2c
Implemented upb_enumvaldef, for storing information about enumvals.
3 years ago
Joshua Haberman
53fba823de
Added missing upb_symtab_lookupext() function.
3 years ago
Joshua Haberman
a669587817
Fixed the edge case where rounding up causes overflow.
3 years ago
Joshua Haberman
e83aeba595
Align arena initial block to ensure allocations are aligned.
3 years ago
Joshua Haberman
3f7ecfe315
A few fixes in the 32-bit fallback.
3 years ago
Joshua Haberman
2c14e2788d
Added #include for Windows instrinsic.
3 years ago
Joshua Haberman
9e618009ec
Removed some extraneous whitespace.
3 years ago
Joshua Haberman
91d506ac32
Ported ABSL's wyhash to C.
3 years ago
Joshua Haberman
897bd2500a
Fixed compile error.
4 years ago
Joshua Haberman
6e53de4a03
Addressed PR comments.
4 years ago
Joshua Haberman
cdd6434a31
Introduced upb_extreg and plumbed it into decoder.
4 years ago
Joshua Haberman
3f8aa6ef20
Define the extension representation in messages and mini-tables.
...
Nothing reads or writes this data yet, but we do implement the
memory management that allows both unknown field data and extensions
to grow within the same pseudo-arena in a message. By making both
arrays grow towards each other, we avoid the need to reallocate them
separately.
4 years ago
Joshua Haberman
58e158c6fa
Changed mini-table to use a custom "mode" instead of descriptor's "label."
4 years ago
Joshua Haberman
807e7fe9e2
Fixed dense_below logic to be order-independent and consistent between def.c and codegen.
4 years ago
Joshua Haberman
2e8a122fc0
Changed dense_below calculation to use UINT8_MAX as the constant.
4 years ago