[webkit-changes] [WebKit/WebKit] f0d620: Generated IPC serializers for base classes run con...

Kimmo Kinnunen noreply at github.com
Mon Jul 3 04:40:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f0d6209f8752f3d0d5dc6e8a178df13c84d16ad9
      https://github.com/WebKit/WebKit/commit/f0d6209f8752f3d0d5dc6e8a178df13c84d16ad9
  Author: Kimmo Kinnunen <kkinnunen at apple.com>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M Source/WebKit/Scripts/generate-serializers.py
    M Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp

  Log Message:
  -----------
  Generated IPC serializers for base classes run conditions for all the derived classes
https://bugs.webkit.org/show_bug.cgi?id=258609
rdar://problem/111436035

Reviewed by Alex Christensen.

An instance cannot be of two types at the same time, so early out after
encoding the instance casted to the found subclass type.

* Source/WebKit/Scripts/generate-serializers.py:
(encode_type):
(generate_impl):
* Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp:
(IPC::ArgumentCoder<WebCore::TimingFunction>::encode):
(IPC::ArgumentCoder<WebCore::MoveOnlyBaseClass>::encode):

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




More information about the webkit-changes mailing list