Changeset 54696 in webkit for trunk/JavaScriptCore/runtime/JSPropertyNameIterator.cpp
- Timestamp:
- Feb 11, 2010, 6:51:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSPropertyNameIterator.cpp
r51801 r54696 35 35 36 36 ASSERT_CLASS_FITS_IN_CELL(JSPropertyNameIterator); 37 38 inline JSPropertyNameIterator::JSPropertyNameIterator(ExecState* exec, PropertyNameArrayData* propertyNameArrayData, size_t numCacheableSlots) 39 : JSCell(exec->globalData().propertyNameIteratorStructure.get()) 40 , m_cachedStructure(0) 41 , m_numCacheableSlots(numCacheableSlots) 42 , m_jsStringsSize(propertyNameArrayData->propertyNameVector().size()) 43 , m_jsStrings(new JSValue[m_jsStringsSize]) 44 { 45 PropertyNameArrayData::PropertyNameVector& propertyNameVector = propertyNameArrayData->propertyNameVector(); 46 for (size_t i = 0; i < m_jsStringsSize; ++i) 47 m_jsStrings[i] = jsOwnedString(exec, propertyNameVector[i].ustring()); 48 } 49 50 JSPropertyNameIterator::~JSPropertyNameIterator() 51 { 52 if (m_cachedStructure) 53 m_cachedStructure->clearEnumerationCache(this); 54 } 37 55 38 56 JSPropertyNameIterator* JSPropertyNameIterator::create(ExecState* exec, JSObject* o)
Note:
See TracChangeset
for help on using the changeset viewer.