Ignore:
Timestamp:
Jul 29, 2008, 1:16:17 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Oliver Hunt.

Store UString::Rep::isStatic bit in identifierTable pointer instead of reportedCost for
slightly nicer code and a 0.5% SunSpider improvement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSClassRef.cpp

    r35293 r35418  
    8484OpaqueJSClass::~OpaqueJSClass()
    8585{
    86     ASSERT(!m_className.rep()->identifierTable);
     86    ASSERT(!m_className.rep()->identifierTable());
    8787
    8888    if (m_staticValues) {
    8989        OpaqueJSClassStaticValuesTable::const_iterator end = m_staticValues->end();
    9090        for (OpaqueJSClassStaticValuesTable::const_iterator it = m_staticValues->begin(); it != end; ++it) {
    91             ASSERT(!it->first->identifierTable);
     91            ASSERT(!it->first->identifierTable());
    9292            delete it->second;
    9393        }
     
    9898        OpaqueJSClassStaticFunctionsTable::const_iterator end = m_staticFunctions->end();
    9999        for (OpaqueJSClassStaticFunctionsTable::const_iterator it = m_staticFunctions->begin(); it != end; ++it) {
    100             ASSERT(!it->first->identifierTable);
     100            ASSERT(!it->first->identifierTable());
    101101            delete it->second;
    102102        }
     
    150150        OpaqueJSClassStaticValuesTable::const_iterator end = jsClass->m_staticValues->end();
    151151        for (OpaqueJSClassStaticValuesTable::const_iterator it = jsClass->m_staticValues->begin(); it != end; ++it) {
    152             ASSERT(!it->first->identifierTable);
     152            ASSERT(!it->first->identifierTable());
    153153            staticValues->add(UString::Rep::createCopying(it->first->data(), it->first->size()),
    154154                              new StaticValueEntry(it->second->getProperty, it->second->setProperty, it->second->attributes));
     
    163163        OpaqueJSClassStaticFunctionsTable::const_iterator end = jsClass->m_staticFunctions->end();
    164164        for (OpaqueJSClassStaticFunctionsTable::const_iterator it = jsClass->m_staticFunctions->begin(); it != end; ++it) {
    165             ASSERT(!it->first->identifierTable);
     165            ASSERT(!it->first->identifierTable());
    166166            staticFunctions->add(UString::Rep::createCopying(it->first->data(), it->first->size()),
    167167                              new StaticFunctionEntry(it->second->callAsFunction, it->second->attributes));
Note: See TracChangeset for help on using the changeset viewer.