Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Serialization for ObjectIdentifierReference and ObjectIdentifierWriteReference #23452

Conversation

NKRosario
Copy link
Contributor

@NKRosario NKRosario commented Jan 29, 2024

641bc81

Generate Serialization for ObjectIdentifierReference and ObjectIdentifierWriteReference
https://bugs.webkit.org/show_bug.cgi?id=268322
rdar://121877374

Reviewed by Alex Christensen.

* Source/WebKit/CMakeLists.txt:
* Source/WebKit/DerivedSources-input.xcfilelist:
* Source/WebKit/DerivedSources.make:
* Source/WebKit/Platform/IPC/ObjectIdentifierReference.serialization.in: Added.
* Source/WebKit/Platform/IPC/ObjectIdentifierReferenceTracker.h:
(IPC::ObjectIdentifierReference::isHashTableDeletedValue const):
(IPC::ObjectIdentifierReference::encode const): Deleted.
(IPC::ObjectIdentifierReference::decode): Deleted.
(IPC::ObjectIdentifierWriteReference::encode const): Deleted.
(IPC::ObjectIdentifierWriteReference::decode): Deleted.
* Source/WebKit/Scripts/generate-serializers.py:
(get_alias_namespace):
(generate_forward_declarations):
(parse_serialized_types):
(main):
* Source/WebKit/Shared/WTFArgumentCoders.serialization.in:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/IPC/ThreadSafeObjectHeapTests.cpp:

Canonical link: https://commits.webkit.org/273849@main

50bf113

Misc iOS, tvOS & watchOS macOS Linux Windows
❌ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 wincairo
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 webkitpy ✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 gtk
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 tv ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 api-gtk
✅ 🛠 tv-sim
✅ 🛠 🧪 merge ✅ 🛠 watch
✅ 🛠 watch-sim

@NKRosario NKRosario self-assigned this Jan 29, 2024
@NKRosario NKRosario added the WebKit Process Model Bugs related to WebKit's multi-process architecture label Jan 29, 2024
@NKRosario NKRosario force-pushed the Generate-serialization-for-ObjectIdentifierWriteReference branch from 7890222 to 0b65cce Compare January 29, 2024 21:15
@NKRosario NKRosario force-pushed the Generate-serialization-for-ObjectIdentifierWriteReference branch from 0b65cce to 4ca02db Compare January 29, 2024 21:23
Copy link
Contributor

@achristensen07 achristensen07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add to Source/WebKit/Scripts/webkit/tests/TestSerializedType.serialization.in then run "make -C Source/WebKit/Scripts/webkit/tests" to show what the changes to the python do to the generated C++?

@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objectVersion = 55;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should probably be reverted.

private:
friend struct IPC::ArgumentCoder<ObjectIdentifierReference, void>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably not necessary because there are accessors for the identifier and version.

private:
friend struct IPC::ArgumentCoder<ObjectIdentifierWriteReference, void>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto. Use public accessors.

@NKRosario NKRosario force-pushed the Generate-serialization-for-ObjectIdentifierWriteReference branch from 4ca02db to 9f0870e Compare January 29, 2024 22:22
@NKRosario NKRosario force-pushed the Generate-serialization-for-ObjectIdentifierWriteReference branch from 9f0870e to e6ab7ba Compare January 29, 2024 22:53
@NKRosario NKRosario force-pushed the Generate-serialization-for-ObjectIdentifierWriteReference branch from e6ab7ba to 50bf113 Compare January 29, 2024 23:27
@achristensen07 achristensen07 added the safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks label Jan 30, 2024
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 30, 2024
@webkit-ews-buildbot
Copy link
Collaborator

Failed ios-wk2-wpt, mac-AS-debug-wk2 checks. Please resolve failures and re-apply safe-merge-queue label.

Rejecting #23452 from merge queue.

@webkit-ews-buildbot webkit-ews-buildbot removed the safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks label Jan 30, 2024
@webkit-ews-buildbot
Copy link
Collaborator

Safe-Merge-Queue: Build #10688.

@beidson beidson added merge-queue Applied to send a pull request to merge-queue and removed merging-blocked Applied to prevent a change from being merged labels Jan 31, 2024
…fierWriteReference

https://bugs.webkit.org/show_bug.cgi?id=268322
rdar://121877374

Reviewed by Alex Christensen.

* Source/WebKit/CMakeLists.txt:
* Source/WebKit/DerivedSources-input.xcfilelist:
* Source/WebKit/DerivedSources.make:
* Source/WebKit/Platform/IPC/ObjectIdentifierReference.serialization.in: Added.
* Source/WebKit/Platform/IPC/ObjectIdentifierReferenceTracker.h:
(IPC::ObjectIdentifierReference::isHashTableDeletedValue const):
(IPC::ObjectIdentifierReference::encode const): Deleted.
(IPC::ObjectIdentifierReference::decode): Deleted.
(IPC::ObjectIdentifierWriteReference::encode const): Deleted.
(IPC::ObjectIdentifierWriteReference::decode): Deleted.
* Source/WebKit/Scripts/generate-serializers.py:
(get_alias_namespace):
(generate_forward_declarations):
(parse_serialized_types):
(main):
* Source/WebKit/Shared/WTFArgumentCoders.serialization.in:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/IPC/ThreadSafeObjectHeapTests.cpp:

Canonical link: https://commits.webkit.org/273849@main
@webkit-commit-queue webkit-commit-queue force-pushed the Generate-serialization-for-ObjectIdentifierWriteReference branch from 50bf113 to 641bc81 Compare January 31, 2024 20:23
@webkit-commit-queue webkit-commit-queue merged commit 641bc81 into WebKit:main Jan 31, 2024
@webkit-commit-queue
Copy link
Collaborator

Committed 273849@main (641bc81): https://commits.webkit.org/273849@main

Reviewed commits have been landed. Closing PR #23452 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKit Process Model Bugs related to WebKit's multi-process architecture
Projects
None yet
6 participants