Changeset 39593 in webkit for trunk/JavaScriptCore/runtime/Structure.h
- Timestamp:
- Jan 4, 2009, 4:18:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Structure.h
r39502 r39593 107 107 void setHasGetterSetterProperties(bool hasGetterSetterProperties) { m_hasGetterSetterProperties = hasGetterSetterProperties; } 108 108 109 bool isEmpty() const { return m_propertyTable ? !m_propertyTable->keyCount : m_offset == WTF::notFound; }109 bool isEmpty() const { return m_propertyTable ? !m_propertyTable->keyCount : m_offset == noOffset; } 110 110 111 111 private: … … 140 140 } 141 141 142 signed char transitionCount() const 143 { 144 // Since the number of transitions is always the same as m_offset, we keep the size of Structure down by not storing both. 145 return m_offset == noOffset ? 0 : m_offset + 1; 146 } 147 142 148 static const unsigned emptyEntryIndex = 0; 143 149 144 static const size_t s_maxTransitionLength = 64; 150 static const signed char s_maxTransitionLength = 64; 151 152 static const signed char noOffset = -1; 145 153 146 154 TypeInfo m_typeInfo; … … 152 160 RefPtr<UString::Rep> m_nameInPrevious; 153 161 154 size_t m_transitionCount;155 162 union { 156 163 Structure* singleTransition; … … 163 170 164 171 size_t m_propertyStorageCapacity; 165 si ze_tm_offset;172 signed char m_offset; 166 173 167 174 bool m_isDictionary : 1;
Note:
See TracChangeset
for help on using the changeset viewer.