diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-07-03 16:23:35 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-07-04 10:25:28 +0000 |
commit | f3561037c9892c9c467f618ce3000567a4924363 (patch) | |
tree | d45caf27920ec511bb3c47c3e7e3a105e791b355 /src/qml/compiler/qv4compilerscanfunctions_p.h | |
parent | d5ab38b606fa63e6da1425b6fa607f55b3877007 (diff) |
Limit the amount of escaping variables
Calculate more exactly which variables can
be referenced from an inner context, and convert
all the non escaping ones to temporaries on the
stack.
Change-Id: I0e33e85b0f6f426ef2812b8ecccee1870492b7b5
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilerscanfunctions_p.h')
-rw-r--r-- | src/qml/compiler/qv4compilerscanfunctions_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4compilerscanfunctions_p.h b/src/qml/compiler/qv4compilerscanfunctions_p.h index 5d6a0bc9ee..d3588ecfed 100644 --- a/src/qml/compiler/qv4compilerscanfunctions_p.h +++ b/src/qml/compiler/qv4compilerscanfunctions_p.h @@ -125,6 +125,7 @@ protected: bool visit(AST::FunctionDeclaration *ast) override; void endVisit(AST::FunctionDeclaration *) override; + bool visit(AST::TryStatement *ast) override; bool visit(AST::WithStatement *ast) override; bool visit(AST::DoWhileStatement *ast) override; |