Changeset 50254 in webkit for trunk/JavaScriptCore/runtime/JSPropertyNameIterator.cpp
- Timestamp:
- Oct 28, 2009, 6:25:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSPropertyNameIterator.cpp
r49734 r50254 44 44 PropertyNameArray propertyNames(exec); 45 45 o->getPropertyNames(exec, propertyNames); 46 JSPropertyNameIterator* jsPropertyNameIterator = new (exec) JSPropertyNameIterator(exec, propertyNames.data()); 46 size_t numCacheableSlots = 0; 47 if (!o->structure()->hasNonEnumerableProperties() && !o->structure()->hasAnonymousSlots() && 48 !o->structure()->isUncacheableDictionary() && !o->structure()->typeInfo().overridesGetPropertyNames()) 49 numCacheableSlots = o->structure()->propertyStorageSize(); 50 51 JSPropertyNameIterator* jsPropertyNameIterator = new (exec) JSPropertyNameIterator(exec, propertyNames.data(), numCacheableSlots); 47 52 48 53 if (o->structure()->isDictionary())
Note:
See TracChangeset
for help on using the changeset viewer.