Changeset 37400 in webkit for trunk/JavaScriptCore/kjs/JSObject.cpp
- Timestamp:
- Oct 7, 2008, 4:49:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSObject.cpp
r37388 r37400 126 126 // Check if there are any setters or getters in the prototype chain 127 127 JSValue* prototype; 128 for (JSObject* obj = this; !obj->structureID()-> propertyMap().hasGetterSetterProperties(); obj = static_cast<JSObject*>(prototype)) {128 for (JSObject* obj = this; !obj->structureID()->hasGetterSetterProperties(); obj = static_cast<JSObject*>(prototype)) { 129 129 prototype = obj->prototype(); 130 130 if (prototype->isNull()) { … … 293 293 JSValue* object = getDirect(propertyName); 294 294 if (object && object->isGetterSetter()) { 295 ASSERT(m_structureID-> propertyMap().hasGetterSetterProperties());295 ASSERT(m_structureID->hasGetterSetterProperties()); 296 296 GetterSetter* getterSetter = static_cast<GetterSetter*>(object); 297 297 getterSetter->setGetter(getterFunction); … … 313 313 } 314 314 315 m_structureID-> propertyMap().setHasGetterSetterProperties(true);315 m_structureID->setHasGetterSetterProperties(true); 316 316 getterSetter->setGetter(getterFunction); 317 317 } … … 321 321 JSValue* object = getDirect(propertyName); 322 322 if (object && object->isGetterSetter()) { 323 ASSERT(m_structureID-> propertyMap().hasGetterSetterProperties());323 ASSERT(m_structureID->hasGetterSetterProperties()); 324 324 GetterSetter* getterSetter = static_cast<GetterSetter*>(object); 325 325 getterSetter->setSetter(setterFunction); … … 341 341 } 342 342 343 m_structureID-> propertyMap().setHasGetterSetterProperties(true);343 m_structureID->setHasGetterSetterProperties(true); 344 344 getterSetter->setSetter(setterFunction); 345 345 }
Note:
See TracChangeset
for help on using the changeset viewer.