Changeset 37645 in webkit for trunk/JavaScriptCore/kjs/JSObject.h
- Timestamp:
- Oct 16, 2008, 7:57:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSObject.h
r37497 r37645 158 158 void putDirect(const Identifier& propertyName, JSValue* value, unsigned attr, bool checkReadOnly, PutPropertySlot& slot); 159 159 void putDirectFunction(ExecState* exec, InternalFunction* function, unsigned attr = 0); 160 void putDirectWithoutTransition(const Identifier& propertyName, JSValue* value, unsigned attr); 161 void putDirectFunctionWithoutTransition(ExecState* exec, InternalFunction* function, unsigned attr); 160 162 161 163 // Fast access to known property offsets. … … 414 416 } 415 417 418 inline void JSObject::putDirectWithoutTransition(const Identifier& propertyName, JSValue* value, unsigned attributes) 419 { 420 size_t currentCapacity = m_structureID->propertyStorageCapacity(); 421 size_t offset = m_structureID->addPropertyWithoutTransition(propertyName, attributes); 422 if (currentCapacity != m_structureID->propertyStorageCapacity()) 423 allocatePropertyStorage(currentCapacity, m_structureID->propertyStorageCapacity()); 424 m_propertyStorage[offset] = value; 425 } 426 416 427 inline void JSObject::transitionTo(StructureID* newStructureID) 417 428 {
Note:
See TracChangeset
for help on using the changeset viewer.