webengine/osswebengine/JavaScriptCore/kjs/function.cpp
changeset 1 7c90e6132015
parent 0 dd21522fd290
child 48 79859ed3eea9
equal deleted inserted replaced
0:dd21522fd290 1:7c90e6132015
    72 
    72 
    73 JSValue* FunctionImp::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
    73 JSValue* FunctionImp::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
    74 {
    74 {
    75   JSObject* globalObj = exec->dynamicInterpreter()->globalObject();
    75   JSObject* globalObj = exec->dynamicInterpreter()->globalObject();
    76 
    76 
       
    77 #if PLATFORM(SYMBIAN)
       
    78   exec->dynamicInterpreter()->resetStatementCount();
       
    79 #endif
    77   // enter a new execution context
    80   // enter a new execution context
    78   Context ctx(globalObj, exec->dynamicInterpreter(), thisObj, body.get(),
    81   Context ctx(globalObj, exec->dynamicInterpreter(), thisObj, body.get(),
    79                  codeType(), exec->context(), this, &args);
    82                  codeType(), exec->context(), this, &args);
    80   ExecState newExec(exec->dynamicInterpreter(), &ctx);
    83   ExecState newExec(exec->dynamicInterpreter(), &ctx);
    81   if (exec->hadException())
    84   if (exec->hadException())