Changeset 84121 in webkit


Ignore:
Timestamp:
Apr 17, 2011 10:15:20 PM (13 years ago)
Author:
cwzwarich@webkit.org
Message:

Reviewed by Dan Bernstein.

JSC no longer builds with Clang due to -Woverloaded-virtual warning
https://bugs.webkit.org/show_bug.cgi?id=58760

Rename Structure's specificValue overload of put to putSpecificValue to avoid
Clang's warning for overloading a virtual function.

  • runtime/Structure.cpp:

(JSC::Structure::addPropertyTransition):
(JSC::Structure::addPropertyWithoutTransition):
(JSC::Structure::putSpecificValue):

  • runtime/Structure.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r84106 r84121  
     12011-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
    1172011-04-17  Patrick Gansterer  <paroga@webkit.org>
    218
  • trunk/Source/JavaScriptCore/runtime/Structure.cpp

    r84052 r84121  
    337337        Structure* transition = toCacheableDictionaryTransition(globalData, structure);
    338338        ASSERT(structure != transition);
    339         offset = transition->put(globalData, propertyName, attributes, specificValue);
     339        offset = transition->putSpecificValue(globalData, propertyName, attributes, specificValue);
    340340        ASSERT(offset >= structure->m_anonymousSlotCount);
    341341        ASSERT(structure->m_anonymousSlotCount == transition->m_anonymousSlotCount);
     
    365365    }
    366366
    367     offset = transition->put(globalData, propertyName, attributes, specificValue);
     367    offset = transition->putSpecificValue(globalData, propertyName, attributes, specificValue);
    368368    ASSERT(offset >= structure->m_anonymousSlotCount);
    369369    ASSERT(structure->m_anonymousSlotCount == transition->m_anonymousSlotCount);
     
    589589    m_isPinnedPropertyTable = true;
    590590
    591     size_t offset = put(globalData, propertyName, attributes, specificValue);
     591    size_t offset = putSpecificValue(globalData, propertyName, attributes, specificValue);
    592592    ASSERT(offset >= m_anonymousSlotCount);
    593593    if (propertyStorageSize() > propertyStorageCapacity())
     
    684684}
    685685
    686 size_t Structure::put(JSGlobalData& globalData, const Identifier& propertyName, unsigned attributes, JSCell* specificValue)
     686size_t Structure::putSpecificValue(JSGlobalData& globalData, const Identifier& propertyName, unsigned attributes, JSCell* specificValue)
    687687{
    688688    ASSERT(!propertyName.isNull());
  • trunk/Source/JavaScriptCore/runtime/Structure.h

    r84052 r84121  
    177177        static Structure* toDictionaryTransition(JSGlobalData&, Structure*, DictionaryKind);
    178178
    179         size_t put(JSGlobalData&, const Identifier& propertyName, unsigned attributes, JSCell* specificValue);
     179        size_t putSpecificValue(JSGlobalData&, const Identifier& propertyName, unsigned attributes, JSCell* specificValue);
    180180        size_t remove(const Identifier& propertyName);
    181181
Note: See TracChangeset for help on using the changeset viewer.