Changeset 173307 in webkit
- Timestamp:
- Sep 4, 2014 8:36:52 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r173304 r173307 1 2014-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 1 13 2014-09-04 Filip Pizlo <fpizlo@apple.com> 2 14 -
trunk/Source/JavaScriptCore/runtime/JSObject.h
r173100 r173307 1580 1580 JSC_NATIVE_INTRINSIC_FUNCTION(jsName, cppName, (attributes), (length), NoIntrinsic) 1581 1581 1582 ALWAYS_INLINE JSValue PropertySlot::getValue(ExecState* exec, PropertyName propertyName) const1583 {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) const1592 {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 1600 1582 } // namespace JSC 1601 1583 -
trunk/Source/JavaScriptCore/runtime/PropertySlot.h
r173100 r173307 247 247 }; 248 248 249 ALWAYS_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 258 ALWAYS_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 249 267 } // namespace JSC 250 268
Note: See TracChangeset
for help on using the changeset viewer.