diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-11-02 19:56:09 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-05 22:23:25 +0100 |
commit | b5f76295659dd49d46b306b66807f44841fca992 (patch) | |
tree | e12afe842126fd6b9d009d95ff7e22ba02212003 /src/qml/jsruntime/qv4context.cpp | |
parent | efd2eaed79cf8d0bdcdea60b532887f4b2b71ac7 (diff) |
Don't initialize locals for simple script functions
There are not being used anyway.
Change-Id: Id61b023eeb9d61bbee2874a5fd5005ba9fb08fca
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4context.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp index a5dbc57671..07a5f90136 100644 --- a/src/qml/jsruntime/qv4context.cpp +++ b/src/qml/jsruntime/qv4context.cpp @@ -81,9 +81,6 @@ CallContext *ExecutionContext::newCallContext(void *stackSpace, SafeValue *local c->locals = locals; - if (function->varCount) - std::fill(c->locals, c->locals + function->varCount, Primitive::undefinedValue()); - if (callData->argc < static_cast<int>(function->formalParameterCount)) { #ifndef QT_NO_DEBUG Q_ASSERT(function->formalParameterCount <= QV4::Global::ReservedArgumentCount); |