Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f6c0c3a4c8ed0e1a1fa9c6a43f7389e06f42fbb1
      
https://github.com/WebKit/WebKit/commit/f6c0c3a4c8ed0e1a1fa9c6a43f7389e06f42fbb1
  Author: Chris Dumez <[email protected]>
  Date:   2026-04-24 (Fri, 24 Apr 2026)

  Changed paths:
    M Source/JavaScriptCore/bytecode/Opcode.cpp
    M Source/JavaScriptCore/dfg/DFGGraph.cpp
    M Source/JavaScriptCore/inspector/InspectorBackendDispatcher.cpp
    M Source/JavaScriptCore/runtime/ErrorType.cpp
    M Source/JavaScriptCore/yarr/YarrErrorCode.cpp
    M Source/WTF/wtf/Assertions.cpp
    M Source/WTF/wtf/AvailableMemory.cpp
    M Source/WTF/wtf/NumberOfCores.cpp
    M Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
    M Source/WebCore/Modules/WebGPU/GPUQueue.cpp
    M Source/WebCore/cssjit/SelectorCompiler.cpp
    M Source/WebCore/editing/EditingStyle.cpp
    M Source/WebCore/platform/graphics/PixelBufferConversion.cpp
    M Source/WebCore/platform/graphics/cairo/CairoOperations.cpp
    M Source/WebCore/platform/graphics/cg/PathCG.cpp
    M Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
    M Source/WebCore/platform/graphics/egl/GLDisplay.cpp
    M Source/WebCore/platform/graphics/mac/GraphicsChecksMac.cpp
    M Source/WebCore/platform/mediastream/RealtimeVideoCaptureSource.cpp
    M Source/WebCore/platform/network/curl/ResourceResponseCurl.cpp
    M Source/WebKit/NetworkProcess/webrtc/rice/RiceBackend.cpp
    M Source/WebKit/Shared/gtk/WebKeyboardEventGtk.cpp
    M Source/WebKit/UIProcess/API/gtk/DropTargetGtk4.cpp
    M Source/WebKit/UIProcess/AuxiliaryProcessProxy.cpp
    M Source/WebKit/UIProcess/WebAuthentication/fido/CtapAuthenticator.cpp
    M Source/WebKit/UIProcess/gtk/ClipboardGtk4.cpp
    M Source/WebKit/UIProcess/gtk/ViewGestureControllerGtk.cpp
    M Source/WebKit/UIProcess/win/WebView.cpp
    M Source/WebKit/WPEPlatform/wpe/WPECursorTheme.cpp
    M Source/WebKit/WPEPlatform/wpe/WPEScreen.cpp
    M Source/WebKit/WPEPlatform/wpe/wayland/WPEClipboardWayland.cpp
    M Source/WebKit/WebProcess/WebCoreSupport/wpe/WebEditorClientWPE.cpp
    M Source/WebKit/WebProcess/WebPage/win/WebPageWin.cpp
    M Source/WebKitLegacy/Storage/StorageAreaSync.cpp
    M Source/bmalloc/bmalloc/TZoneHeapManager.cpp

  Log Message:
  -----------
  Reduce use of C-style arrays in the codebase
https://bugs.webkit.org/show_bug.cgi?id=313193

Reviewed by Keith Miller and Darin Adler.

Reduce use of C-style arrays in the codebase, leveraging std::array
instead.

