Changeset 10258 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Aug 19, 2005, 9:01:56 AM (20 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r10222 r10258 1 // -*- c-basic-offset: 2 -*-2 1 /* 3 2 * This file is part of the KDE libraries … … 1676 1675 v = m_right->evaluate(exec); 1677 1676 } else { 1678 assert(slot.isSet());1679 1677 ValueImp *v1 = slot.getValue(exec, m_ident); 1680 1678 KJS_CHECKEXCEPTIONVALUE … … 1774 1772 } else { 1775 1773 PropertySlot slot; 1776 base->getPropertySlot(exec, propertyIndex, slot); 1777 ValueImp *v1 = slot.isSet() ? slot.getValue(exec, propertyIndex) : Undefined(); 1774 ValueImp *v1 = base->getPropertySlot(exec, propertyIndex, slot) ? slot.getValue(exec, propertyIndex) : Undefined(); 1778 1775 KJS_CHECKEXCEPTIONVALUE 1779 1776 ValueImp *v2 = m_right->evaluate(exec); … … 1794 1791 } else { 1795 1792 PropertySlot slot; 1796 base->getPropertySlot(exec, propertyName, slot); 1797 ValueImp *v1 = slot.isSet() ? slot.getValue(exec, propertyName) : Undefined(); 1793 ValueImp *v1 = base->getPropertySlot(exec, propertyName, slot) ? slot.getValue(exec, propertyName) : Undefined(); 1798 1794 KJS_CHECKEXCEPTIONVALUE 1799 1795 ValueImp *v2 = m_right->evaluate(exec); -
trunk/JavaScriptCore/kjs/property_slot.h
r10135 r10258 21 21 */ 22 22 23 #ifndef _KJS_PROPERTY_SLOT_H_24 #define _KJS_PROPERTY_SLOT_H_23 #ifndef KJS_PROPERTY_SLOT_H 24 #define KJS_PROPERTY_SLOT_H 25 25 26 26 #include "identifier.h" … … 38 38 public: 39 39 typedef ValueImp *(*GetValueFunc)(ExecState *, const Identifier&, const PropertySlot&); 40 41 bool isSet() const { return m_getValue != 0; }42 40 43 41 ValueImp *getValue(ExecState *exec, const Identifier& propertyName) const … … 64 62 void setStaticEntry(ObjectImp *slotBase, const HashEntry *staticEntry, GetValueFunc getValue) 65 63 { 64 assert(getValue); 66 65 m_slotBase = slotBase; 67 66 m_data.staticEntry = staticEntry; … … 71 70 void setCustom(ObjectImp *slotBase, GetValueFunc getValue) 72 71 { 72 assert(getValue); 73 73 m_slotBase = slotBase; 74 74 m_getValue = getValue; … … 77 77 void setCustomIndex(ObjectImp *slotBase, unsigned long index, GetValueFunc getValue) 78 78 { 79 assert(getValue); 79 80 m_slotBase = slotBase; 80 81 m_data.index = index;
Note:
See TracChangeset
for help on using the changeset viewer.