Ignore:
Timestamp:
Feb 19, 2013, 2:29:03 PM (12 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling in r143348.
http://trac.webkit.org/changeset/143348
https://bugs.webkit.org/show_bug.cgi?id=110242

The bug was that isEmptyValue() was returning true for the deleted value.
Fixed this and simplified things further by delegating to m_sourceCode
for both isNull() and isHashTableDeletedValue(), so they can't be out of
sync.

  • runtime/CodeCache.cpp:

(JSC::CodeCache::getFunctionExecutableFromGlobalCode):

  • runtime/CodeCache.h:

(JSC::SourceCodeKey::SourceCodeKey):
(JSC::SourceCodeKey::isHashTableDeletedValue):
(JSC::SourceCodeKey::hash):
(JSC::SourceCodeKey::length):
(JSC::SourceCodeKey::isNull):
(JSC::SourceCodeKey::operator==):
(SourceCodeKey):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/SourceCode.h

    r128542 r143384  
    4545        }
    4646
     47        SourceCode(WTF::HashTableDeletedValueType)
     48            : m_provider(WTF::HashTableDeletedValue)
     49        {
     50        }
     51
    4752        SourceCode(PassRefPtr<SourceProvider> provider, int firstLine = 1)
    4853            : m_provider(provider)
     
    6065        {
    6166        }
     67
     68        bool isHashTableDeletedValue() const { return m_provider.isHashTableDeletedValue(); }
    6269
    6370        String toString() const
Note: See TracChangeset for help on using the changeset viewer.