Don't use the slow call() method for Date()
authorLars Knoll <lars.knoll@digia.com>
Thu, 14 Feb 2013 10:02:57 +0000 (11:02 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Thu, 14 Feb 2013 11:03:52 +0000 (12:03 +0100)
Change-Id: Ifc29ef18a173a210a8831b87ba3f1adcbe9911d6
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/v4/qv4dateobject.cpp
src/v4/qv4dateobject.h

index 77157d2..de614cc 100644 (file)
@@ -702,7 +702,7 @@ Value DateCtor::construct(ExecutionContext *ctx, Value *args, int argc)
     return Value::fromObject(d);
 }
 
-Value DateCtor::call(ExecutionContext *ctx)
+Value DateCtor::call(ExecutionContext *ctx, Value, Value *, int)
 {
     double t = currentTime();
     return Value::fromString(ctx, ToString(t));
index 56f96aa..b4916ec 100644 (file)
@@ -60,7 +60,7 @@ struct DateCtor: FunctionObject
     DateCtor(ExecutionContext *scope);
 
     virtual Value construct(ExecutionContext *ctx, Value *args, int argc);
-    virtual Value call(ExecutionContext *ctx);
+    virtual Value call(ExecutionContext *ctx, Value, Value *, int);
 };
 
 struct DatePrototype: DateObject