Changeset 54696 in webkit for trunk/JavaScriptCore/runtime/JSPropertyNameIterator.h
- Timestamp:
- Feb 11, 2010, 6:51:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSPropertyNameIterator.h
r54022 r54696 50 50 return Structure::create(prototype, TypeInfo(CompoundType, OverridesMarkChildren), AnonymousSlotCount); 51 51 } 52 53 virtual ~JSPropertyNameIterator(); 52 54 53 55 virtual bool isPropertyNameIterator() const { return true; } … … 82 84 }; 83 85 84 inline JSPropertyNameIterator::JSPropertyNameIterator(ExecState* exec, PropertyNameArrayData* propertyNameArrayData, size_t numCacheableSlots) 85 : JSCell(exec->globalData().propertyNameIteratorStructure.get()) 86 , m_cachedStructure(0) 87 , m_numCacheableSlots(numCacheableSlots) 88 , m_jsStringsSize(propertyNameArrayData->propertyNameVector().size()) 89 , m_jsStrings(new JSValue[m_jsStringsSize]) 90 { 91 PropertyNameArrayData::PropertyNameVector& propertyNameVector = propertyNameArrayData->propertyNameVector(); 92 for (size_t i = 0; i < m_jsStringsSize; ++i) 93 m_jsStrings[i] = jsOwnedString(exec, propertyNameVector[i].ustring()); 94 } 86 inline void Structure::setEnumerationCache(JSPropertyNameIterator* enumerationCache) 87 { 88 ASSERT(!isDictionary()); 89 m_enumerationCache = enumerationCache; 90 } 95 91 96 inline void Structure::setEnumerationCache(JSPropertyNameIterator* enumerationCache) 97 { 98 ASSERT(!isDictionary()); 99 m_enumerationCache = enumerationCache; 100 } 92 inline void Structure::clearEnumerationCache(JSPropertyNameIterator* enumerationCache) 93 { 94 m_enumerationCache.clear(enumerationCache); 95 } 96 97 inline JSPropertyNameIterator* Structure::enumerationCache() 98 { 99 return m_enumerationCache.get(); 100 } 101 101 102 102 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.