Ignore:
Timestamp:
Sep 4, 2014, 8:36:52 PM (11 years ago)
Author:
[email protected]
Message:

Move PropertySlot's inline functions back to PropertySlot.h.
<https://webkit.org/b/136547>

Reviewed by Filip Pizlo.

  • runtime/JSObject.h:

(JSC::PropertySlot::getValue): Deleted.

  • runtime/PropertySlot.h:

(JSC::PropertySlot::getValue):

File:
1 edited

Legend:

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

    r173100 r173307  
    15801580    JSC_NATIVE_INTRINSIC_FUNCTION(jsName, cppName, (attributes), (length), NoIntrinsic)
    15811581
    1582 ALWAYS_INLINE JSValue PropertySlot::getValue(ExecState* exec, PropertyName propertyName) const
    1583 {
    1584     if (m_propertyType == TypeValue)
    1585         return JSValue::decode(m_data.value);
    1586     if (m_propertyType == TypeGetter)
    1587         return functionGetter(exec);
    1588     return JSValue::decode(m_data.custom.getValue(exec, slotBase(), JSValue::encode(m_thisValue), propertyName));
    1589 }
    1590 
    1591 ALWAYS_INLINE JSValue PropertySlot::getValue(ExecState* exec, unsigned propertyName) const
    1592 {
    1593     if (m_propertyType == TypeValue)
    1594         return JSValue::decode(m_data.value);
    1595     if (m_propertyType == TypeGetter)
    1596         return functionGetter(exec);
    1597     return JSValue::decode(m_data.custom.getValue(exec, slotBase(), JSValue::encode(m_thisValue), Identifier::from(exec, propertyName)));
    1598 }
    1599 
    16001582} // namespace JSC
    16011583
Note: See TracChangeset for help on using the changeset viewer.