aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4vme_moth.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-26 19:37:39 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-28 13:19:42 +0000
commitb5ade552b799ded48fbb1700d80de5c499ba0f15 (patch)
tree9f3ec66b3753af68a8a0225ff2063d49330235ab /src/qml/jsruntime/qv4vme_moth.cpp
parentad77c970281345bc03501cea583125a89637a52c (diff)
Remove the distinction between wide and xwide instructions
Only keep 1 byte and 4 byte wide instructions. As this gives less than 256 distinct instructions, those can now again be encoded in 1 byte, dropping the Wide and XWide prefix instructions. This gives us 95% of the size savings that we had before, by being able to encode the full instruction in one byte, while bringing back pretty much all of the speed lost through the compression. Change-Id: I9ec978d43314ed304ca0ee5546035d2b581b6dc3 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4vme_moth.cpp')
-rw-r--r--src/qml/jsruntime/qv4vme_moth.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/qml/jsruntime/qv4vme_moth.cpp b/src/qml/jsruntime/qv4vme_moth.cpp
index c43db37ed2..37b95c41c6 100644
--- a/src/qml/jsruntime/qv4vme_moth.cpp
+++ b/src/qml/jsruntime/qv4vme_moth.cpp
@@ -539,18 +539,6 @@ QV4::ReturnedValue VME::exec(const FunctionObject *jsFunction, CallData *callDat
for (;;) {
MOTH_DISPATCH()
- MOTH_BEGIN_INSTR(Nop)
- MOTH_DISPATCH()
- }
-
- MOTH_BEGIN_INSTR(Wide)
- MOTH_DISPATCH_WIDE()
- }
-
- MOTH_BEGIN_INSTR(XWide)
- MOTH_DISPATCH_XWIDE()
- }
-
MOTH_BEGIN_INSTR(LoadConst)
accumulator = constant(function, index);
MOTH_END_INSTR(LoadConst)