diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-03-21 10:56:52 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-15 15:31:23 +0200 |
commit | 377aeea46cb90f84e5a0e867e5f68cd9f89f56b1 (patch) | |
tree | 6e5990fe8b64024c9e943693897d58877f9e5888 /src/qml/compiler/qv4codegen_p.h | |
parent | 63f757faea7008e478e0a1edea4f0ae79aaba5f7 (diff) |
V4 IR: clean up basic-block management and statement access.
BasicBlocks have an index property which points to the index of that
basic block in the container array in Function. This property can be
used to store calculated information about basic blocks in a vector,
where the vector index corresponds to the basic block index. This is
a lot cheaper than storing any information in a
QHash<BasicBlock *, ....>.
However, this numbering requires that no re-ordering or deletion of
blocks happens. This change cleans up all that handling which was
scattered over a number of places.
Change-Id: I337abd39c030b9d30c82b7bbcf2ba89e50a08e63
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4codegen_p.h')
-rw-r--r-- | src/qml/compiler/qv4codegen_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h index c495437622..cb87846a3b 100644 --- a/src/qml/compiler/qv4codegen_p.h +++ b/src/qml/compiler/qv4codegen_p.h @@ -283,7 +283,7 @@ protected: } void pushExceptionHandler(QV4::IR::BasicBlock *handler) { - handler->isExceptionHandler = true; + handler->setExceptionHandler(true); _exceptionHandlers.push(handler); } void popExceptionHandler() |