[webkit-changes] [WebKit/WebKit] 08f49d: Generate serialization of SharedMemoryHandle

Don Olmstead noreply at github.com
Fri Jul 7 14:40:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 08f49d42519ccb2d2e4725cd095609ddc6311383
      https://github.com/WebKit/WebKit/commit/08f49d42519ccb2d2e4725cd095609ddc6311383
  Author: Don Olmstead <don.olmstead at sony.com>
  Date:   2023-07-07 (Fri, 07 Jul 2023)

  Changed paths:
    M Source/WebKit/CMakeLists.txt
    M Source/WebKit/DerivedSources-input.xcfilelist
    M Source/WebKit/DerivedSources-output.xcfilelist
    M Source/WebKit/DerivedSources.make
    M Source/WebKit/Platform/SharedMemory.cpp
    M Source/WebKit/Platform/SharedMemory.h
    A Source/WebKit/Platform/SharedMemory.serialization.in
    M Source/WebKit/Scripts/generate-serializers.py
    M Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp
    M Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.h
    M Source/WebKit/Scripts/webkit/tests/SerializedTypeInfo.cpp
    M Source/WebKit/Scripts/webkit/tests/TestSerializedType.serialization.in
    A Source/WebKit/Scripts/webkit/tests/WebKitPlatformGeneratedSerializers.cpp
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  Generate serialization of SharedMemoryHandle
https://bugs.webkit.org/show_bug.cgi?id=258151

Reviewed by Chris Dumez and Alex Christensen.

Split the generated serialization into two files, now platform specific
serializers are added to `WebKitPlatformGeneratedSerializers`.

Define serialization of `SharedMemoryHandle` in a `.serialization.in`
file. Mark serialization as `RValue` to ensure move semantics are used,
and `WebKitPlatform` so it ends up in the platform serializers.

* Source/WebKit/CMakeLists.txt:
* Source/WebKit/DerivedSources-input.xcfilelist:
* Source/WebKit/DerivedSources-output.xcfilelist:
* Source/WebKit/DerivedSources.make:
* Source/WebKit/Platform/SharedMemory.cpp:
(IPC::ArgumentCoder<WebKit::SharedMemoryHandle>::encode): Deleted.
(IPC::ArgumentCoder<WebKit::SharedMemoryHandle>::decode): Deleted.
* Source/WebKit/Platform/SharedMemory.h:
* Source/WebKit/Platform/SharedMemory.serialization.in: Added.
* Source/WebKit/Scripts/generate-serializers.py:
* Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp:
* Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.h:
* Source/WebKit/Scripts/webkit/tests/SerializedTypeInfo.cpp:
(WebKit::allSerializedTypes):
* Source/WebKit/Scripts/webkit/tests/TestSerializedType.serialization.in:
* Source/WebKit/Scripts/webkit/tests/WebKitPlatformGeneratedSerializers.cpp: Added.
(IPC::ArgumentCoder<WebKit::PlatformClass>::encode):
(IPC::ArgumentCoder<WebKit::PlatformClass>::decode):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

Co-authored-by: Alex Christensen <achristensen at apple.com>
Canonical link: https://commits.webkit.org/265865@main




More information about the webkit-changes mailing list