aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4/qv4engine.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-04-05 21:15:58 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-04-06 23:34:21 +0200
commitf2971f053f2a24677fc2bcaf907435f4e949a54b (patch)
tree0d02f198aa6af9a64aec599b74996d651086f878 /src/v4/qv4engine.cpp
parent13650a052f910dd42e9b7936f055e15588bdc3a9 (diff)
Introduce a SimpleCallContext for simple functions
Use it for most builtin methods. Gives ~10% speed improvement on the V8 benchmark. Change-Id: I0039f102e561c0adbe1a9b070150ad32142a33e8 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/v4/qv4engine.cpp')
-rw-r--r--src/v4/qv4engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/v4/qv4engine.cpp b/src/v4/qv4engine.cpp
index fb78d679a0..d1226ba29d 100644
--- a/src/v4/qv4engine.cpp
+++ b/src/v4/qv4engine.cpp
@@ -385,7 +385,7 @@ Function *ExecutionEngine::newFunction(const QString &name)
return f;
}
-FunctionObject *ExecutionEngine::newBuiltinFunction(ExecutionContext *scope, String *name, Value (*code)(CallContext *))
+FunctionObject *ExecutionEngine::newBuiltinFunction(ExecutionContext *scope, String *name, Value (*code)(SimpleCallContext *))
{
BuiltinFunctionOld *f = new (memoryManager) BuiltinFunctionOld(scope, name, code);
return f;