Ejemplo n.º 1
0
void BotThread::BotStep::call()
{
    if(this->Type == BotThread::BotStep::NATIVE)
        nativeFunction();
    else
        scriptFunction.call();

    untilNextCall = frecuency;
}
Ejemplo n.º 2
0
CallType AJFunction::getCallData(CallData& callData)
{
    if (isHostFunction()) {
        callData.native.function = nativeFunction();
        return CallTypeHost;
    }
    callData.js.functionExecutable = jsExecutable();
    callData.js.scopeChain = scopeChain().node();
    return CallTypeJS;
}
Ejemplo n.º 3
0
CallType JSFunction::getCallData(CallData& callData)
{
#if ENABLE(JIT)
    if (isHostFunction()) {
        callData.native.function = nativeFunction();
        return CallTypeHost;
    }
#endif
    callData.js.functionExecutable = jsExecutable();
    callData.js.scopeChain = scope().node();
    return CallTypeJS;
}