diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-04-06 12:05:21 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-02 14:17:59 +0000 |
commit | 5cd9d88c2683c5d226ab1dc0384868408c036fe9 (patch) | |
tree | e7499131b3ef31b945e2aceec68c285103eea637 /src/qml/compiler/qv4compilercontext.cpp | |
parent | 2c23299ecd94dbcce0a90b3b374a674cad6a3683 (diff) |
Avoid excessive creation of contexts
Variables do not escape if they are being used from an
inner block in the same function.
Change-Id: I494861edf9d8a492930797928a3137362082d084
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilercontext.cpp')
-rw-r--r-- | src/qml/compiler/qv4compilercontext.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compilercontext.cpp b/src/qml/compiler/qv4compilercontext.cpp index a0467aa427..d232a43291 100644 --- a/src/qml/compiler/qv4compilercontext.cpp +++ b/src/qml/compiler/qv4compilercontext.cpp @@ -132,7 +132,6 @@ Context::ResolvedName Context::resolveName(const QString &name) result.type = ResolvedName::Local; return result; } else { - Q_ASSERT(scope == 0); result.index = argIdx + sizeof(CallData)/sizeof(Value) - 1; result.scope = 0; result.type = ResolvedName::Stack; |