Changeset 103157 in webkit for trunk/Source/JavaScriptCore/API
- Timestamp:
- Dec 17, 2011, 3:17:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSClassRef.cpp
r102065 r103157 79 79 while (staticValue->name) { 80 80 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))); 86 83 ++staticValue; 87 84 } … … 92 89 while (staticFunction->name) { 93 90 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))); 99 93 ++staticFunction; 100 94 } … … 155 149 for (OpaqueJSClassStaticValuesTable::const_iterator it = jsClass->m_staticValues->begin(); it != end; ++it) { 156 150 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))); 160 152 } 161 153 } … … 166 158 for (OpaqueJSClassStaticFunctionsTable::const_iterator it = jsClass->m_staticFunctions->begin(); it != end; ++it) { 167 159 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))); 171 161 } 172 162 }
Note:
See TracChangeset
for help on using the changeset viewer.