summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4instr_moth.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2017-06-20 11:28:27 +0200
committerLars Knoll <lars.knoll@qt.io>2017-06-21 09:19:59 +0000
commit48d77ce4c83c2c1d2f3ee3d01c69550e115c3226 (patch)
treeb62edfd573502ded0ff436c250992684d3770567 /src/qml/compiler/qv4instr_moth.cpp
parent5c86161fa28e951435a735a299b886fbfbe3bb16 (diff)
downloadqtdeclarative-48d77ce4c83c2c1d2f3ee3d01c69550e115c3226.tar.gz
Add support for post increment/decrement
Change-Id: Ie3f03a548105fe49d29e3d60bf823435f21b0340 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth.cpp')
-rw-r--r--src/qml/compiler/qv4instr_moth.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp
index 3f234f1394..07ffdfae03 100644
--- a/src/qml/compiler/qv4instr_moth.cpp
+++ b/src/qml/compiler/qv4instr_moth.cpp
@@ -412,13 +412,21 @@ void dumpBytecode(const char *code, int len)
d << instr.result << ", " << instr.source;
MOTH_END_INSTR(UComplInt)
- MOTH_BEGIN_INSTR(Increment)
+ MOTH_BEGIN_INSTR(PreIncrement)
d << instr.result << ", " << instr.source;
- MOTH_END_INSTR(Increment)
+ MOTH_END_INSTR(PreIncrement)
- MOTH_BEGIN_INSTR(Decrement)
+ MOTH_BEGIN_INSTR(PreDecrement)
d << instr.result << ", " << instr.source;
- MOTH_END_INSTR(Decrement)
+ MOTH_END_INSTR(PreDecrement)
+
+ MOTH_BEGIN_INSTR(PostIncrement)
+ d << instr.result << ", " << instr.source;
+ MOTH_END_INSTR(PostIncrement)
+
+ MOTH_BEGIN_INSTR(PostDecrement)
+ d << instr.result << ", " << instr.source;
+ MOTH_END_INSTR(PostDecrement)
MOTH_BEGIN_INSTR(Binop)
d << instr.alu << ", " << instr.result << ", " << instr.lhs << ", " << instr.rhs;