Changeset 52978 in webkit for trunk/JavaScriptCore/API/JSClassRef.cpp
- Timestamp:
- Jan 8, 2010, 12:51:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSClassRef.cpp
r52762 r52978 62 62 m_staticValues = new OpaqueJSClassStaticValuesTable(); 63 63 while (staticValue->name) { 64 m_staticValues->add(UString::createFromUTF8(staticValue->name).rep()->ref(), 65 new StaticValueEntry(staticValue->getProperty, staticValue->setProperty, staticValue->attributes)); 64 // Use a local variable here to sidestep an RVCT compiler bug. 65 StaticValueEntry* entry = new StaticValueEntry(staticValue->getProperty, staticValue->setProperty, staticValue->attributes); 66 m_staticValues->add(UString::createFromUTF8(staticValue->name).rep()->ref(), entry); 66 67 ++staticValue; 67 68 } … … 71 72 m_staticFunctions = new OpaqueJSClassStaticFunctionsTable(); 72 73 while (staticFunction->name) { 73 m_staticFunctions->add(UString::createFromUTF8(staticFunction->name).rep()->ref(), 74 new StaticFunctionEntry(staticFunction->callAsFunction, staticFunction->attributes)); 74 // Use a local variable here to sidestep an RVCT compiler bug. 75 StaticFunctionEntry* entry = new StaticFunctionEntry(staticFunction->callAsFunction, staticFunction->attributes); 76 m_staticFunctions->add(UString::createFromUTF8(staticFunction->name).rep()->ref(), entry); 75 77 ++staticFunction; 76 78 } … … 149 151 for (OpaqueJSClassStaticValuesTable::const_iterator it = jsClass->m_staticValues->begin(); it != end; ++it) { 150 152 ASSERT(!it->first->isIdentifier()); 151 staticValues->add(UString::Rep::createCopying(it->first->data(), it->first->size()), 152 new StaticValueEntry(it->second->getProperty, it->second->setProperty, it->second->attributes)); 153 // Use a local variable here to sidestep an RVCT compiler bug. 154 StaticValueEntry* entry = new StaticValueEntry(it->second->getProperty, it->second->setProperty, it->second->attributes); 155 staticValues->add(UString::Rep::createCopying(it->first->data(), it->first->size()), entry); 156 153 157 } 154 158 … … 162 166 for (OpaqueJSClassStaticFunctionsTable::const_iterator it = jsClass->m_staticFunctions->begin(); it != end; ++it) { 163 167 ASSERT(!it->first->isIdentifier()); 164 staticFunctions->add(UString::Rep::createCopying(it->first->data(), it->first->size()), 165 new StaticFunctionEntry(it->second->callAsFunction, it->second->attributes)); 168 // Use a local variable here to sidestep an RVCT compiler bug. 169 StaticFunctionEntry* entry = new StaticFunctionEntry(it->second->callAsFunction, it->second->attributes); 170 staticFunctions->add(UString::Rep::createCopying(it->first->data(), it->first->size()), entry); 166 171 } 167 172
Note:
See TracChangeset
for help on using the changeset viewer.