Changeset 37989 in webkit for trunk/JavaScriptCore/runtime/StructureID.h
- Timestamp:
- Oct 29, 2008, 7:44:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/StructureID.h
r37985 r37989 97 97 StructureIDChain* cachedPrototypeChain() const { return m_cachedPrototypeChain.get(); } 98 98 99 const PropertyMap& propertyMap() const { return m_propertyMap; }100 PropertyMap& propertyMap() { return m_propertyMap; }101 102 99 void setCachedTransistionOffset(size_t offset) { m_cachedTransistionOffset = offset; } 103 100 size_t cachedTransistionOffset() const { return m_cachedTransistionOffset; } … … 105 102 void growPropertyStorageCapacity(); 106 103 size_t propertyStorageCapacity() const { return m_propertyStorageCapacity; } 104 size_t propertyStorageSize() const { return m_propertyMap.storageSize(); } 105 106 size_t get(const Identifier& propertyName) const { return m_propertyMap.get(propertyName); } 107 size_t get(const Identifier& propertyName, unsigned& attributes) const { return m_propertyMap.get(propertyName, attributes); } 108 size_t put(const Identifier& propertyName, unsigned attributes) { return m_propertyMap.put(propertyName, attributes); } 109 size_t remove(const Identifier& propertyName) { return m_propertyMap.remove(propertyName); } 107 110 108 111 void getEnumerablePropertyNames(ExecState*, PropertyNameArray&, JSObject*); … … 112 115 void setHasGetterSetterProperties(bool hasGetterSetterProperties) { m_hasGetterSetterProperties = hasGetterSetterProperties; } 113 116 117 bool isEmpty() const { return m_propertyMap.isEmpty(); } 118 114 119 private: 115 120 StructureID(JSValue* prototype, const TypeInfo&); 116 121 117 122 static const size_t s_maxTransitionLength = 64; 118 123
Note:
See TracChangeset
for help on using the changeset viewer.