Changeset 154199 in webkit for trunk/Source/JavaScriptCore/runtime/Structure.cpp
- Timestamp:
- Aug 16, 2013, 12:15:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Structure.cpp
r154038 r154199 381 381 } 382 382 383 Structure* Structure::addPropertyTransition(VM& vm, Structure* structure, PropertyName propertyName, unsigned attributes, JSCell* specificValue, PropertyOffset& offset )383 Structure* Structure::addPropertyTransition(VM& vm, Structure* structure, PropertyName propertyName, unsigned attributes, JSCell* specificValue, PropertyOffset& offset, PutPropertySlot::Context context) 384 384 { 385 385 // If we have a specific function, we may have got to this point if there is … … 400 400 specificValue = 0; 401 401 402 if (structure->transitionCount() > s_maxTransitionLength) { 402 int maxTransitionLength; 403 if (context == PutPropertySlot::PutById) 404 maxTransitionLength = s_maxTransitionLengthForNonEvalPutById; 405 else 406 maxTransitionLength = s_maxTransitionLength; 407 if (structure->transitionCount() > maxTransitionLength) { 403 408 Structure* transition = toCacheableDictionaryTransition(vm, structure); 404 409 ASSERT(structure != transition);
Note:
See TracChangeset
for help on using the changeset viewer.