[webkit-changes] [WebKit/WebKit] b0c6df: Parameterize FixedVector, EmbeddedFixedVector on M...

Marcus Plutowski noreply at github.com
Fri Jan 24 13:56:50 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b0c6df0dd951b0589cd74ac7baad087305fc8a1b
      https://github.com/WebKit/WebKit/commit/b0c6df0dd951b0589cd74ac7baad087305fc8a1b
  Author: Marcus Plutowski <marcus_plutowski at apple.com>
  Date:   2025-01-24 (Fri, 24 Jan 2025)

  Changed paths:
    M Source/WTF/wtf/EmbeddedFixedVector.h
    M Source/WTF/wtf/FixedVector.h
    M Source/WTF/wtf/Forward.h

  Log Message:
  -----------
  Parameterize FixedVector, EmbeddedFixedVector on Malloc type
https://bugs.webkit.org/show_bug.cgi?id=286426
rdar://143497080

Reviewed by Mark Lam.

This allows you to pass in a Malloc parameter to FixedVector,
which will be used to allocate the backing store.

* Source/WTF/wtf/EmbeddedFixedVector.h:
* Source/WTF/wtf/FixedVector.h:
(WTF::FixedVector::createWithSizeAndConstructorArguments):
(WTF::FixedVector::createWithSizeFromGenerator):
(WTF::FixedVector::operator== const):
(WTF::FixedVector::swap):
(WTF::Malloc>::contains const):
(WTF::Malloc>::findIf const):
(WTF::Malloc>::find const):
(WTF::swap):
(WTF::map):
(WTF::FixedVector<T>::contains const): Deleted.
(WTF::FixedVector<T>::findIf const): Deleted.
(WTF::FixedVector<T>::find const): Deleted.
* Source/WTF/wtf/Forward.h:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list