Changeset 14951 in webkit for trunk/JavaScriptCore/kjs/object.cpp
- Timestamp:
- Jun 21, 2006, 2:09:19 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.cpp
r13821 r14951 237 237 obj = this; 238 238 while (true) { 239 intattributes;239 unsigned attributes; 240 240 if (JSValue *gs = obj->_prop.get(propertyName, attributes)) { 241 241 if (attributes & GetterSetter) { … … 278 278 bool JSObject::canPut(ExecState *, const Identifier &propertyName) const 279 279 { 280 intattributes;280 unsigned attributes; 281 281 282 282 // Don't look in the prototype here. We can always put an override … … 305 305 bool JSObject::deleteProperty(ExecState */*exec*/, const Identifier &propertyName) 306 306 { 307 intattributes;307 unsigned attributes; 308 308 JSValue *v = _prop.get(propertyName, attributes); 309 309 if (v) { … … 453 453 bool JSObject::propertyIsEnumerable(ExecState*, const Identifier& propertyName) const 454 454 { 455 intattributes;455 unsigned attributes; 456 456 457 457 if (!getPropertyAttributes(propertyName, attributes)) … … 461 461 } 462 462 463 bool JSObject::getPropertyAttributes(const Identifier& propertyName, int& attributes) const463 bool JSObject::getPropertyAttributes(const Identifier& propertyName, unsigned& attributes) const 464 464 { 465 465 if (_prop.get(propertyName, attributes)) … … 476 476 } 477 477 478 ReferenceList JSObject::propList(ExecState *exec, bool recursive) 479 { 480 ReferenceList list; 481 if (_proto->isObject() && recursive) 482 list = static_cast<JSObject*>(_proto)->propList(exec,recursive); 483 484 _prop.addEnumerablesToReferenceList(list, this); 478 void JSObject::getPropertyList(ExecState *exec, ReferenceList& propertyList, bool recursive) 479 { 480 _prop.addEnumerablesToReferenceList(propertyList, this); 485 481 486 482 // Add properties from the static hashtable of properties … … 492 488 for (int i = 0; i < size; ++i, ++e) { 493 489 if ( e->s && !(e->attr & DontEnum) ) 494 list.append(Reference(this, e->s)); /// ######### check for duplicates with the propertymap490 propertyList.append(Reference(this, e->s)); /// ######### check for duplicates with the propertymap 495 491 } 496 492 } 497 493 info = info->parentClass; 498 494 } 499 500 return list;495 if (_proto->isObject() && recursive) 496 static_cast<JSObject*>(_proto)->getPropertyList(exec, propertyList, recursive); 501 497 } 502 498
Note:
See TracChangeset
for help on using the changeset viewer.