Ignore:
Timestamp:
Mar 20, 2013, 1:43:31 PM (12 years ago)
Author:
[email protected]
Message:

It's called "Hash Consing" not "Hash Consting"
https://bugs.webkit.org/show_bug.cgi?id=112768

Rubber stamped by Mark Hahnenberg.

See http://en.wikipedia.org/wiki/Hash_consing

  • heap/GCThreadSharedData.cpp:

(JSC::GCThreadSharedData::GCThreadSharedData):
(JSC::GCThreadSharedData::reset):

  • heap/GCThreadSharedData.h:

(GCThreadSharedData):

  • heap/SlotVisitor.cpp:

(JSC::SlotVisitor::SlotVisitor):
(JSC::SlotVisitor::setup):
(JSC::SlotVisitor::reset):
(JSC::JSString::tryHashConsLock):
(JSC::JSString::releaseHashConsLock):
(JSC::JSString::shouldTryHashCons):
(JSC::SlotVisitor::internalAppend):

  • heap/SlotVisitor.h:

(SlotVisitor):

  • runtime/JSGlobalData.cpp:

(JSC::JSGlobalData::JSGlobalData):

  • runtime/JSGlobalData.h:

(JSGlobalData):
(JSC::JSGlobalData::haveEnoughNewStringsToHashCons):
(JSC::JSGlobalData::resetNewStringsSinceLastHashCons):

  • runtime/JSString.h:

(JSC::JSString::finishCreation):
(JSString):
(JSC::JSString::isHashConsSingleton):
(JSC::JSString::clearHashConsSingleton):
(JSC::JSString::setHashConsSingleton):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/GCThreadSharedData.cpp

    r136077 r146383  
    5656    : m_globalData(globalData)
    5757    , m_copiedSpace(&globalData->heap.m_storageSpace)
    58     , m_shouldHashConst(false)
     58    , m_shouldHashCons(false)
    5959    , m_sharedMarkStack(globalData->heap.blockAllocator())
    6060    , m_numberOfActiveParallelMarkers(0)
     
    116116    m_weakReferenceHarvesters.removeAll();
    117117
    118     if (m_shouldHashConst) {
    119         m_globalData->resetNewStringsSinceLastHashConst();
    120         m_shouldHashConst = false;
     118    if (m_shouldHashCons) {
     119        m_globalData->resetNewStringsSinceLastHashCons();
     120        m_shouldHashCons = false;
    121121    }
    122122}
Note: See TracChangeset for help on using the changeset viewer.