Changeset 54843 in webkit for trunk/JavaScriptCore/API/JSClassRef.cpp
- Timestamp:
- Feb 16, 2010, 4:01:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSClassRef.cpp
r54554 r54843 83 83 // Use a local variable here to sidestep an RVCT compiler bug. 84 84 StaticValueEntry* entry = new StaticValueEntry(staticValue->getProperty, staticValue->setProperty, staticValue->attributes); 85 m_staticValues->add(valueName.rep()->ref(), entry); 85 UStringImpl* impl = valueName.rep(); 86 impl->ref(); 87 m_staticValues->add(impl, entry); 86 88 } 87 89 ++staticValue; … … 96 98 // Use a local variable here to sidestep an RVCT compiler bug. 97 99 StaticFunctionEntry* entry = new StaticFunctionEntry(staticFunction->callAsFunction, staticFunction->attributes); 98 m_staticFunctions->add(functionName.rep()->ref(), entry); 100 UStringImpl* impl = functionName.rep(); 101 impl->ref(); 102 m_staticFunctions->add(impl, entry); 99 103 } 100 104 ++staticFunction; … … 168 172 // Use a local variable here to sidestep an RVCT compiler bug. 169 173 StaticValueEntry* entry = new StaticValueEntry(it->second->getProperty, it->second->setProperty, it->second->attributes); 170 staticValues->add(UString::Rep::create(it->first->data(), it->first-> size()), entry);174 staticValues->add(UString::Rep::create(it->first->data(), it->first->length()), entry); 171 175 } 172 176 } else … … 180 184 // Use a local variable here to sidestep an RVCT compiler bug. 181 185 StaticFunctionEntry* entry = new StaticFunctionEntry(it->second->callAsFunction, it->second->attributes); 182 staticFunctions->add(UString::Rep::create(it->first->data(), it->first-> size()), entry);186 staticFunctions->add(UString::Rep::create(it->first->data(), it->first->length()), entry); 183 187 } 184 188
Note:
See TracChangeset
for help on using the changeset viewer.