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/API/JSClassRef.cpp

    r52346 r52762  
    8383OpaqueJSClass::~OpaqueJSClass()
    8484{
    85     ASSERT(!m_className.rep()->identifierTable());
     85    ASSERT(!m_className.rep()->isIdentifier());
    8686
    8787    if (m_staticValues) {
    8888        OpaqueJSClassStaticValuesTable::const_iterator end = m_staticValues->end();
    8989        for (OpaqueJSClassStaticValuesTable::const_iterator it = m_staticValues->begin(); it != end; ++it) {
    90             ASSERT(!it->first->identifierTable());
     90            ASSERT(!it->first->isIdentifier());
    9191            delete it->second;
    9292        }
     
    9797        OpaqueJSClassStaticFunctionsTable::const_iterator end = m_staticFunctions->end();
    9898        for (OpaqueJSClassStaticFunctionsTable::const_iterator it = m_staticFunctions->begin(); it != end; ++it) {
    99             ASSERT(!it->first->identifierTable());
     99            ASSERT(!it->first->isIdentifier());
    100100            delete it->second;
    101101        }
     
    148148        OpaqueJSClassStaticValuesTable::const_iterator end = jsClass->m_staticValues->end();
    149149        for (OpaqueJSClassStaticValuesTable::const_iterator it = jsClass->m_staticValues->begin(); it != end; ++it) {
    150             ASSERT(!it->first->identifierTable());
     150            ASSERT(!it->first->isIdentifier());
    151151            staticValues->add(UString::Rep::createCopying(it->first->data(), it->first->size()),
    152152                              new StaticValueEntry(it->second->getProperty, it->second->setProperty, it->second->attributes));
     
    161161        OpaqueJSClassStaticFunctionsTable::const_iterator end = jsClass->m_staticFunctions->end();
    162162        for (OpaqueJSClassStaticFunctionsTable::const_iterator it = jsClass->m_staticFunctions->begin(); it != end; ++it) {
    163             ASSERT(!it->first->identifierTable());
     163            ASSERT(!it->first->isIdentifier());
    164164            staticFunctions->add(UString::Rep::createCopying(it->first->data(), it->first->size()),
    165165                              new StaticFunctionEntry(it->second->callAsFunction, it->second->attributes));
Note: See TracChangeset for help on using the changeset viewer.