Ignore:
Timestamp:
Jan 4, 2010, 2:49:27 PM (15 years ago)
Author:
[email protected]
Message:

Rubber stamped by Geoff Garen.

Add an 'isIdentifier' to UStringImpl, use this where appropriate
(where previously 'identifierTable' was being tested).

  • API/JSClassRef.cpp:

(OpaqueJSClass::~OpaqueJSClass):
(OpaqueJSClassContextData::OpaqueJSClassContextData):

  • runtime/Identifier.cpp:

(JSC::Identifier::addSlowCase):

  • runtime/Identifier.h:

(JSC::Identifier::add):

  • runtime/PropertyNameArray.cpp:

(JSC::PropertyNameArray::add):

  • runtime/UStringImpl.h:

(JSC::UStringImpl::isIdentifier):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/UStringImpl.h

    r52758 r52762  
    138138    unsigned computedHash() const { ASSERT(m_hash); return m_hash; } // fast path for Identifiers
    139139    void setHash(unsigned hash) { ASSERT(hash == computeHash(data(), m_length)); m_hash = hash; } // fast path for Identifiers
     140    bool isIdentifier() const { return m_identifierTable; }
    140141    IdentifierTable* identifierTable() const { return m_identifierTable; }
    141142    void setIdentifierTable(IdentifierTable* table) { ASSERT(!isStatic()); m_identifierTable = table; }
Note: See TracChangeset for help on using the changeset viewer.