Changeset 77151 in webkit for trunk/Source/JavaScriptCore/runtime/JSObject.cpp
- Timestamp:
- Jan 31, 2011, 12:07:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r77113 r77151 313 313 if (object && object.isGetterSetter()) { 314 314 ASSERT(m_structure->hasGetterSetterProperties()); 315 asGetterSetter(object)->setGetter( getterFunction);315 asGetterSetter(object)->setGetter(exec->globalData(), getterFunction); 316 316 return; 317 317 } … … 332 332 333 333 m_structure->setHasGetterSetterProperties(true); 334 getterSetter->setGetter( getterFunction);334 getterSetter->setGetter(exec->globalData(), getterFunction); 335 335 } 336 336 … … 340 340 if (object && object.isGetterSetter()) { 341 341 ASSERT(m_structure->hasGetterSetterProperties()); 342 asGetterSetter(object)->setSetter( setterFunction);342 asGetterSetter(object)->setSetter(exec->globalData(), setterFunction); 343 343 return; 344 344 } … … 359 359 360 360 m_structure->setHasGetterSetterProperties(true); 361 getterSetter->setSetter( setterFunction);361 getterSetter->setSetter(exec->globalData(), setterFunction); 362 362 } 363 363 … … 513 513 offset = m_structure->removePropertyWithoutTransition(propertyName); 514 514 if (offset != WTF::notFound) 515 put DirectOffset(offset, jsUndefined());515 putUndefinedAtDirectOffset(offset); 516 516 return; 517 517 } … … 520 520 setStructure(structure.release()); 521 521 if (offset != WTF::notFound) 522 put DirectOffset(offset, jsUndefined());522 putUndefinedAtDirectOffset(offset); 523 523 } 524 524 525 525 void JSObject::putDirectFunction(ExecState* exec, InternalFunction* function, unsigned attr) 526 526 { 527 putDirectFunction( Identifier(exec, function->name(exec)), function, attr);527 putDirectFunction(exec->globalData(), Identifier(exec, function->name(exec)), function, attr); 528 528 } 529 529 530 530 void JSObject::putDirectFunction(ExecState* exec, JSFunction* function, unsigned attr) 531 531 { 532 putDirectFunction( Identifier(exec, function->name(exec)), function, attr);532 putDirectFunction(exec->globalData(), Identifier(exec, function->name(exec)), function, attr); 533 533 } 534 534 535 535 void JSObject::putDirectFunctionWithoutTransition(ExecState* exec, InternalFunction* function, unsigned attr) 536 536 { 537 putDirectFunctionWithoutTransition( Identifier(exec, function->name(exec)), function, attr);537 putDirectFunctionWithoutTransition(exec->globalData(), Identifier(exec, function->name(exec)), function, attr); 538 538 } 539 539 540 540 void JSObject::putDirectFunctionWithoutTransition(ExecState* exec, JSFunction* function, unsigned attr) 541 541 { 542 putDirectFunctionWithoutTransition( Identifier(exec, function->name(exec)), function, attr);542 putDirectFunctionWithoutTransition(exec->globalData(), Identifier(exec, function->name(exec)), function, attr); 543 543 } 544 544 … … 596 596 if (oldDescriptor.getter()) { 597 597 attributes |= Getter; 598 accessor->setGetter( asObject(oldDescriptor.getter()));598 accessor->setGetter(exec->globalData(), asObject(oldDescriptor.getter())); 599 599 } 600 600 if (oldDescriptor.setter()) { 601 601 attributes |= Setter; 602 accessor->setSetter( asObject(oldDescriptor.setter()));602 accessor->setSetter(exec->globalData(), asObject(oldDescriptor.setter())); 603 603 } 604 604 target->putWithAttributes(exec, propertyName, accessor, attributes); … … 721 721 if (current.attributesEqual(descriptor)) { 722 722 if (descriptor.setter()) 723 getterSetter->setSetter( asObject(descriptor.setter()));723 getterSetter->setSetter(exec->globalData(), asObject(descriptor.setter())); 724 724 if (descriptor.getter()) 725 getterSetter->setGetter( asObject(descriptor.getter()));725 getterSetter->setGetter(exec->globalData(), asObject(descriptor.getter())); 726 726 return true; 727 727 } … … 732 732 if (descriptor.getter()) 733 733 attrs |= Getter; 734 putDirect( propertyName, getterSetter, attrs);734 putDirect(exec->globalData(), propertyName, getterSetter, attrs); 735 735 return true; 736 736 }
Note:
See TracChangeset
for help on using the changeset viewer.