Changeset 47601 in webkit for trunk/JavaScriptCore/runtime/JSObject.h
- Timestamp:
- Aug 20, 2009, 3:36:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSObject.h
r47288 r47601 468 468 } 469 469 470 // If we have a specific function, we may have got to this point if there is 471 // already a transition with the correct property name and attributes, but 472 // specialized to a different function. In this case we just want to give up 473 // and despecialize the transition. 474 // In this case we clear the value of specificFunction which will result 475 // in us adding a non-specific transition, and any subsequent lookup in 476 // Structure::addPropertyTransitionToExistingStructure will just use that. 477 if (specificFunction && m_structure->hasTransition(propertyName, attributes)) 478 specificFunction = 0; 479 470 480 RefPtr<Structure> structure = Structure::addPropertyTransition(m_structure, propertyName, attributes, specificFunction, offset); 481 471 482 if (currentCapacity != structure->propertyStorageCapacity()) 472 483 allocatePropertyStorage(currentCapacity, structure->propertyStorageCapacity());
Note:
See TracChangeset
for help on using the changeset viewer.