Changeset 34334 in webkit for trunk/JavaScriptCore/kjs/object.cpp


Ignore:
Timestamp:
Jun 2, 2008, 11:26:54 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2008-06-02 Geoffrey Garen <[email protected]>

Reviewed by Alexey Proskuryakov.

Removed JSObject::call, since it just called JSObject::callAsFunction.

SunSpider reports no change.

JavaScriptGlue:

2008-06-02 Geoffrey Garen <[email protected]>

Reviewed by Alexey Proskuryakov.

Removed JSObject::call, since it just called JSObject::callAsFunction.

SunSpider reports no change.

WebCore:

2008-06-02 Geoffrey Garen <[email protected]>

Reviewed by Alexey Proskuryakov.


Removed JSObject::call, since it just called JSObject::callAsFunction.


SunSpider reports no change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/object.cpp

    r34309 r34334  
    3939namespace KJS {
    4040
    41 // ------------------------------ Object ---------------------------------------
    42 
    43 JSValue* JSObject::call(ExecState* exec, JSObject* thisObj, const List& args)
    44 {
    45     ASSERT(implementsCall());
    46     return callAsFunction(exec, thisObj, args);
    47 }
    48 
    4941// ------------------------------ JSObject ------------------------------------
    5042
     
    159151          args.append(value);
    160152       
    161           setterFunc->call(exec, this->toThisObject(exec), args);
     153          setterFunc->callAsFunction(exec, this->toThisObject(exec), args);
    162154          return;
    163155        } else {
     
    247239      if (callType != CallTypeNone) {
    248240          JSObject* thisObj = const_cast<JSObject*>(object);
    249           JSValue* def = o->call(exec, thisObj->toThisObject(exec), exec->emptyList());
     241          JSValue* def = o->callAsFunction(exec, thisObj->toThisObject(exec), exec->emptyList());
    250242          JSType defType = def->type();
    251243          ASSERT(defType != GetterSetterType);
Note: See TracChangeset for help on using the changeset viewer.