From 412eb94de4cae754130ae855236420ebd5c42482 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sun, 3 Nov 2013 15:23:05 +0100 Subject: Simplify & speed up function calling Get rid of the SimpleCallContext, instead simply use the CallContext data structure, but don't initialize the unused variables. Change-Id: I11b311986da180c62c815b516a2c55844156d0ab Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4errorobject_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/jsruntime/qv4errorobject_p.h') diff --git a/src/qml/jsruntime/qv4errorobject_p.h b/src/qml/jsruntime/qv4errorobject_p.h index b46bea5231..3f4cb8fc43 100644 --- a/src/qml/jsruntime/qv4errorobject_p.h +++ b/src/qml/jsruntime/qv4errorobject_p.h @@ -73,7 +73,7 @@ struct ErrorObject: Object { StackTrace stackTrace; String *stack; - static ReturnedValue method_get_stack(SimpleCallContext *ctx); + static ReturnedValue method_get_stack(CallContext *ctx); static void markObjects(Managed *that, ExecutionEngine *e); static void destroy(Managed *that) { static_cast(that)->~ErrorObject(); } }; @@ -179,7 +179,7 @@ struct ErrorPrototype: ErrorObject void init(ExecutionEngine *engine, ObjectRef ctor) { init(engine, ctor, this); } static void init(ExecutionEngine *engine, ObjectRef ctor, Object *obj); - static ReturnedValue method_toString(SimpleCallContext *ctx); + static ReturnedValue method_toString(CallContext *ctx); }; struct EvalErrorPrototype: ErrorObject -- cgit v1.2.3