Ignore:
Timestamp:
Jul 12, 2006, 3:01:06 AM (19 years ago)
Author:
ggaren
Message:

Reviewed by Maciej.


  • Removed context and exception parameters from JSObjectGetPropertyEnumerator, removing the spurious use of ExecState inside JavaScriptCore that made us think this was necessary in the first place.

(StringInstance::getPropertyList): Use getString instead of toString because
we know we're dealing with a string -- we put it there in the first place.
While we're at it, store the string's size instead of retrieving it each time
through the loop, to avoid the unnecessary killing of puppies.

  • kjs/string_object.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSCallbackObject.cpp

    r15384 r15385  
    288288}
    289289
    290 void JSCallbackObject::getPropertyList(ExecState* exec, ReferenceList& propertyList, bool recursive)
    291 {
    292     JSContextRef context = toRef(exec);
     290void JSCallbackObject::getPropertyList(ReferenceList& propertyList, bool recursive)
     291{
    293292    JSObjectRef thisRef = toRef(this);
    294293
    295294    for (JSClassRef jsClass = m_class; jsClass; jsClass = jsClass->parent) {
    296295        if (JSObjectAddPropertiesToListCallback addPropertiesToList = jsClass->callbacks.addPropertiesToList)
    297             addPropertiesToList(context, thisRef, toRef(&propertyList), toRef(exec->exceptionSlot()));
     296            addPropertiesToList(thisRef, toRef(&propertyList));
    298297
    299298        if (__JSClass::StaticValuesTable* staticValues = jsClass->staticValues) {
     
    320319    }
    321320
    322     JSObject::getPropertyList(exec, propertyList, recursive);
     321    JSObject::getPropertyList(propertyList, recursive);
    323322}
    324323
Note: See TracChangeset for help on using the changeset viewer.