diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-08-21 14:52:15 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-02 17:27:36 +0200 |
commit | 29f946cdad013d759aad05cbd22f40d0c152d6f3 (patch) | |
tree | 122bcf437d9c9f55bd5dabab7f0a278e440f339c /src/qml/jsruntime/qv4globalobject.cpp | |
parent | ac1d0075a8a379de1aa31a588c7b86ce0813e48c (diff) |
Add a SimpleScriptFunction class
Choose whether we use a stack based context for a function, when
the actual closure is generated, not at call time. This speeds up
function calling for leaf functions.
Change-Id: Ibcbf3acb5610a7f59b6474e982122df03c1c5298
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4globalobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4globalobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4globalobject.cpp b/src/qml/jsruntime/qv4globalobject.cpp index 99a266bd58..53d43dbc7c 100644 --- a/src/qml/jsruntime/qv4globalobject.cpp +++ b/src/qml/jsruntime/qv4globalobject.cpp @@ -389,7 +389,7 @@ Value EvalFunction::evalCall(Value /*thisObject*/, Value *args, int argc, bool d needsActivation = function->needsActivation(); if (strictMode) { - FunctionObject *e = engine->newScriptFunction(ctx, function); + FunctionObject *e = FunctionObject::creatScriptFunction(ctx, function); return e->call(ctx->thisObject, 0, 0); } |