-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up the implementation of InternalSwap in MapField:
- Remove "UnsafeShallowSwap". The operation is called "InternalSwap" in all other types. - Remove the dynamic dispatch. It is no longer needed. - Make "InternalSwap" do the whole swap, including the map and the reflection payload. - Rename MapFieldBase::SwapImpl to SwapPayload to make it clearer on what it does and to prevent using it directly in the vtable. PiperOrigin-RevId: 708031253
- Loading branch information
1 parent
7740bcb
commit 7013de6
Showing
5 changed files
with
10 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters