Skip to content

Commit c9de3ea

Browse files
committed
Make HashSet validate its key by default in release builds
https://bugs.webkit.org/show_bug.cgi?id=285372 Reviewed by Ryosuke Niwa. Make HashSet validate its key by default in release builds, similarly to what we did for HashMap. * Source/JavaScriptCore/API/JSValue.mm: (createStructHandlerMap): * Source/JavaScriptCore/API/ObjcRuntimeExtras.h: (forEachProtocolImplementingProtocol): * Source/JavaScriptCore/b3/B3CanonicalizePrePostIncrements.cpp: (JSC::B3::canonicalizePrePostIncrements): * Source/JavaScriptCore/b3/B3LowerInt64.cpp: * Source/JavaScriptCore/b3/B3OptimizeAssociativeExpressionTrees.cpp: (JSC::B3::OptimizeAssociativeExpressionTrees::run): * Source/JavaScriptCore/b3/B3Procedure.h: * Source/JavaScriptCore/b3/B3Validate.cpp: * Source/JavaScriptCore/b3/air/AirAllocateRegistersAndStackAndGenerateCode.cpp: (JSC::B3::Air::GenerateAndAllocateRegisters::prepareForGeneration): * Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp: * Source/JavaScriptCore/b3/air/AirCustom.cpp: (JSC::B3::Air::ShuffleCustom::isValidForm): * Source/JavaScriptCore/b3/air/AirValidate.cpp: * Source/JavaScriptCore/bytecode/CodeBlock.cpp: (JSC::CodeBlock::finishCreation): (JSC::CodeBlock::hasIdentifier): * Source/JavaScriptCore/bytecode/CodeBlock.h: * Source/JavaScriptCore/bytecode/DFGExitProfile.h: * Source/JavaScriptCore/bytecode/SharedJITStubSet.h: * Source/JavaScriptCore/bytecode/TrackedReferences.h: * Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp: (JSC::UnlinkedCodeBlock::hasIdentifier): * Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h: * Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::getAvailablePrivateAccessNames): * Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h: * Source/JavaScriptCore/bytecompiler/StaticPropertyAnalysis.h: * Source/JavaScriptCore/debugger/Debugger.cpp: (JSC::Debugger::~Debugger): (JSC::Debugger::attach): * Source/JavaScriptCore/debugger/Debugger.h: * Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h: (JSC::DFG::AbstractInterpreter<AbstractStateType>::dump): * Source/JavaScriptCore/dfg/DFGArgumentsEliminationPhase.cpp: * Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp: (JSC::DFG::ByteCodeParser::parseBlock): * Source/JavaScriptCore/dfg/DFGCSEPhase.cpp: * Source/JavaScriptCore/dfg/DFGClobberSet.cpp: (JSC::DFG::ClobberSet::direct const): (JSC::DFG::ClobberSet::super const): (JSC::DFG::ClobberSet::setOf const): * Source/JavaScriptCore/dfg/DFGClobberSet.h: * Source/JavaScriptCore/dfg/DFGCommonData.cpp: (JSC::DFG::CommonData::installVMTrapBreakpoints): * Source/JavaScriptCore/dfg/DFGDesiredGlobalProperties.h: * Source/JavaScriptCore/dfg/DFGDesiredWatchpoints.h: * Source/JavaScriptCore/dfg/DFGDesiredWeakReferences.h: * Source/JavaScriptCore/dfg/DFGGraph.h: * Source/JavaScriptCore/dfg/DFGLivenessAnalysisPhase.cpp: * Source/JavaScriptCore/dfg/DFGNode.h: * Source/JavaScriptCore/dfg/DFGObjectAllocationSinkingPhase.cpp: * Source/JavaScriptCore/dfg/DFGPhiChildren.h: (JSC::DFG::PhiChildren::forAllTransitiveIncomingValues): * Source/JavaScriptCore/dfg/DFGPutStackSinkingPhase.cpp: * Source/JavaScriptCore/dfg/DFGSSAConversionPhase.cpp: * Source/JavaScriptCore/dfg/DFGStoreBarrierInsertionPhase.cpp: * Source/JavaScriptCore/dfg/DFGValidate.cpp: * Source/JavaScriptCore/dfg/DFGValueRepReductionPhase.cpp: (JSC::DFG::ValueRepReductionPhase::convertValueRepsToDouble): * Source/JavaScriptCore/dfg/DFGVarargsForwardingPhase.cpp: * Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp: (JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq): * Source/JavaScriptCore/ftl/FTLOSRExitCompiler.cpp: (JSC::FTL::compileStub): * Source/JavaScriptCore/ftl/FTLState.cpp: (JSC::FTL::State::dumpDisassembly): * Source/JavaScriptCore/heap/CodeBlockSet.cpp: (JSC::CodeBlockSet::contains): * Source/JavaScriptCore/heap/CodeBlockSet.h: * Source/JavaScriptCore/heap/ConservativeRoots.cpp: (JSC::ConservativeRoots::genericAddPointer): * Source/JavaScriptCore/heap/ConservativeRoots.h: * Source/JavaScriptCore/heap/Heap.h: * Source/JavaScriptCore/heap/HeapInlines.h: * Source/JavaScriptCore/heap/HeapSnapshotBuilder.h: * Source/JavaScriptCore/heap/HeapUtil.h: (JSC::HeapUtil::isPointerGCObjectJSCell): * Source/JavaScriptCore/heap/MarkedBlockSet.h: (JSC::MarkedBlockSet::recomputeFilter): (JSC:: const): * Source/JavaScriptCore/heap/MarkedSpace.cpp: (JSC::MarkedSpace::enablePreciseAllocationTracking): * Source/JavaScriptCore/heap/MarkedSpace.h: (JSC::MarkedSpace:: const): * Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp: * Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp: (Inspector::InspectorDebuggerAgent::setShouldBlackboxURL): * Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h: * Source/JavaScriptCore/inspector/remote/RemoteInspector.h: * Source/JavaScriptCore/inspector/remote/glib/RemoteInspectorServer.h: * Source/JavaScriptCore/jit/JITThunks.h: * Source/JavaScriptCore/jit/JITWorklist.cpp: (JSC::JITWorklist::removeMatchingPlansForVM): * Source/JavaScriptCore/jsc.cpp: * Source/JavaScriptCore/parser/Parser.cpp: (JSC::Parser<LexerType>::parseInner): (JSC::Parser<LexerType>::parseImportAttributes): * Source/JavaScriptCore/parser/Parser.h: (JSC::Scope:: const): * Source/JavaScriptCore/parser/VariableEnvironment.h: * Source/JavaScriptCore/runtime/AbstractModuleRecord.cpp: (JSC::AbstractModuleRecord::resolveExportImpl): (JSC::getExportedNames): * Source/JavaScriptCore/runtime/ArgList.h: * Source/JavaScriptCore/runtime/CachedTypes.cpp: (JSC::CachedHashSet::encode): (JSC::CachedHashSet::decode const): * Source/JavaScriptCore/runtime/CodeCache.h: * Source/JavaScriptCore/runtime/DeferredWorkTimer.h: * Source/JavaScriptCore/runtime/Identifier.h: * Source/JavaScriptCore/runtime/ImportMap.cpp: (JSC::ImportMap::addModuleToResolvedModuleSet): * Source/JavaScriptCore/runtime/ImportMap.h: * Source/JavaScriptCore/runtime/IntlObject.cpp: (JSC::canonicalizeLocaleList): (JSC::LanguageTagParser::parseUnicodeLanguageId): * Source/JavaScriptCore/runtime/IntlPluralRules.cpp: (JSC::IntlPluralRules::resolvedOptions const): * Source/JavaScriptCore/runtime/JSGlobalObject.cpp: (JSC::JSGlobalObject::haveABadTime): * Source/JavaScriptCore/runtime/JSRunLoopTimer.h: * Source/JavaScriptCore/runtime/JSScope.h: * Source/JavaScriptCore/runtime/LiteralParser.h: * Source/JavaScriptCore/runtime/NativeCalleeRegistry.h: (JSC::NativeCalleeRegistry::WTF_REQUIRES_LOCK): * Source/JavaScriptCore/runtime/PropertyNameArray.h: * Source/JavaScriptCore/runtime/ProxyObject.cpp: (JSC::ProxyObject::performGetOwnPropertyNames): * Source/JavaScriptCore/runtime/SamplingProfiler.cpp: (JSC::SamplingProfiler::registerForReportAtExit): * Source/JavaScriptCore/runtime/SamplingProfiler.h: * Source/JavaScriptCore/runtime/Structure.cpp: (JSC::Structure::dumpStatistics): * Source/JavaScriptCore/runtime/StructureInlines.h: (JSC::Structure::forEachPropertyConcurrently): * Source/JavaScriptCore/runtime/TypeSet.h: * Source/JavaScriptCore/runtime/VM.h: * Source/JavaScriptCore/runtime/WeakGCSet.h: * Source/JavaScriptCore/tools/FunctionAllowlist.h: * Source/JavaScriptCore/wasm/WasmCalleeGroup.h: * Source/JavaScriptCore/wasm/WasmEntryPlan.h: * Source/JavaScriptCore/wasm/WasmIPIntPlan.cpp: (JSC::Wasm::IPIntPlan::computeTransitiveTailCalls const): * Source/JavaScriptCore/wasm/WasmIPIntPlan.h: * Source/JavaScriptCore/wasm/WasmLLIntPlan.cpp: (JSC::Wasm::LLIntPlan::computeTransitiveTailCalls const): * Source/JavaScriptCore/wasm/WasmLLIntPlan.h: * Source/JavaScriptCore/wasm/WasmOMGPlan.cpp: (JSC::Wasm::OMGPlan::dumpDisassembly): * Source/JavaScriptCore/wasm/WasmSectionParser.cpp: (JSC::Wasm::SectionParser::parseExport): * Source/JavaScriptCore/wasm/WasmTypeDefinition.h: * Source/JavaScriptCore/yarr/YarrParser.h: * Source/WTF/wtf/Forward.h: * Source/WTF/wtf/HashSet.h: (WTF::shouldValidateKey>::swap): (WTF::shouldValidateKey>::size const): (WTF::shouldValidateKey>::capacity const): (WTF::shouldValidateKey>::memoryUse const): (WTF::shouldValidateKey>::isEmpty const): (WTF::shouldValidateKey>::begin const): (WTF::shouldValidateKey>::end const): (WTF::shouldValidateKey>::find const): (WTF::shouldValidateKey>::contains const): (WTF::shouldValidateKey>::ensure): (WTF::shouldValidateKey>::add): (WTF::shouldValidateKey>::addVoid): (WTF::shouldValidateKey>::remove): (WTF::shouldValidateKey>::removeIf): (WTF::shouldValidateKey>::clear): (WTF::shouldValidateKey>::take): (WTF::shouldValidateKey>::takeAny): (WTF::shouldValidateKey>::unionWith const): (WTF::shouldValidateKey>::intersectionWith const): (WTF::shouldValidateKey>::differenceWith const): (WTF::shouldValidateKey>::symmetricDifferenceWith const): (WTF::shouldValidateKey>::formUnion): (WTF::shouldValidateKey>::formIntersection): (WTF::shouldValidateKey>::formDifference): (WTF::shouldValidateKey>::formSymmetricDifference): (WTF::shouldValidateKey>::isSubset): (WTF::shouldValidateKey>::isValidValue): (WTF::= const): (WTF::shouldValidateKey>::checkConsistency const): (WTF::W>::swap): Deleted. (WTF::W>::size const): Deleted. (WTF::W>::capacity const): Deleted. (WTF::W>::memoryUse const): Deleted. (WTF::W>::isEmpty const): Deleted. (WTF::W>::begin const): Deleted. (WTF::W>::end const): Deleted. (WTF::W>::find const): Deleted. (WTF::W>::contains const): Deleted. (WTF::TableTraits>::find const): Deleted. (WTF::TableTraits>::contains const): Deleted. (WTF::TableTraits>::ensure): Deleted. (WTF::W>::add): Deleted. (WTF::W>::addVoid): Deleted. (WTF::TableTraits>::add): Deleted. (WTF::W>::remove): Deleted. (WTF::W>::removeIf): Deleted. (WTF::W>::clear): Deleted. (WTF::W>::take): Deleted. (WTF::W>::takeAny): Deleted. (WTF::W>::unionWith const): Deleted. (WTF::W>::intersectionWith const): Deleted. (WTF::W>::differenceWith const): Deleted. (WTF::W>::symmetricDifferenceWith const): Deleted. (WTF::W>::formUnion): Deleted. (WTF::W>::formIntersection): Deleted. (WTF::W>::formDifference): Deleted. (WTF::W>::formSymmetricDifference): Deleted. (WTF::W>::isSubset): Deleted. (WTF::TableTraits>::remove): Deleted. (WTF::TableTraits>::take): Deleted. (WTF::W>::isValidValue): Deleted. (WTF::W>::checkConsistency const): Deleted. * Source/WebCore/PAL/pal/text/TextEncodingRegistry.cpp: (PAL::WTF_REQUIRES_LOCK): * Source/WebCore/animation/AnimationTimelinesController.cpp: (WebCore::AnimationTimelinesController::unregisterNamedTimelinesAssociatedWithElement): * Source/WebCore/animation/BlendingKeyframes.cpp: (WebCore::BlendingKeyframes::fillImplicitKeyframes): (WebCore::BlendingKeyframes::propertiesSetToInherit const): * Source/WebCore/animation/BlendingKeyframes.h: (WebCore::BlendingKeyframes::properties const): * Source/WebCore/animation/DocumentTimeline.cpp: (WebCore::DocumentTimeline::animationCanBeRemoved): (WebCore::DocumentTimeline::applyPendingAcceleratedAnimations): * Source/WebCore/animation/DocumentTimeline.h: * Source/WebCore/animation/KeyframeEffect.cpp: (WebCore::KeyframeEffect::animatedProperties): (WebCore::propertiesContainTransformRelatedProperty): (WebCore::KeyframeEffect::computeHasImplicitKeyframeForAcceleratedProperty): * Source/WebCore/animation/KeyframeEffect.h: * Source/WebCore/animation/KeyframeEffectStack.cpp: (WebCore::KeyframeEffectStack::applyKeyframeEffects): (WebCore::KeyframeEffectStack::allowsAcceleration const): (WebCore::KeyframeEffectStack::cascadeDidOverrideProperties): * Source/WebCore/animation/KeyframeEffectStack.h: (WebCore::KeyframeEffectStack::acceleratedPropertiesOverriddenByCascade const): * Source/WebCore/animation/WebAnimation.cpp: (WebCore::WebAnimation::commitStyles): * Source/WebCore/animation/WebAnimation.h: * Source/WebCore/bindings/js/DOMWrapperWorld.h: * Source/WebCore/bindings/js/JSDOMGlobalObject.h: * Source/WebCore/bindings/js/ScriptModuleLoader.h: * Source/WebCore/bindings/js/SerializedScriptValue.cpp: (WebCore::transferArrayBuffers): (WebCore::containsDuplicates): (WebCore::canOffscreenCanvasesDetach): (WebCore::canDetachRTCDataChannels): (WebCore::canDetachMediaStreamTracks): (WebCore::canDetachMediaSourceHandles): (WebCore::SerializedScriptValue::create): * Source/WebCore/bindings/js/WebCoreJSClientData.h: * Source/WebCore/bridge/IdentifierRep.cpp: * Source/WebCore/bridge/runtime_root.cpp: (JSC::Bindings::RootObject::invalidate): * Source/WebCore/bridge/runtime_root.h: * Source/WebCore/contentextensions/CombinedFiltersAlphabet.h: * Source/WebCore/contentextensions/ContentExtensionActions.cpp: (WebCore::ContentExtensions::RedirectAction::URLTransformAction::QueryTransform::applyToURL const): * Source/WebCore/contentextensions/ContentExtensionCompiler.cpp: * Source/WebCore/contentextensions/ContentExtensionStyleSheet.h: * Source/WebCore/contentextensions/DFABytecodeInterpreter.h: * Source/WebCore/contentextensions/DFACombiner.cpp: (WebCore::ContentExtensions::DFAMerger::getOrCreateCombinedNode): * Source/WebCore/contentextensions/ImmutableNFANodeBuilder.h: * Source/WebCore/contentextensions/NFANode.h: * Source/WebCore/contentextensions/NFAToDFA.cpp: (WebCore::ContentExtensions::NodeIdSetToUniqueNodeIdSetTranslator::translate): * Source/WebCore/css/CSSCounterStyleRegistry.cpp: (WebCore::CSSCounterStyleRegistry::resolveExtendsReference): * Source/WebCore/css/CSSCounterStyleRegistry.h: * Source/WebCore/css/CSSFontFaceSet.cpp: (WebCore::CSSFontFaceSet::matchingFacesExcludingPreinstalledFonts): * Source/WebCore/css/CSSFontSelector.h: * Source/WebCore/css/CSSGridTemplateAreasValue.cpp: (WebCore::stringForPosition): * Source/WebCore/css/CSSImportRule.cpp: (WebCore::CSSImportRule::getChildStyleSheets): * Source/WebCore/css/CSSImportRule.h: * Source/WebCore/css/CSSRule.h: (WebCore::CSSRule::getChildStyleSheets): * Source/WebCore/css/CSSStyleRule.cpp: (WebCore::CSSStyleRule::getChildStyleSheets): * Source/WebCore/css/CSSStyleRule.h: * Source/WebCore/css/CSSStyleSheet.cpp: (WebCore::CSSStyleSheet::getChildStyleSheets): * Source/WebCore/css/CSSStyleSheet.h: * Source/WebCore/css/MutableStyleProperties.cpp: (WebCore::MutableStyleProperties::removeProperties): * Source/WebCore/css/parser/CSSParserImpl.cpp: (WebCore::filterProperties): (WebCore::createStyleProperties): (WebCore::CSSParserImpl::parseDeclarationList): * Source/WebCore/cssjit/SelectorCompiler.cpp: * Source/WebCore/dom/DataTransfer.cpp: * Source/WebCore/dom/Document.cpp: (WebCore::Document::runScrollSteps): (WebCore::hasRealtimeMediaSource): (WebCore::findNearestCommonComposedAncestor): * Source/WebCore/dom/Document.h: * Source/WebCore/dom/DocumentSharedObjectPool.h: * Source/WebCore/dom/Element.cpp: * Source/WebCore/dom/IdTargetObserverRegistry.h: * Source/WebCore/dom/MessagePort.cpp: (WebCore::MessagePort::disentanglePorts): * Source/WebCore/dom/MutationObserver.cpp: (WebCore::MutationObserver::deliver): * Source/WebCore/dom/MutationObserver.h: * Source/WebCore/dom/MutationObserverRegistration.cpp: (WebCore::MutationObserverRegistration::takeTransientRegistrations): * Source/WebCore/dom/MutationObserverRegistration.h: * Source/WebCore/dom/Node.cpp: (WebCore::nodeSetPreTransformedFromNodeOrStringVector): (WebCore::firstPrecedingSiblingNotInNodeSet): (WebCore::firstFollowingSiblingNotInNodeSet): * Source/WebCore/dom/QualifiedNameCache.h: * Source/WebCore/dom/Range.cpp: (WebCore::Range::processContents): * Source/WebCore/dom/ScriptExecutionContext.h: * Source/WebCore/dom/ScriptRunner.h: * Source/WebCore/dom/SimulatedClick.cpp: (WebCore::simulateClick): * Source/WebCore/dom/SlotAssignment.cpp: (WebCore::ManualSlotAssignment::slotManualAssignmentDidChange): * Source/WebCore/dom/TreeScopeOrderedMap.h: * Source/WebCore/dom/VisitedLinkState.h: * Source/WebCore/dom/WindowEventLoop.h: * Source/WebCore/dom/messageports/MessagePortChannel.h: * Source/WebCore/editing/AppendNodeCommand.cpp: (WebCore::AppendNodeCommand::getNodesInCommand): * Source/WebCore/editing/AppendNodeCommand.h: * Source/WebCore/editing/CompositeEditCommand.cpp: (WebCore::EditCommandComposition::getNodesInCommand): * Source/WebCore/editing/CompositeEditCommand.h: * Source/WebCore/editing/DeleteFromTextNodeCommand.cpp: (WebCore::DeleteFromTextNodeCommand::getNodesInCommand): * Source/WebCore/editing/DeleteFromTextNodeCommand.h: * Source/WebCore/editing/EditCommand.cpp: (WebCore::SimpleEditCommand::addNodeAndDescendants): * Source/WebCore/editing/EditCommand.h: * Source/WebCore/editing/Editing.cpp: (WebCore::visibleImageElementsInRangeWithNonLoadedImages): * Source/WebCore/editing/Editing.h: * Source/WebCore/editing/Editor.h: * Source/WebCore/editing/InsertIntoTextNodeCommand.cpp: (WebCore::InsertIntoTextNodeCommand::getNodesInCommand): * Source/WebCore/editing/InsertIntoTextNodeCommand.h: * Source/WebCore/editing/InsertNodeBeforeCommand.cpp: (WebCore::InsertNodeBeforeCommand::getNodesInCommand): * Source/WebCore/editing/InsertNodeBeforeCommand.h: * Source/WebCore/editing/MergeIdenticalElementsCommand.cpp: (WebCore::MergeIdenticalElementsCommand::getNodesInCommand): * Source/WebCore/editing/MergeIdenticalElementsCommand.h: * Source/WebCore/editing/RemoveNodeCommand.cpp: (WebCore::RemoveNodeCommand::getNodesInCommand): * Source/WebCore/editing/RemoveNodeCommand.h: * Source/WebCore/editing/ReplaceNodeWithSpanCommand.cpp: (WebCore::ReplaceNodeWithSpanCommand::getNodesInCommand): * Source/WebCore/editing/ReplaceNodeWithSpanCommand.h: * Source/WebCore/editing/SetNodeAttributeCommand.cpp: (WebCore::SetNodeAttributeCommand::getNodesInCommand): * Source/WebCore/editing/SetNodeAttributeCommand.h: * Source/WebCore/editing/SetSelectionCommand.h: * Source/WebCore/editing/SpellingCorrectionCommand.cpp: * Source/WebCore/editing/SplitElementCommand.cpp: (WebCore::SplitElementCommand::getNodesInCommand): * Source/WebCore/editing/SplitElementCommand.h: * Source/WebCore/editing/SplitTextNodeCommand.cpp: (WebCore::SplitTextNodeCommand::getNodesInCommand): * Source/WebCore/editing/SplitTextNodeCommand.h: * Source/WebCore/editing/TextManipulationController.cpp: (WebCore::TextManipulationController::scheduleObservationUpdate): (WebCore::TextManipulationController::completeManipulation): (WebCore::TextManipulationController::updateInsertions): (WebCore::TextManipulationController::replace): * Source/WebCore/editing/TextManipulationController.h: * Source/WebCore/editing/WrapContentsInDummySpanCommand.cpp: (WebCore::WrapContentsInDummySpanCommand::getNodesInCommand): * Source/WebCore/editing/WrapContentsInDummySpanCommand.h: * Source/WebCore/editing/cocoa/HTMLConverter.mm: * Source/WebCore/fileapi/Blob.cpp: (WebCore::BlobURLRegistry::registerURL): (WebCore::BlobURLRegistry::unregisterURLsForContext): * Source/WebCore/fileapi/Blob.h: * Source/WebCore/history/BackForwardCache.cpp: (WebCore::BackForwardCache::clearEntriesForOrigins): * Source/WebCore/history/BackForwardCache.h: * Source/WebCore/html/Allowlist.h: (WebCore::Allowlist::Allowlist): (WebCore::Allowlist::matches const): * Source/WebCore/html/CanvasBase.cpp: (WebCore:: const): * Source/WebCore/html/CanvasBase.h: * Source/WebCore/html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateTokensFromAttributeValue): * Source/WebCore/html/HTMLFormControlsCollection.cpp: (WebCore::HTMLFormControlsCollection::updateNamedElementCache const): * Source/WebCore/html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::allMediaElements): (WebCore::HTMLMediaElement::originsInMediaCache): (WebCore::HTMLMediaElement::clearMediaCacheForOrigins): * Source/WebCore/html/HTMLMediaElement.h: * Source/WebCore/html/HTMLSlotElement.cpp: (WebCore::HTMLSlotElement::assign): * Source/WebCore/html/PermissionsPolicy.cpp: (WebCore::parseAllowlist): * Source/WebCore/html/PermissionsPolicy.h: * Source/WebCore/html/canvas/CanvasRenderingContext.cpp: * Source/WebCore/html/canvas/CanvasRenderingContext.h: * Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp: * Source/WebCore/html/canvas/WebGLRenderingContextBase.h: * Source/WebCore/html/parser/AtomHTMLToken.h: (WebCore::AtomHTMLToken::initializeAttributes): * Source/WebCore/layout/LayoutState.h: * Source/WebCore/layout/formattingContexts/block/BlockFormattingState.h: * Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp: (WebCore::Layout::nearestCommonAncestor): * Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp: (WebCore::Layout::InlineItemsBuilder::build): * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp: (WebCore::Layout::LineBuilder::candidateContentForLine): * Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp: (WebCore::Layout::InlineDisplayContentBuilder::processRubyContent): * Source/WebCore/loader/CanvasActivityRecord.h: * Source/WebCore/loader/CrossOriginPreflightResultCache.h: (WebCore::CrossOriginPreflightResultCacheItem::CrossOriginPreflightResultCacheItem): * Source/WebCore/loader/DocumentLoader.h: * Source/WebCore/loader/ResourceLoadObserver.h: (WebCore::ResourceLoadObserver::setDomainsWithUserInteraction): * Source/WebCore/loader/ResourceLoadStatistics.cpp: (WebCore::encodeHashSet): (WebCore::encodeFontHashSet): (WebCore::decodeHashSet): (WebCore::decodeFontHashSet): (WebCore::appendHashSet): (WebCore::mergeHashSet): * Source/WebCore/loader/ResourceLoadStatistics.h: * Source/WebCore/loader/appcache/ApplicationCacheGroup.cpp: (WebCore::ApplicationCacheGroup::manifestNotFound): (WebCore::ApplicationCacheGroup::postListenerTask): * Source/WebCore/loader/appcache/ApplicationCacheGroup.h: (WebCore::ApplicationCacheGroup::postListenerTask): * Source/WebCore/loader/appcache/ApplicationCacheManifestParser.h: * Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp: (WebCore::ApplicationCacheStorage::originsWithCache): * Source/WebCore/loader/appcache/ApplicationCacheStorage.h: * Source/WebCore/loader/archive/Archive.cpp: (WebCore::Archive::clearAllSubframeArchives): * Source/WebCore/loader/archive/Archive.h: * Source/WebCore/loader/archive/ArchiveFactory.cpp: (WebCore::ArchiveFactory::registerKnownArchiveMIMETypes): * Source/WebCore/loader/archive/ArchiveFactory.h: * Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp: (WebCore::generateValidFileName): (WebCore::addSubresourcesForCSSStyleSheetsIfNecessary): (WebCore::LegacyWebArchive::create): * Source/WebCore/loader/cache/CachedResource.h: * Source/WebCore/loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::removeResourcesWithOrigins): (WebCore::MemoryCache::originsWithCache const): * Source/WebCore/loader/cache/MemoryCache.h: * Source/WebCore/page/CaptionUserPreferences.cpp: (WebCore::CaptionUserPreferences::sortedTrackListForMenu): * Source/WebCore/page/CaptionUserPreferences.h: * Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp: (WebCore::CaptionUserPreferencesMediaAF::sortedTrackListForMenu): * Source/WebCore/page/CaptionUserPreferencesMediaAF.h: * Source/WebCore/page/DOMSelection.cpp: (WebCore::DOMSelection::getComposedRanges): * Source/WebCore/page/ElementTargetingController.cpp: (WebCore::collectMediaAndLinkURLsRecursive): (WebCore::collectMediaAndLinkURLs): (WebCore::ElementTargetingController::topologicallySortElementsHelper): (WebCore::ElementTargetingController::topologicallySortElements): (WebCore::ElementTargetingController::findAllTargets): (WebCore::filterRedundantNearbyTargets): (WebCore::ElementTargetingController::extractTargets): (WebCore::ElementTargetingController::resetVisibilityAdjustments): * Source/WebCore/page/ElementTargetingController.h: * Source/WebCore/page/ElementTargetingTypes.h: * Source/WebCore/page/EventHandler.cpp: (WebCore::EventHandler::handleTouchEvent): * Source/WebCore/page/EventHandler.h: * Source/WebCore/page/LocalFrame.h: * Source/WebCore/page/LocalFrameView.cpp: (WebCore::collectAndProtectWidgets): * Source/WebCore/page/LocalFrameView.h: * Source/WebCore/page/Page.cpp: (WebCore::allPages): (WebCore::Page::forEachWindowEventLoop): * Source/WebCore/page/Page.h: (WebCore::Page::maskedURLSchemes const): (WebCore::Page::rootFrames const): * Source/WebCore/page/PageConfiguration.h: * Source/WebCore/page/Quirks.cpp: (WebCore::Quirks::hasStorageAccessForAllLoginDomains): (WebCore::Quirks::triggerOptionalStorageAccessQuirk const): * Source/WebCore/page/Quirks.h: * Source/WebCore/page/TextIndicator.cpp: (WebCore::estimatedTextColorsForRange): (WebCore::hasAnyIllegibleColors): * Source/WebCore/page/UndoManager.h: * Source/WebCore/page/cocoa/ResourceUsageThreadCocoa.mm: (WebCore::ResourceUsageThread::platformCollectCPUData): * Source/WebCore/page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::takeNavigationRequestsToUpgrade): (WebCore::ContentSecurityPolicy::setInsecureNavigationRequestsToUpgrade): * Source/WebCore/page/csp/ContentSecurityPolicy.h: * Source/WebCore/page/csp/ContentSecurityPolicySourceList.h: * Source/WebCore/page/csp/ContentSecurityPolicyTrustedTypesDirective.h: * Source/WebCore/page/linux/ResourceUsageThreadLinux.cpp: (WebCore::collectCPUUsage): (WebCore::ResourceUsageThread::platformCollectCPUData): * Source/WebCore/page/mac/ImageOverlayControllerMac.mm: (WebCore::ImageOverlayController::updateDataDetectorHighlights): * Source/WebCore/page/mac/ServicesOverlayController.h: * Source/WebCore/page/mac/ServicesOverlayController.mm: (WebCore::ServicesOverlayController::buildPhoneNumberHighlights): (WebCore::ServicesOverlayController::buildSelectionHighlight): (WebCore::ServicesOverlayController::replaceHighlightsOfTypePreservingEquivalentHighlights): * Source/WebCore/page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::updateTreeFromStateNodeRecursive): (WebCore::ScrollingTree::nodesWithActiveScrollAnimations): * Source/WebCore/page/scrolling/ScrollingTree.h: (WebCore::ScrollingTree::activeOverflowScrollProxyNodes): (WebCore::ScrollingTree::activePositionedNodes): (WebCore::ScrollingTree::WTF_REQUIRES_LOCK): * Source/WebCore/page/scrolling/ScrollingTreeFrameHostingNode.h: * Source/WebCore/page/scrolling/ThreadedScrollingTree.cpp: (WebCore::ThreadedScrollingTree::propagateSynchronousScrollingReasons): * Source/WebCore/page/scrolling/ThreadedScrollingTree.h: * Source/WebCore/page/writing-tools/WritingToolsController.mm: (WebCore::WritingToolsController::proofreadingSessionDidReceiveSuggestions): * Source/WebCore/platform/LegacySchemeRegistry.h: * Source/WebCore/platform/MIMETypeRegistry.cpp: (WebCore::MIMETypeRegistry::additionalSupportedImageMIMETypes): (WebCore::MIMETypeRegistry::supportedNonImageMIMETypes): (WebCore::MIMETypeRegistry::supportedMediaMIMETypes): (WebCore::MIMETypeRegistry::createMIMETypeRegistryThreadGlobalData): (WebCore::MIMETypeRegistry::isWebArchiveMIMEType): * Source/WebCore/platform/MIMETypeRegistry.h: (WebCore::MIMETypeRegistryThreadGlobalData::MIMETypeRegistryThreadGlobalData): (WebCore::MIMETypeRegistryThreadGlobalData::supportedImageMIMETypesForEncoding const): * Source/WebCore/platform/PreviewConverter.cpp: (WebCore::PreviewConverter::supportsMIMEType): * Source/WebCore/platform/PreviewConverter.h: * Source/WebCore/platform/PublicSuffixStore.h: * Source/WebCore/platform/RemoteCommandListener.h: * Source/WebCore/platform/ScrollSnapAnimatorState.cpp: (WebCore::ScrollSnapAnimatorState::currentlySnappedBoxes const): (WebCore::chooseBoxToResnapTo): * Source/WebCore/platform/ScrollSnapAnimatorState.h: * Source/WebCore/platform/ScrollView.h: (WebCore::ScrollView::children const): * Source/WebCore/platform/cocoa/PlaybackSessionModelMediaElement.h: * Source/WebCore/platform/cocoa/PublicSuffixStoreCocoa.mm: (WebCore::PublicSuffixStore::enablePublicSuffixCache): * Source/WebCore/platform/cocoa/VideoPresentationModelVideoElement.h: * Source/WebCore/platform/encryptedmedia/CDMProxy.h: * Source/WebCore/platform/encryptedmedia/CDMRestrictions.h: * Source/WebCore/platform/gamepad/mac/HIDGamepadProvider.h: * Source/WebCore/platform/graphics/DisplayRefreshMonitor.h: * Source/WebCore/platform/graphics/FontCache.h: * Source/WebCore/platform/graphics/FontCascadeFonts.h: * Source/WebCore/platform/graphics/MIMETypeCache.cpp: (WebCore::MIMETypeCache::supportedTypes): (WebCore::MIMETypeCache::addSupportedTypes): (WebCore::MIMETypeCache::initializeCache): * Source/WebCore/platform/graphics/MIMETypeCache.h: * Source/WebCore/platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::getSupportedTypes): (WebCore::addToHash): (WebCore::MediaPlayer::originsInMediaCache): (WebCore::MediaPlayer::clearMediaCacheForOrigins): * Source/WebCore/platform/graphics/MediaPlayer.h: (WebCore::MediaPlayerFactory::originsInMediaCache const): (WebCore::MediaPlayerFactory::clearMediaCacheForOrigins const): * Source/WebCore/platform/graphics/MediaPlayerPrivate.h: (WebCore::MediaPlayerPrivateInterface::originsInMediaCache): (WebCore::MediaPlayerPrivateInterface::clearMediaCacheForOrigins): * Source/WebCore/platform/graphics/PlatformDisplay.cpp: * Source/WebCore/platform/graphics/TiledBacking.h: * Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp: (WebCore::usedDisplays): * Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.h: * Source/WebCore/platform/graphics/avfoundation/objc/AVAssetMIMETypeCache.h: * Source/WebCore/platform/graphics/avfoundation/objc/AVAssetMIMETypeCache.mm: (WebCore::AVAssetMIMETypeCache::initializeCache): * Source/WebCore/platform/graphics/avfoundation/objc/AVStreamDataParserMIMETypeCache.h: * Source/WebCore/platform/graphics/avfoundation/objc/AVStreamDataParserMIMETypeCache.mm: (WebCore::AVStreamDataParserMIMETypeCache::supportedTypes): (WebCore::AVStreamDataParserMIMETypeCache::initializeCache): * Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.h: * Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h: * Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::originsInMediaCache): (WebCore::MediaPlayerPrivateAVFoundationObjC::clearMediaCacheForOrigins): (WebCore::MediaPlayerPrivateAVFoundationObjC::getSupportedTypes): * Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h: * Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::getSupportedTypes): * Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.h: * Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm: (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::getSupportedTypes): * Source/WebCore/platform/graphics/ca/LayerPool.cpp: (WebCore::LayerPool::allLayerPools): * Source/WebCore/platform/graphics/ca/LayerPool.h: * Source/WebCore/platform/graphics/ca/TileController.cpp: (WebCore::TileController::didRevalidateTiles): * Source/WebCore/platform/graphics/ca/TileController.h: * Source/WebCore/platform/graphics/ca/TileGrid.cpp: (WebCore::TileGrid::revalidateTiles): (WebCore::TileGrid::ensureTilesForRect): * Source/WebCore/platform/graphics/ca/TileGrid.h: * Source/WebCore/platform/graphics/cg/CGSubimageCacheWithTimer.h: * Source/WebCore/platform/graphics/cg/UTIRegistry.mm: (WebCore::defaultSupportedImageTypes): * Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp: * Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.h: * Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.mm: (WebCore::mimeTypeCache): (WebCore::MediaPlayerPrivateWebM::getSupportedTypes): * Source/WebCore/platform/graphics/filters/FilterResults.h: * Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp: (WebCore::GStreamerRegistryScanner::getSupportedDecodingTypes): (WebCore::GStreamerRegistryScanner::mimeTypeSet const): * Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.h: * Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: (WebCore::MediaPlayerPrivateGStreamer::getSupportedTypes): (WebCore::MediaPlayerPrivateGStreamer::supportsType): * Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h: * Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: * Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp: (WebCore::AppendPipeline::didReceiveInitializationSegment): * Source/WebCore/platform/graphics/gstreamer/mse/GStreamerRegistryScannerMSE.cpp: (WebCore::GStreamerRegistryScannerMSE::getSupportedDecodingTypes): * Source/WebCore/platform/graphics/gstreamer/mse/GStreamerRegistryScannerMSE.h: * Source/WebCore/platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp: (WebCore::MediaPlayerPrivateGStreamerMSE::getSupportedTypes): * Source/WebCore/platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.h: * Source/WebCore/platform/graphics/gstreamer/mse/MediaSourcePrivateGStreamer.h: * Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.cpp: (WebCore::mimeTypeCache): (WebCore::MediaPlayerPrivateHolePunch::getSupportedTypes): * Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.h: * Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp: (WebCore::mimeTypeCache): (WebCore::MediaPlayerPrivateMediaFoundation::getSupportedTypes): (WebCore::MediaPlayerPrivateMediaFoundation::notifyDeleted): * Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.h: * Source/WebCore/platform/ios/PreviewConverterIOS.mm: (WebCore::PreviewConverter::platformSupportedMIMETypes): * Source/WebCore/platform/ios/WebVideoFullscreenControllerAVKit.mm: * Source/WebCore/platform/mac/HIDDevice.cpp: (WebCore::HIDDevice::uniqueInputElementsInDeviceTreeOrder const): * Source/WebCore/platform/mac/PasteboardMac.mm: (WebCore::Pasteboard::read): * Source/WebCore/platform/mac/ScrollbarThemeMac.mm: * Source/WebCore/platform/mac/SerializedPlatformDataCueMac.h: * Source/WebCore/platform/mac/SerializedPlatformDataCueMac.mm: (WebCore::SerializedPlatformDataCueMac::allowedClassesForNativeValues): * Source/WebCore/platform/mediastream/RealtimeMediaSource.h: * Source/WebCore/platform/mediastream/RealtimeOutgoingAudioSource.h: * Source/WebCore/platform/mediastream/RealtimeOutgoingVideoSource.h: * Source/WebCore/platform/mediastream/cocoa/AudioMediaStreamTrackRendererUnit.h: * Source/WebCore/platform/mediastream/cocoa/IncomingAudioMediaStreamTrackRendererUnit.h: * Source/WebCore/platform/mediastream/gstreamer/MockRealtimeAudioSourceGStreamer.cpp: * Source/WebCore/platform/mediastream/gstreamer/MockRealtimeAudioSourceGStreamer.h: * Source/WebCore/platform/mock/GeolocationClientMock.h: * Source/WebCore/platform/mock/mediasource/MockMediaPlayerMediaSource.cpp: (WebCore::mimeTypeCache): (WebCore::MockMediaPlayerMediaSource::getSupportedTypes): * Source/WebCore/platform/mock/mediasource/MockMediaPlayerMediaSource.h: * Source/WebCore/platform/network/CredentialStorage.cpp: (WebCore::CredentialStorage::originsWithCredentials const): * Source/WebCore/platform/network/CredentialStorage.h: * Source/WebCore/platform/network/DNSResolveQueue.cpp: (WebCore::DNSResolveQueue::timerFired): * Source/WebCore/platform/network/DNSResolveQueue.h: * Source/WebCore/platform/network/HTTPParsers.h: (WebCore::addToAccessControlAllowList): (WebCore::parseAccessControlAllowList): * Source/WebCore/platform/network/NetworkStorageSession.cpp: (WebCore::updatableStorageAccessPromptQuirks): (WebCore::NetworkStorageSession::grantCrossPageStorageAccess): (WebCore::NetworkStorageSession::setAppBoundDomains): (WebCore::NetworkStorageSession::setManagedDomains): (WebCore::NetworkStorageSession::storageAccessQuirks): (WebCore::NetworkStorageSession::subResourceDomainsInNeedOfStorageAccessForFirstParty): * Source/WebCore/platform/network/NetworkStorageSession.h: * Source/WebCore/platform/network/cocoa/NetworkStorageSessionCocoa.mm: (WebCore::NetworkStorageSession::getHostnamesWithCookies): (WebCore::NetworkStorageSession::deleteCookiesForHostnames): (WebCore::NetworkStorageSession::stopListeningForCookieChangeNotifications): * Source/WebCore/platform/network/cocoa/WebCoreNSURLSession.h: * Source/WebCore/platform/network/curl/CookieJarDB.cpp: (WebCore::CookieJarDB::allDomains): * Source/WebCore/platform/network/curl/CookieJarDB.h: * Source/WebCore/platform/network/curl/CurlRequestScheduler.h: * Source/WebCore/platform/network/curl/NetworkStorageSessionCurl.cpp: (WebCore::NetworkStorageSession::getHostnamesWithCookies): * Source/WebCore/platform/network/mac/UTIUtilities.h: * Source/WebCore/platform/network/mac/UTIUtilities.mm: (WebCore::RequiredMIMETypesFromUTI): * Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp: (WebCore::NetworkStorageSession::getHostnamesWithCookies): * Source/WebCore/platform/network/soup/ResourceResponseSoup.cpp: (WebCore::sanitizeFilename): * Source/WebCore/platform/network/soup/SoupNetworkSession.cpp: (WebCore::SoupNetworkSession::getHostNamesWithHSTSCache): * Source/WebCore/platform/network/soup/SoupNetworkSession.h: * Source/WebCore/platform/win/WindowMessageBroadcaster.h: * Source/WebCore/rendering/EventRegion.h: * Source/WebCore/rendering/GlyphDisplayListCache.h: * Source/WebCore/rendering/GridTrackSizingAlgorithm.h: * Source/WebCore/rendering/MarkedText.cpp: (WebCore::MarkedText::subdivide): * Source/WebCore/rendering/ReferencedSVGResources.cpp: (WebCore::ReferencedSVGResources::updateReferencedResources): * Source/WebCore/rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::rebuildFloatingObjectSetFromIntrudingFloats): * Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp: * Source/WebCore/rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateSynchronousScrollingNodes): * Source/WebCore/rendering/RenderObject.cpp: (WebCore::borderAndTextRects): * Source/WebCore/rendering/RenderSelection.cpp: (WebCore::RenderSelection::repaint const): * Source/WebCore/rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::paintObject): * Source/WebCore/rendering/TextAutoSizing.h: * Source/WebCore/rendering/style/StyleRareNonInheritedData.h: * Source/WebCore/rendering/svg/SVGTextChunkBuilder.cpp: (WebCore::SVGTextChunkBuilder::buildTextChunks): (WebCore::SVGTextChunkBuilder::layoutTextChunks): * Source/WebCore/rendering/svg/SVGTextChunkBuilder.h: * Source/WebCore/rendering/svg/SVGTextLayoutEngine.h: * Source/WebCore/style/AnchorPositionEvaluator.cpp: (WebCore::Style::AnchorPositionEvaluator::findAnchorsForAnchorPositionedElement): * Source/WebCore/style/AnchorPositionEvaluator.h: * Source/WebCore/style/ChildChangeInvalidation.h: * Source/WebCore/style/InspectorCSSOMWrappers.h: * Source/WebCore/style/PropertyCascade.cpp: (WebCore::Style::PropertyCascade::PropertyCascade): (WebCore::Style::PropertyCascade::AnimationLayer::AnimationLayer): (WebCore::Style::PropertyCascade::overriddenAnimatedProperties const): * Source/WebCore/style/PropertyCascade.h: * Source/WebCore/style/RuleFeature.h: * Source/WebCore/style/RuleSetBuilder.h: * Source/WebCore/style/StyleBuilder.cpp: (WebCore::Style::Builder::Builder): * Source/WebCore/style/StyleBuilder.h: (WebCore::Style::Builder::overriddenAnimatedProperties const): * Source/WebCore/style/StyleBuilderState.h: * Source/WebCore/style/StyleResolver.cpp: (WebCore::Style::Resolver::keyframeRulesForName const): * Source/WebCore/style/StyleScope.h: * Source/WebCore/style/StyleScopeRuleSets.cpp: (WebCore::Style::ScopeRuleSets::customPropertyNamesInStyleContainerQueries const): * Source/WebCore/style/StyleScopeRuleSets.h: * Source/WebCore/style/StyleTreeResolver.cpp: (WebCore::Style::TreeResolver::createAnimatedElementUpdate): (WebCore::Style::TreeResolver::applyCascadeAfterAnimation): * Source/WebCore/style/StyleTreeResolver.h: * Source/WebCore/style/Styleable.cpp: (WebCore::compileTransitionPropertiesInStyle): (WebCore::Styleable::updateCSSTransitions const): * Source/WebCore/style/Styleable.h: (WebCore::Styleable::applyKeyframeEffects const): * Source/WebCore/svg/SVGFontElement.h: * Source/WebCore/svg/SVGLinearGradientElement.cpp: (WebCore::SVGLinearGradientElement::collectGradientAttributes): * Source/WebCore/svg/SVGParserUtilities.cpp: (WebCore::parseGlyphName): (WebCore::parseKerningUnicodeString): * Source/WebCore/svg/SVGParserUtilities.h: * Source/WebCore/svg/SVGRadialGradientElement.cpp: (WebCore::SVGRadialGradientElement::collectGradientAttributes): * Source/WebCore/svg/SVGToOTFFontConversion.cpp: (WebCore::SVGToOTFFontConverter::addCodepointRanges const): (WebCore::SVGToOTFFontConverter::addCodepoints const): (WebCore::SVGToOTFFontConverter::addGlyphNames const): (WebCore::SVGToOTFFontConverter::addKerningPair const): (WebCore::SVGToOTFFontConverter::appendLigatureGlyphs): * Source/WebCore/svg/animation/SVGSMILElement.cpp: (WebCore::SVGSMILElement::parseBeginOrEnd): * Source/WebCore/svg/properties/SVGPropertyOwnerRegistry.h: Canonical link: https://commits.webkit.org/288477@main
1 parent ea1eac3 commit c9de3ea

