diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-05-15 13:15:43 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-23 13:19:01 +0000 |
commit | 6f1e2722b9eef73a4fe19951b47c4b172642a2ba (patch) | |
tree | 01e58c038a7d63ed9206c834c4f6df1fb51db142 /src/qml/compiler/qv4codegen.cpp | |
parent | 3e6d5d9cd1de1373f67f2ff31373a59c37f7b576 (diff) | |
download | qtdeclarative-6f1e2722b9eef73a4fe19951b47c4b172642a2ba.tar.gz |
Simplify Push and PopContext instructions
There's no need for a temp register to store the old context in,
as PopContext can simply retrieve the old context from
the current one.
Change-Id: Ife9cfdff7fa8e47fc71e844a7798de88dbc79e26
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r-- | src/qml/compiler/qv4codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp index b46891572e..860a1307f2 100644 --- a/src/qml/compiler/qv4codegen.cpp +++ b/src/qml/compiler/qv4codegen.cpp @@ -2482,7 +2482,7 @@ int Codegen::defineFunction(const QString &name, AST::Node *ast, statementList(body); - _context->emitBlockFooter(this, -1); + _context->emitBlockFooter(this); if (hasError || !endsWithReturn(_module, body)) { bytecodeGenerator->setLocation(ast->lastSourceLocation()); |