* Source/JavaScriptCore/bytecode/Opcode.cpp:
(JSC::std::to_array<unsigned>):
* Source/JavaScriptCore/dfg/DFGGraph.cpp:
(JSC::DFG::std::to_array<ASCIILiteral>):
* Source/JavaScriptCore/inspector/InspectorBackendDispatcher.cpp:
(Inspector::BackendDispatcher::sendPendingErrors):
* Source/JavaScriptCore/runtime/ErrorType.cpp:
(JSC::errorTypeName):
* Source/JavaScriptCore/yarr/YarrErrorCode.cpp:
(JSC::Yarr::errorMessage):
* Source/WTF/wtf/Assertions.cpp:
* Source/WTF/wtf/AvailableMemory.cpp:
(WTF::memoryStatus):
* Source/WTF/wtf/NumberOfCores.cpp:
(WTF::numberOfProcessorCores):
* Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp:
(WTF::processMemoryUsage):
* Source/WebCore/Modules/WebGPU/GPUQueue.cpp:
(WebCore::getImageBytesFromVideoFrame):
* Source/WebCore/cssjit/SelectorCompiler.cpp:
(WebCore::SelectorCompiler::dumpSelectorOperationStats):
* Source/WebCore/editing/EditingStyle.cpp:
(WebCore::htmlElementEquivalents):
(WebCore::htmlAttributeEquivalents):
* Source/WebCore/platform/graphics/PixelBufferConversion.cpp:
(WebCore::convertImagePixelsAccelerated):
* Source/WebCore/platform/graphics/cairo/CairoOperations.cpp:
(WebCore::Cairo::State::setStrokeStyle):
* Source/WebCore/platform/graphics/cg/PathCG.cpp:
(WebCore::createScratchContext):
* Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::FontCache::similarFont):
* Source/WebCore/platform/graphics/egl/GLDisplay.cpp:
(WebCore::GLDisplay::bufferFormats):
* Source/WebCore/platform/graphics/mac/GraphicsChecksMac.cpp:
(WebCore::hasMuxCapability):
* Source/WebCore/platform/mediastream/RealtimeVideoCaptureSource.cpp:
(WebCore::RealtimeVideoCaptureSource::standardVideoSizes):
* Source/WebCore/platform/network/curl/ResourceResponseCurl.cpp:
(WebCore::isAppendableHeader):
* Source/WebKit/NetworkProcess/webrtc/rice/RiceBackend.cpp:
(WebKit::RiceBackend::gatherSocketAddresses):
* Source/WebKit/Shared/gtk/WebKeyboardEventGtk.cpp:
(WebKit::WebKeyboardEvent::keyValueStringForGdkKeyval):
* Source/WebKit/UIProcess/API/gtk/DropTargetGtk4.cpp:
(WebKit::DropTarget::loadData):
* Source/WebKit/UIProcess/AuxiliaryProcessProxy.cpp:
(WebKit::AuxiliaryProcessProxy::platformIsBeingDebugged const):
* Source/WebKit/UIProcess/WebAuthentication/fido/CtapAuthenticator.cpp:
* Source/WebKit/UIProcess/gtk/ClipboardGtk4.cpp:
* Source/WebKit/UIProcess/gtk/ViewGestureControllerGtk.cpp:
(WebKit::std::to_array<GskColorStop>):
(WebKit::ViewGestureController::snapshot):
* Source/WebKit/UIProcess/win/WebView.cpp:
(WebKit::WebView::shouldInitializeTrackPointHack):
* Source/WebKit/WPEPlatform/wpe/WPECursorTheme.cpp:
(WPE::readUint32):
* Source/WebKit/WPEPlatform/wpe/WPEScreen.cpp:
(wpeScreenTryEnsureSyncObserver):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEClipboardWayland.cpp:
(wpeClipboardWaylandRead):
* Source/WebKit/WebProcess/WebCoreSupport/wpe/WebEditorClientWPE.cpp:
(WebKit::std::to_array<KeyDownEntry>):
(WebKit::std::to_array<KeyPressEntry>):
* Source/WebKit/WebProcess/WebPage/win/WebPageWin.cpp:
(WebKit::std::to_array<KeyDownEntry>):
(WebKit::std::to_array<KeyPressEntry>):
* Source/WebKitLegacy/Storage/StorageAreaSync.cpp:
(WebKit::StorageAreaSync::migrateItemTableIfNeeded):
* Source/bmalloc/bmalloc/TZoneHeapManager.cpp:
(bmalloc::api::TZoneHeapManager::init):

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



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

Reply via email to