aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4instr_moth.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-13 22:54:11 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-08-18 10:07:08 +0000
commit6b7194492624dc1b492593b011b56a165f13dacd (patch)
tree735078ddf9328a8d844a88ca98bc5538af5b20f8 /src/qml/compiler/qv4instr_moth.cpp
parentb5d89b3e539399e692fc056e3e03e09038adb6d8 (diff)
Add a LoadZero instruction
as 0 is used quite often. Change-Id: I2c952ef077590f6e6cfe9aad50807f5e0f8686e4 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth.cpp')
-rw-r--r--src/qml/compiler/qv4instr_moth.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp
index 95cbfc07bf..5f5c1d2d50 100644
--- a/src/qml/compiler/qv4instr_moth.cpp
+++ b/src/qml/compiler/qv4instr_moth.cpp
@@ -136,6 +136,9 @@ void dumpBytecode(const char *code, int len, int nLocals, int nFormals)
MOTH_BEGIN_INSTR(LoadNull)
MOTH_END_INSTR(LoadNull)
+ MOTH_BEGIN_INSTR(LoadZero)
+ MOTH_END_INSTR(LoadZero)
+
MOTH_BEGIN_INSTR(LoadTrue)
MOTH_END_INSTR(LoadTrue)