409 files changed

Lines changed: 851 additions & 845 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Source/JavaScriptCore/API/JSValue.mm‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ - (JSValue *)initWithValue:(JSValueRef)value inContext:(JSContext *)context
13151315
});
13161316

13171317
// Step 3: clean up - remove entries where we found prospective valueWith<Foo>:inContext: conversions, but no matching to<Foo> methods.
1318-
typedef HashSet<String> RemoveSet;
1318+
typedef UncheckedKeyHashSet<String> RemoveSet;
13191319
RemoveSet removeSet;
13201320
for (StructHandlers::iterator iter = structHandlers->begin(); iter != structHandlers->end(); ++iter) {
13211321
StructTagHandler& handler = iter->value;

‎Source/JavaScriptCore/API/ObjcRuntimeExtras.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ inline void forEachProtocolImplementingProtocol(Class cls, Protocol *target, voi
5656
ASSERT(target);
5757

5858
Vector<Protocol*> worklist;
59-
HashSet<void*> visited;
59+
UncheckedKeyHashSet<void*> visited;
6060

6161
// Initially fill the worklist with the Class's protocols.
6262
{

‎Source/JavaScriptCore/b3/B3CanonicalizePrePostIncrements.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bool canonicalizePrePostIncrements(Procedure& proc)
6363
UncheckedKeyHashMap<MemoryValue*, Vector<Value*>> preIndexCandidates;
6464

6565
UncheckedKeyHashMap<Value*, unsigned> memoryToIndex;
66-
UncheckedKeyHashMap<BasicBlock*, HashSet<MemoryValue*>> blockToPrePostIndexCandidates;
66+
UncheckedKeyHashMap<BasicBlock*, UncheckedKeyHashSet<MemoryValue*>> blockToPrePostIndexCandidates;
6767

6868
auto tryFindCandidates = [&](Value* value, unsigned index) ALWAYS_INLINE_LAMBDA {
6969
switch (value->opcode()) {
@@ -96,7 +96,7 @@ bool canonicalizePrePostIncrements(Procedure& proc)
9696
if (uses != addressUses.end() && uses->value.size() > 0)
9797
continue;
9898
preIndexCandidates.add(memory, Vector<Value*>()).iterator->value.append(address);
99-
blockToPrePostIndexCandidates.add(memory->owner, HashSet<MemoryValue*>()).iterator->value.add(memory);
99+
blockToPrePostIndexCandidates.add(memory->owner, UncheckedKeyHashSet<MemoryValue*>()).iterator->value.add(memory);
100100
}
101101
} else
102102
baseToMemories.add(base, Vector<MemoryValue*>()).iterator->value.append(memory);
@@ -129,7 +129,7 @@ bool canonicalizePrePostIncrements(Procedure& proc)
129129
break;
130130
for (MemoryValue* memory : memories->value) {
131131
postIndexCandidates.add(memory, Vector<Value*>()).iterator->value.append(address);
132-
blockToPrePostIndexCandidates.add(memory->owner, HashSet<MemoryValue*>()).iterator->value.add(memory);
132+
blockToPrePostIndexCandidates.add(memory->owner, UncheckedKeyHashSet<MemoryValue*>()).iterator->value.add(memory);
133133
}
134134
break;
135135
}

‎Source/JavaScriptCore/b3/B3LowerInt64.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ class LowerInt64 {
12871287
bool m_changed;
12881288
UncheckedKeyHashMap<Value*, Value*> m_rewrittenTupleResults;
12891289
UncheckedKeyHashMap<Value*, std::pair<Value*, Value*>> m_mapping;
1290-
HashSet<Value*> m_syntheticValues;
1290+
UncheckedKeyHashSet<Value*> m_syntheticValues;
12911291
UncheckedKeyHashMap<Variable*, std::pair<Variable*, Variable*>> m_variableMapping;
12921292
};
12931293

‎Source/JavaScriptCore/b3/B3OptimizeAssociativeExpressionTrees.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ bool OptimizeAssociativeExpressionTrees::run()
252252
m_proc.resetValueOwners();
253253

254254
Vector<unsigned> useCounts(m_proc.values().size(), 0); // Mapping from Value::m_index to use counts.
255-
HashSet<Value*> expressionTreeRoots;
256-
HashSet<BasicBlock*> rootOwners;
255+
UncheckedKeyHashSet<Value*> expressionTreeRoots;
256+
UncheckedKeyHashSet<BasicBlock*> rootOwners;
257257

258258
for (BasicBlock* block : m_proc) {
259259
for (Value* value : *block) {

‎Source/JavaScriptCore/b3/B3Procedure.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class Procedure {
316316
std::unique_ptr<NaturalLoops> m_naturalLoops;
317317
std::unique_ptr<BackwardsCFG> m_backwardsCFG;
318318
std::unique_ptr<BackwardsDominators> m_backwardsDominators;
319-
HashSet<ValueKey> m_fastConstants;
319+
UncheckedKeyHashSet<ValueKey> m_fastConstants;
320320
const char* m_lastPhaseName;
321321
std::unique_ptr<OpaqueByproducts> m_byproducts;
322322
std::unique_ptr<Air::Code> m_code;

‎Source/JavaScriptCore/b3/B3Validate.cpp‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class Validater {
6767

6868
void run()
6969
{
70-
HashSet<BasicBlock*> blocks;
71-
HashSet<Value*> valueInProc;
70+
UncheckedKeyHashSet<BasicBlock*> blocks;
71+
UncheckedKeyHashSet<Value*> valueInProc;
7272
UncheckedKeyHashMap<Value*, unsigned> valueInBlock;
7373
UncheckedKeyHashMap<Value*, BasicBlock*> valueOwner;
7474
UncheckedKeyHashMap<Value*, unsigned> valueIndex;
@@ -114,15 +114,15 @@ class Validater {
114114
}
115115
}
116116

117-
UncheckedKeyHashMap<BasicBlock*, HashSet<BasicBlock*>> allPredecessors;
117+
UncheckedKeyHashMap<BasicBlock*, UncheckedKeyHashSet<BasicBlock*>> allPredecessors;
118118
for (BasicBlock* block : blocks) {
119119
VALIDATE(block->size() >= 1, ("At ", *block));
120120
for (unsigned i = 0; i < block->size() - 1; ++i)
121121
VALIDATE(!block->at(i)->effects().terminal, ("At ", *block->at(i)));
122122
VALIDATE(block->last()->effects().terminal, ("At ", *block->last()));
123123

124124
for (BasicBlock* successor : block->successorBlocks()) {
125-
allPredecessors.add(successor, HashSet<BasicBlock*>()).iterator->value.add(block);
125+
allPredecessors.add(successor, UncheckedKeyHashSet<BasicBlock*>()).iterator->value.add(block);
126126
VALIDATE(
127127
blocks.contains(successor), ("At ", *block, "->", pointerDump(successor)));
128128
}
@@ -131,7 +131,7 @@ class Validater {
131131
// Note that this totally allows dead code.
132132
for (auto& entry : allPredecessors) {
133133
BasicBlock* successor = entry.key;
134-
HashSet<BasicBlock*>& predecessors = entry.value;
134+
UncheckedKeyHashSet<BasicBlock*>& predecessors = entry.value;
135135
VALIDATE(predecessors == successor->predecessors(), ("At ", *successor));
136136
}
137137

@@ -870,7 +870,7 @@ class Validater {
870870

871871
for (BasicBlock* block : m_procedure) {
872872
// We expect the predecessor list to be de-duplicated.
873-
HashSet<BasicBlock*> predecessors;
873+
UncheckedKeyHashSet<BasicBlock*> predecessors;
874874
for (BasicBlock* predecessor : block->predecessors())
875875
predecessors.add(predecessor);
876876
VALIDATE(block->numPredecessors() == predecessors.size(), ("At ", *block));
@@ -969,15 +969,15 @@ class Validater {
969969
{
970970
bool changed = true;
971971
BitVector blocksToVisit;
972-
IndexMap<BasicBlock*, HashSet<Value*>> undominatedPhisAtTail(m_procedure.size());
972+
IndexMap<BasicBlock*, UncheckedKeyHashSet<Value*>> undominatedPhisAtTail(m_procedure.size());
973973
for (BasicBlock* block : m_procedure)
974974
blocksToVisit.set(block->index());
975975
while (changed) {
976976
changed = false;
977977
for (BasicBlock* block : m_procedure.blocksInPostOrder()) {
978978
if (!blocksToVisit.quickClear(block->index()))
979979
continue;
980-
HashSet<Value*> undominatedPhis = undominatedPhisAtTail[block];
980+
UncheckedKeyHashSet<Value*> undominatedPhis = undominatedPhisAtTail[block];
981981
for (unsigned index = block->size()-1; index--;) {
982982
Value* value = block->at(index);
983983
switch (value->opcode()) {

‎Source/JavaScriptCore/b3/air/AirAllocateRegistersAndStackAndGenerateCode.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,8 @@ void GenerateAndAllocateRegisters::prepareForGeneration()
507507
UnifiedTmpLiveness liveness(m_code);
508508
for (BasicBlock* block : m_code) {
509509
auto assertLivenessAreEqual = [&] (auto a, auto b) {
510-
HashSet<Tmp> livenessA;
511-
HashSet<Tmp> livenessB;
510+
UncheckedKeyHashSet<Tmp> livenessA;
511+
UncheckedKeyHashSet<Tmp> livenessB;
512512
for (Tmp tmp : a) {
513513
if (tmp.isReg() && isDisallowedRegister(tmp.reg()))
514514
continue;

‎Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ class AbstractColoringAllocator {
456456
{
457457
out.print("graph InterferenceGraph { \n");
458458

459-
HashSet<Tmp> tmpsWithInterferences;
459+
UncheckedKeyHashSet<Tmp> tmpsWithInterferences;
460460

461461
m_interferenceEdges.forEach([&tmpsWithInterferences] (std::pair<IndexType, IndexType> edge) {
462462
tmpsWithInterferences.add(TmpMapper::tmpFromAbsoluteIndex(edge.first));
@@ -1330,7 +1330,7 @@ class IRC : public AbstractColoringAllocator<IndexType, InterferenceSet, bank> {
13301330

13311331
// Work lists.
13321332
// Low-degree, Move related.
1333-
HashSet<IndexType> m_freezeWorklist;
1333+
UncheckedKeyHashSet<IndexType> m_freezeWorklist;
13341334
// Set of "move" enabled for possible coalescing.
13351335
OrderedMoveSet m_worklistMoves;
13361336
// Set of "move" not yet ready for coalescing.

‎Source/JavaScriptCore/b3/air/AirCustom.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ bool ShuffleCustom::isValidForm(Inst& inst)
148148
// - Closed loops. These loops consist of nodes that have one successor and one predecessor, so
149149
// there is no way to "get into" the loop from outside of it. These can be executed using swaps
150150
// or by saving one of the Args to a scratch register and executing it as a shift.
151-
HashSet<Arg> dsts;
151+
UncheckedKeyHashSet<Arg> dsts;
152152

153153
for (unsigned i = 0; i < inst.args.size(); ++i) {
154154
Arg arg = inst.args[i];

0 commit comments

Comments
 (0)