aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4codegen_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-06-29 14:17:27 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-06-29 12:19:59 +0000
commit45bba2e13d231c1b06061c7b1433c7055106815b (patch)
tree714f7cf9ec73263381a86a8e1c59780d57a81833 /src/qml/compiler/qv4codegen_p.h
parenteb43d44928f9e75549e8228450f89560a536dd62 (diff)
Get rid of inheritedLocals in the codegen
This was only causing us to create mutable bindings for variables that already existed, thus leading to an expensive noop. Change-Id: I6ed8ee891f8ec16c59e5fc43ed9eb155cb4b64ac Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen_p.h')
-rw-r--r--src/qml/compiler/qv4codegen_p.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h
index f0037db052..1ff21af4e7 100644
--- a/src/qml/compiler/qv4codegen_p.h
+++ b/src/qml/compiler/qv4codegen_p.h
@@ -109,8 +109,7 @@ public:
const QString &sourceCode,
AST::Program *ast,
QV4::IR::Module *module,
- CompilationMode mode = GlobalCode,
- const QStringList &inheritedLocals = QStringList());
+ CompilationMode mode = GlobalCode);
void generateFromFunctionExpression(const QString &fileName,
const QString &sourceCode,
AST::FunctionExpression *ast,
@@ -497,8 +496,7 @@ protected:
// Returns index in _module->functions
int defineFunction(const QString &name, AST::Node *ast,
AST::FormalParameterList *formals,
- AST::SourceElements *body,
- const QStringList &inheritedLocals = QStringList());
+ AST::SourceElements *body);
void statement(AST::Statement *ast);
void statement(AST::ExpressionNode *ast);