Changeset 103157 in webkit for trunk/Source/JavaScriptCore/API


Ignore:
Timestamp:
Dec 17, 2011, 3:17:26 PM (13 years ago)
Author:
[email protected]
Message:

OpaqueJSClass: Remove RVCT2 workarounds.
<http://webkit.org/b/74250>

Reviewed by Benjamin Poulain.

We no longer need workarounds for the RVCT2 compiler since it was
only used for the Symbian port of WebKit which is now defunct.

  • API/JSClassRef.cpp:

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

File:
1 edited

Legend:

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

    r102065 r103157  
    7979        while (staticValue->name) {
    8080            UString valueName = tryCreateStringFromUTF8(staticValue->name);
    81             if (!valueName.isNull()) {
    82                 // Use a local variable here to sidestep an RVCT compiler bug.
    83                 OwnPtr<StaticValueEntry> entry = adoptPtr(new StaticValueEntry(staticValue->getProperty, staticValue->setProperty, staticValue->attributes));
    84                 m_staticValues->set(valueName.impl(), entry.release());
    85             }
     81            if (!valueName.isNull())
     82                m_staticValues->set(valueName.impl(), adoptPtr(new StaticValueEntry(staticValue->getProperty, staticValue->setProperty, staticValue->attributes)));
    8683            ++staticValue;
    8784        }
     
    9289        while (staticFunction->name) {
    9390            UString functionName = tryCreateStringFromUTF8(staticFunction->name);
    94             if (!functionName.isNull()) {
    95                 // Use a local variable here to sidestep an RVCT compiler bug.
    96                 OwnPtr<StaticFunctionEntry> entry = adoptPtr(new StaticFunctionEntry(staticFunction->callAsFunction, staticFunction->attributes));
    97                 m_staticFunctions->set(functionName.impl(), entry.release());
    98             }
     91            if (!functionName.isNull())
     92                m_staticFunctions->set(functionName.impl(), adoptPtr(new StaticFunctionEntry(staticFunction->callAsFunction, staticFunction->attributes)));
    9993            ++staticFunction;
    10094        }
     
    155149        for (OpaqueJSClassStaticValuesTable::const_iterator it = jsClass->m_staticValues->begin(); it != end; ++it) {
    156150            ASSERT(!it->first->isIdentifier());
    157             // Use a local variable here to sidestep an RVCT compiler bug.
    158             OwnPtr<StaticValueEntry> entry = adoptPtr(new StaticValueEntry(it->second->getProperty, it->second->setProperty, it->second->attributes));
    159             staticValues->add(StringImpl::create(it->first->characters(), it->first->length()), entry.release());
     151            staticValues->add(StringImpl::create(it->first->characters(), it->first->length()), adoptPtr(new StaticValueEntry(it->second->getProperty, it->second->setProperty, it->second->attributes)));
    160152        }
    161153    }
     
    166158        for (OpaqueJSClassStaticFunctionsTable::const_iterator it = jsClass->m_staticFunctions->begin(); it != end; ++it) {
    167159            ASSERT(!it->first->isIdentifier());
    168             // Use a local variable here to sidestep an RVCT compiler bug.
    169             OwnPtr<StaticFunctionEntry> entry = adoptPtr(new StaticFunctionEntry(it->second->callAsFunction, it->second->attributes));
    170             staticFunctions->add(StringImpl::create(it->first->characters(), it->first->length()), entry.release());
     160            staticFunctions->add(StringImpl::create(it->first->characters(), it->first->length()), adoptPtr(new StaticFunctionEntry(it->second->callAsFunction, it->second->attributes)));
    171161        }
    172162    }
Note: See TracChangeset for help on using the changeset viewer.