Changeset 173307 in webkit


Ignore:
Timestamp:
Sep 4, 2014 8:36:52 PM (10 years ago)
Author:
mark.lam@apple.com
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):

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r173304 r173307  
     12014-09-04  Mark Lam  <mark.lam@apple.com>
     2
     3        Move PropertySlot's inline functions back to PropertySlot.h.
     4        <https://webkit.org/b/136547>
     5
     6        Reviewed by Filip Pizlo.
     7
     8        * runtime/JSObject.h:
     9        (JSC::PropertySlot::getValue): Deleted.
     10        * runtime/PropertySlot.h:
     11        (JSC::PropertySlot::getValue):
     12
    1132014-09-04  Filip Pizlo  <fpizlo@apple.com>
    214
  • 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
  • trunk/Source/JavaScriptCore/runtime/PropertySlot.h

    r173100 r173307  
    247247};
    248248
     249ALWAYS_INLINE JSValue PropertySlot::getValue(ExecState* exec, PropertyName propertyName) const
     250{
     251    if (m_propertyType == TypeValue)
     252        return JSValue::decode(m_data.value);
     253    if (m_propertyType == TypeGetter)
     254        return functionGetter(exec);
     255    return JSValue::decode(m_data.custom.getValue(exec, slotBase(), JSValue::encode(m_thisValue), propertyName));
     256}
     257
     258ALWAYS_INLINE JSValue PropertySlot::getValue(ExecState* exec, unsigned propertyName) const
     259{
     260    if (m_propertyType == TypeValue)
     261        return JSValue::decode(m_data.value);
     262    if (m_propertyType == TypeGetter)
     263        return functionGetter(exec);
     264    return JSValue::decode(m_data.custom.getValue(exec, slotBase(), JSValue::encode(m_thisValue), Identifier::from(exec, propertyName)));
     265}
     266
    249267} // namespace JSC
    250268
Note: See TracChangeset for help on using the changeset viewer.