Ignore:
Timestamp:
Mar 10, 2015, 2:54:21 PM (10 years ago)
Author:
[email protected]
Message:

Use unsigned for HashSet size.
https://bugs.webkit.org/show_bug.cgi?id=142518

Patch by Alex Christensen <[email protected]> on 2015-03-10
Reviewed by Benjamin Poulain.

Source/JavaScriptCore:

  • dfg/DFGAvailabilityMap.cpp:

(JSC::DFG::AvailabilityMap::prune):

  • ftl/FTLOSRExitCompiler.cpp:

(JSC::FTL::compileStub):

  • heap/MarkedBlockSet.h:

(JSC::MarkedBlockSet::remove):

  • runtime/WeakMapData.h:

Source/WebCore:

  • Modules/websockets/WebSocketDeflateFramer.cpp:

(WebCore::WebSocketExtensionDeflateFrame::processResponse):

  • bindings/js/SerializedScriptValue.cpp:

(WebCore::CloneSerializer::checkForDuplicate):
(WebCore::CloneSerializer::writeConstantPoolIndex):

  • dom/ScriptRunner.cpp:

(WebCore::ScriptRunner::~ScriptRunner):

  • loader/ResourceLoadScheduler.h:
  • platform/graphics/Font.cpp:

(WebCore::Font::systemFallbackFontForCharacter):

  • platform/graphics/FontCache.cpp:

(WebCore::FontCache::purgeInactiveFontDataIfNeeded):
(WebCore::FontCache::purgeInactiveFontData):

  • platform/graphics/FontCache.h:
  • platform/graphics/freetype/FontCacheFreeType.cpp:

(WebCore::FontCache::systemFallbackForCharacters):

  • platform/graphics/ios/FontCacheIOS.mm:

(WebCore::FontCache::getSystemFontFallbackForCharacters):
(WebCore::FontCache::systemFallbackForCharacters):
(WebCore::FontCache::similarFont):

  • platform/graphics/mac/FontCacheMac.mm:

(WebCore::shouldAutoActivateFontIfNeeded):
(WebCore::FontCache::systemFallbackForCharacters):
(WebCore::FontCache::similarFont):

  • platform/graphics/win/FontCacheWin.cpp:

(WebCore::FontCache::systemFallbackForCharacters):

  • rendering/RenderDeprecatedFlexibleBox.cpp:

(WebCore::FlexBoxIterator::next):

  • rendering/RenderTableSection.cpp:

(WebCore::RenderTableSection::computeOverflowFromCells):

Source/WTF:

  • wtf/HashCountedSet.h:

(WTF::Traits>::size):
(WTF::Traits>::capacity):

  • wtf/HashMap.h:

(WTF::X>::size):
(WTF::X>::capacity):

  • wtf/HashSet.h:

(WTF::V>::size):
(WTF::V>::capacity):

  • wtf/HashTable.h:

(WTF::HashTable::Stats::recordCollisionAtCount):
(WTF::HashTable::Stats::dumpStats):
(WTF::HashTable::size):
(WTF::HashTable::capacity):
(WTF::KeyTraits>::deallocateTable):
(WTF::KeyTraits>::checkTableConsistencyExceptSize):

  • wtf/HashTraits.h:
  • wtf/ListHashSet.h:

(WTF::U>::size):
(WTF::U>::capacity):

Tools:

  • TestWebKitAPI/Tests/WTF/HashMap.cpp:

(TestWebKitAPI::TEST):

  • TestWebKitAPI/Tests/WTF/HashSet.cpp:

(TestWebKitAPI::testInitialCapacity):

  • TestWebKitAPI/Tests/WTF/ListHashSet.cpp:

(TestWebKitAPI::TEST):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/WeakMapData.h

    r181061 r181348  
    8585        virtual void visitWeakReferences(SlotVisitor&) override;
    8686        virtual void finalizeUnconditionally() override;
    87         int m_liveKeyCount;
     87        unsigned m_liveKeyCount;
    8888        WeakMapData* m_target;
    8989    };
Note: See TracChangeset for help on using the changeset viewer.