Changeset 36429 in webkit for trunk/JavaScriptCore/kjs/StructureID.cpp
- Timestamp:
- Sep 15, 2008, 12:27:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/StructureID.cpp
r36401 r36429 29 29 #include "identifier.h" 30 30 #include "JSObject.h" 31 #include "PropertyNameArray.h"; 31 32 #include <wtf/RefPtr.h> 32 33 … … 35 36 namespace JSC { 36 37 37 38 StructureID::StructureID(JSValue* prototype, JSType type) 38 39 : m_isDictionary(false) 39 40 , m_type(type) … … 46 47 ASSERT(m_prototype); 47 48 ASSERT(m_prototype->isObject() || m_prototype->isNull()); 49 } 50 51 void StructureID::getEnumerablePropertyNames(PropertyNameArray& propertyNames) const 52 { 53 if (m_cachedPropertyNameArray.isEmpty()) 54 m_propertyMap.getEnumerablePropertyNames(m_cachedPropertyNameArray); 55 56 if (!propertyNames.size()) { 57 for (size_t i = 0; i < m_cachedPropertyNameArray.size(); ++i) 58 propertyNames.addKnownUnique(m_cachedPropertyNameArray[i]); 59 } else { 60 for (size_t i = 0; i < m_cachedPropertyNameArray.size(); ++i) 61 propertyNames.add(m_cachedPropertyNameArray[i]); 62 } 48 63 } 49 64
Note:
See TracChangeset
for help on using the changeset viewer.