Changeset 44757 in webkit for trunk/JavaScriptCore/runtime/JSObject.h
- Timestamp:
- Jun 17, 2009, 2:11:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSObject.h
r44445 r44757 204 204 } 205 205 206 protected:207 bool getOwnPropertySlotForWrite(ExecState*, const Identifier&, PropertySlot&, bool& slotIsWriteable);208 209 206 private: 210 207 ConstPropertyStorage propertyStorage() const { return (isUsingInlineStorage() ? m_inlineStorage : m_externalStorage); } … … 323 320 if (propertyName == exec->propertyNames().underscoreProto) { 324 321 slot.setValue(prototype()); 325 return true;326 }327 328 return false;329 }330 331 ALWAYS_INLINE bool JSObject::getOwnPropertySlotForWrite(ExecState* exec, const Identifier& propertyName, PropertySlot& slot, bool& slotIsWriteable)332 {333 unsigned attributes;334 if (JSValue* location = getDirectLocation(propertyName, attributes)) {335 if (m_structure->hasGetterSetterProperties() && location[0].isGetterSetter()) {336 slotIsWriteable = false;337 fillGetterPropertySlot(slot, location);338 } else {339 slotIsWriteable = !(attributes & ReadOnly);340 slot.setValueSlot(this, location, offsetForLocation(location));341 }342 return true;343 }344 345 // non-standard Netscape extension346 if (propertyName == exec->propertyNames().underscoreProto) {347 slot.setValue(prototype());348 slotIsWriteable = false;349 322 return true; 350 323 }
Note:
See TracChangeset
for help on using the changeset viewer.