Changeset 84121 in webkit
- Timestamp:
- Apr 17, 2011 10:15:20 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r84106 r84121 1 2011-04-17 Cameron Zwarich <zwarich@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 JSC no longer builds with Clang due to -Woverloaded-virtual warning 6 https://bugs.webkit.org/show_bug.cgi?id=58760 7 8 Rename Structure's specificValue overload of put to putSpecificValue to avoid 9 Clang's warning for overloading a virtual function. 10 11 * runtime/Structure.cpp: 12 (JSC::Structure::addPropertyTransition): 13 (JSC::Structure::addPropertyWithoutTransition): 14 (JSC::Structure::putSpecificValue): 15 * runtime/Structure.h: 16 1 17 2011-04-17 Patrick Gansterer <paroga@webkit.org> 2 18 -
trunk/Source/JavaScriptCore/runtime/Structure.cpp
r84052 r84121 337 337 Structure* transition = toCacheableDictionaryTransition(globalData, structure); 338 338 ASSERT(structure != transition); 339 offset = transition->put (globalData, propertyName, attributes, specificValue);339 offset = transition->putSpecificValue(globalData, propertyName, attributes, specificValue); 340 340 ASSERT(offset >= structure->m_anonymousSlotCount); 341 341 ASSERT(structure->m_anonymousSlotCount == transition->m_anonymousSlotCount); … … 365 365 } 366 366 367 offset = transition->put (globalData, propertyName, attributes, specificValue);367 offset = transition->putSpecificValue(globalData, propertyName, attributes, specificValue); 368 368 ASSERT(offset >= structure->m_anonymousSlotCount); 369 369 ASSERT(structure->m_anonymousSlotCount == transition->m_anonymousSlotCount); … … 589 589 m_isPinnedPropertyTable = true; 590 590 591 size_t offset = put (globalData, propertyName, attributes, specificValue);591 size_t offset = putSpecificValue(globalData, propertyName, attributes, specificValue); 592 592 ASSERT(offset >= m_anonymousSlotCount); 593 593 if (propertyStorageSize() > propertyStorageCapacity()) … … 684 684 } 685 685 686 size_t Structure::put (JSGlobalData& globalData, const Identifier& propertyName, unsigned attributes, JSCell* specificValue)686 size_t Structure::putSpecificValue(JSGlobalData& globalData, const Identifier& propertyName, unsigned attributes, JSCell* specificValue) 687 687 { 688 688 ASSERT(!propertyName.isNull()); -
trunk/Source/JavaScriptCore/runtime/Structure.h
r84052 r84121 177 177 static Structure* toDictionaryTransition(JSGlobalData&, Structure*, DictionaryKind); 178 178 179 size_t put (JSGlobalData&, const Identifier& propertyName, unsigned attributes, JSCell* specificValue);179 size_t putSpecificValue(JSGlobalData&, const Identifier& propertyName, unsigned attributes, JSCell* specificValue); 180 180 size_t remove(const Identifier& propertyName); 181 181
Note: See TracChangeset
for help on using the changeset viewer.