Changeset 38407 in webkit for trunk/JavaScriptCore/runtime/JSObject.h
- Timestamp:
- Nov 14, 2008, 3:36:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSObject.h
r38016 r38407 410 410 } 411 411 412 size_t offset; 413 size_t currentCapacity = m_structureID->propertyStorageCapacity(); 414 if (RefPtr<StructureID> structureID = StructureID::addPropertyTransitionToExistingStructure(m_structureID, propertyName, attributes, offset)) { 415 if (currentCapacity != structureID->propertyStorageCapacity()) 416 allocatePropertyStorage(currentCapacity, structureID->propertyStorageCapacity()); 417 418 ASSERT(offset < structureID->propertyStorageCapacity()); 419 m_propertyStorage[offset] = value; 420 slot.setNewProperty(this, offset); 421 slot.setWasTransition(true); 422 setStructureID(structureID.release()); 423 return; 424 } 425 412 426 unsigned currentAttributes; 413 size_toffset = m_structureID->get(propertyName, currentAttributes);427 offset = m_structureID->get(propertyName, currentAttributes); 414 428 if (offset != WTF::notFound) { 415 429 if (checkReadOnly && currentAttributes & ReadOnly) … … 420 434 } 421 435 422 size_t currentCapacity = m_structureID->propertyStorageCapacity();423 436 RefPtr<StructureID> structureID = StructureID::addPropertyTransition(m_structureID, propertyName, attributes, offset); 424 437 if (currentCapacity != structureID->propertyStorageCapacity())
Note:
See TracChangeset
for help on using the changeset viewer.