Changeset 77151 in webkit for trunk/Source/JavaScriptCore/runtime/Structure.cpp
- Timestamp:
- Jan 31, 2011, 12:07:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Structure.cpp
r77113 r77151 243 243 244 244 ASSERT(m_prototype); 245 ASSERT(m_prototype .isObject() || m_prototype.isNull());245 ASSERT(m_prototype->isObject() || m_prototype->isNull()); 246 246 247 247 #ifndef NDEBUG … … 477 477 } 478 478 479 RefPtr<Structure> transition = create(structure->m_prototype , structure->typeInfo(), structure->anonymousSlotCount());479 RefPtr<Structure> transition = create(structure->m_prototype.get(), structure->typeInfo(), structure->anonymousSlotCount()); 480 480 481 481 transition->m_cachedPrototypeChain = structure->m_cachedPrototypeChain; … … 596 596 ASSERT(!structure->isUncacheableDictionary()); 597 597 598 RefPtr<Structure> transition = create(structure->m_prototype , structure->typeInfo(), structure->anonymousSlotCount());598 RefPtr<Structure> transition = create(structure->m_prototype.get(), structure->typeInfo(), structure->anonymousSlotCount()); 599 599 transition->m_dictionaryKind = kind; 600 600 transition->m_propertyStorageCapacity = structure->m_propertyStorageCapacity; … … 621 621 } 622 622 623 PassRefPtr<Structure> Structure::flattenDictionaryStructure(JS Object* object)623 PassRefPtr<Structure> Structure::flattenDictionaryStructure(JSGlobalData& globalData, JSObject* object) 624 624 { 625 625 ASSERT(isDictionary()); … … 652 652 // Copy the original property values into their final locations 653 653 for (unsigned i = 0; i < propertyCount; i++) 654 object->putDirectOffset( anonymousSlotCount + i, values[i]);654 object->putDirectOffset(globalData, anonymousSlotCount + i, values[i]); 655 655 656 656 if (m_propertyTable->deletedOffsets) {
Note:
See TracChangeset
for help on using the changeset viewer.