Changeset 81051 in webkit for trunk/Source/JavaScriptCore/API/JSClassRef.cpp
- Timestamp:
- Mar 14, 2011, 1:40:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSClassRef.cpp
r78634 r81051 85 85 StaticValueEntry* entry = new StaticValueEntry(staticValue->getProperty, staticValue->setProperty, staticValue->attributes); 86 86 StringImpl* impl = valueName.impl(); 87 impl->ref(); 88 m_staticValues->add(impl, entry); 87 StaticValueEntry* existingEntry = m_staticValues->get(impl); 88 m_staticValues->set(impl, entry); 89 delete existingEntry; 89 90 } 90 91 ++staticValue; … … 100 101 StaticFunctionEntry* entry = new StaticFunctionEntry(staticFunction->callAsFunction, staticFunction->attributes); 101 102 StringImpl* impl = functionName.impl(); 102 impl->ref(); 103 m_staticFunctions->add(impl, entry); 103 StaticFunctionEntry* existingEntry = m_staticFunctions->get(impl); 104 m_staticFunctions->set(impl, entry); 105 delete existingEntry; 104 106 } 105 107 ++staticFunction;
Note:
See TracChangeset
for help on using the changeset viewer.