Ignore:
Timestamp:
Aug 20, 2013, 10:12:33 AM (12 years ago)
Author:
[email protected]
Message:

https://bugs.webkit.org/show_bug.cgi?id=120067
Remove getPropertyDescriptor

Reviewed by Oliver Hunt.

This is used by lookupGetter/lookupSetter - this can easily bee replaced by getPropertySlot.
Since we'll be getting the GetterSetter from the slot in the setter case, rename isGetter() to isAccessor().

  • runtime/JSObject.cpp:
  • runtime/JSObject.h:
    • remove getPropertyDescriptor
  • runtime/ObjectPrototype.cpp:

(JSC::objectProtoFuncLookupGetter):
(JSC::objectProtoFuncLookupSetter):

  • replace call to getPropertyDescriptor with getPropertySlot
  • runtime/PropertyDescriptor.h:
  • runtime/PropertySlot.h:

(JSC::PropertySlot::isAccessor):
(JSC::PropertySlot::isCacheableGetter):
(JSC::PropertySlot::getterSetter):

  • rename isGetter() to isAccessor()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/PropertySlot.h

    r154313 r154337  
    7070    bool isCacheable() const { return m_offset != invalidOffset; }
    7171    bool isValue() const { return m_propertyType == TypeValue; }
    72     bool isGetter() const { return m_propertyType == TypeGetter; }
     72    bool isAccessor() const { return m_propertyType == TypeGetter; }
    7373    bool isCustom() const { return m_propertyType == TypeCustom; }
    7474    bool isCacheableValue() const { return isCacheable() && isValue(); }
    75     bool isCacheableGetter() const { return isCacheable() && isGetter(); }
     75    bool isCacheableGetter() const { return isCacheable() && isAccessor(); }
    7676    bool isCacheableCustom() const { return isCacheable() && isCustom(); }
    7777
     
    8686    GetterSetter* getterSetter() const
    8787    {
    88         ASSERT(isGetter());
     88        ASSERT(isAccessor());
    8989        return m_data.getter.getterSetter;
    9090    }
Note: See TracChangeset for help on using the changeset viewer.