Changeset 37321 in webkit for trunk/JavaScriptCore/kjs/StructureID.cpp
- Timestamp:
- Oct 5, 2008, 5:58:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/StructureID.cpp
r37300 r37321 45 45 , m_nameInPrevious(0) 46 46 , m_transitionCount(0) 47 , m_cachedTransistionOffset(WTF::notFound) 47 48 { 48 49 ASSERT(m_prototype); … … 117 118 slotBase->allocatePropertyStorage(structureID->m_propertyMap.size(), existingTransition->m_propertyMap.size()); 118 119 119 size_t offset = existingTransition-> propertyMap().getOffset(propertyName);120 size_t offset = existingTransition->cachedTransistionOffset(); 120 121 ASSERT(offset != WTF::notFound); 121 122 propertyStorage[offset] = value; … … 139 140 transition->m_propertyMap = structureID->m_propertyMap; 140 141 141 transition->m_propertyMap.put(propertyName, value, attributes, false, slotBase, slot, propertyStorage); 142 size_t offset = transition->m_propertyMap.put(propertyName, value, attributes, false, slotBase, slot, propertyStorage); 143 transition->setCachedTransistionOffset(offset); 142 144 143 145 structureID->m_transitionTable.add(make_pair(propertyName.ustring().rep(), attributes), transition.get());
Note:
See TracChangeset
for help on using the changeset viewer.