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/array_object.cpp

    r34316 r34334  
    164164        UString str;
    165165        if (conversionFunction->isObject() && static_cast<JSObject*>(conversionFunction)->implementsCall())
    166             str = static_cast<JSObject*>(conversionFunction)->call(exec, o, exec->emptyList())->toString(exec);
     166            str = static_cast<JSObject*>(conversionFunction)->callAsFunction(exec, o, exec->emptyList())->toString(exec);
    167167        else
    168168            str = element->toString(exec);
     
    410410                l.append(jObj);
    411411                l.append(minObj);
    412                 compareResult = sortFunction->call(exec, exec->globalThisValue(), l)->toNumber(exec);
     412                compareResult = sortFunction->callAsFunction(exec, exec->globalThisValue(), l)->toNumber(exec);
    413413            } else
    414414                compareResult = (jObj->toString(exec) < minObj->toString(exec)) ? -1 : 1;
     
    527527        eachArguments.append(thisObj);
    528528
    529         JSValue* result = eachFunction->call(exec, applyThis, eachArguments);
     529        JSValue* result = eachFunction->callAsFunction(exec, applyThis, eachArguments);
    530530
    531531        if (result->toBoolean(exec))
     
    562562        eachArguments.append(thisObj);
    563563
    564         JSValue* result = eachFunction->call(exec, applyThis, eachArguments);
     564        JSValue* result = eachFunction->callAsFunction(exec, applyThis, eachArguments);
    565565        resultArray->put(exec, k, result);
    566566    }
     
    598598        eachArguments.append(thisObj);
    599599
    600         bool predicateResult = eachFunction->call(exec, applyThis, eachArguments)->toBoolean(exec);
     600        bool predicateResult = eachFunction->callAsFunction(exec, applyThis, eachArguments)->toBoolean(exec);
    601601
    602602        if (!predicateResult) {
     
    629629        eachArguments.append(thisObj);
    630630
    631         eachFunction->call(exec, applyThis, eachArguments);
     631        eachFunction->callAsFunction(exec, applyThis, eachArguments);
    632632    }
    633633    return jsUndefined();
     
    656656        eachArguments.append(thisObj);
    657657
    658         bool predicateResult = eachFunction->call(exec, applyThis, eachArguments)->toBoolean(exec);
     658        bool predicateResult = eachFunction->callAsFunction(exec, applyThis, eachArguments)->toBoolean(exec);
    659659
    660660        if (predicateResult) {
Note: See TracChangeset for help on using the changeset viewer.