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/qv4engine.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/qv4engine.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4engine.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp index 0dc558d565..3b87888ab9 100644 --- a/src/qml/jsruntime/qv4engine.cpp +++ b/src/qml/jsruntime/qv4engine.cpp @@ -354,14 +354,6 @@ FunctionObject *ExecutionEngine::newBuiltinFunction(ExecutionContext *scope, Str return f; } -FunctionObject *ExecutionEngine::newScriptFunction(ExecutionContext *scope, Function *function) -{ - assert(function); - - ScriptFunction *f = new (memoryManager) ScriptFunction(scope, function); - return f; -} - BoundFunction *ExecutionEngine::newBoundFunction(ExecutionContext *scope, FunctionObject *target, Value boundThis, const QVector<Value> &boundArgs) { assert(target); |