aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4instr_moth.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-12 00:10:04 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-08-18 09:58:38 +0000
commitc8a2e4acb101967c254d7e9d3c4e7d9f25c5eecc (patch)
tree8e2fb1dce06478a8370176b42d69a704ca56104d /src/qml/compiler/qv4instr_moth.cpp
parentaf504fc0dabd65ac5a4eef2233ad87ed9a54c500 (diff)
Add specialized instructions for loading undefined, null and ints
Change-Id: Iab0b77328f5756972ef6eff82c0041b184290a32 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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp
index ed2f556e01..b885db30bf 100644
--- a/src/qml/compiler/qv4instr_moth.cpp
+++ b/src/qml/compiler/qv4instr_moth.cpp
@@ -133,6 +133,16 @@ void dumpBytecode(const char *code, int len, int nFormals)
d << "C" << instr.index;
MOTH_END_INSTR(LoadConst)
+ MOTH_BEGIN_INSTR(LoadNull)
+ MOTH_END_INSTR(LoadNull)
+
+ MOTH_BEGIN_INSTR(LoadUndefined)
+ MOTH_END_INSTR(LoadUndefined)
+
+ MOTH_BEGIN_INSTR(LoadInt)
+ d << instr.value;
+ MOTH_END_INSTR(LoadInt)
+
MOTH_BEGIN_INSTR(MoveConst)
d << instr.destTemp.dump(nFormals) << ", C" << instr.constIndex;
MOTH_END_INSTR(MoveConst)