aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-06-06 14:22:38 +0200
committerLars Knoll <lars.knoll@qt.io>2018-06-21 19:43:20 +0000
commit5454b37f308e78e240ac19947121fae344cda606 (patch)
tree0ae53cb9914fcee7bdf9d1fdfc13fcbb92e95bce /src/qml/compiler
parent0363f0f4f8870db20c630cd2af94e0b05255d036 (diff)
Get rid of the unused JumpEmpty instruction
Change-Id: I117687939e0f02d801dbad8de7761b4c799f2035 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler')
-rw-r--r--src/qml/compiler/qv4bytecodehandler.cpp4
-rw-r--r--src/qml/compiler/qv4instr_moth.cpp4
-rw-r--r--src/qml/compiler/qv4instr_moth_p.h2
3 files changed, 0 insertions, 10 deletions
diff --git a/src/qml/compiler/qv4bytecodehandler.cpp b/src/qml/compiler/qv4bytecodehandler.cpp
index ccd54c7444..5709d84f58 100644
--- a/src/qml/compiler/qv4bytecodehandler.cpp
+++ b/src/qml/compiler/qv4bytecodehandler.cpp
@@ -387,10 +387,6 @@ std::vector<int> ByteCodeHandler::collectLabelsInBytecode(const char *code, uint
addLabel(code - start + offset);
COLLECTOR_END_INSTR(JumpNotUndefined)
- COLLECTOR_BEGIN_INSTR(JumpEmpty)
- addLabel(code - start + offset);
- COLLECTOR_END_INSTR(JumpEmpty)
-
COLLECTOR_BEGIN_INSTR(CmpEqNull)
COLLECTOR_END_INSTR(CmpEqNull)
diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp
index 4a11f46dc5..0fb789f479 100644
--- a/src/qml/compiler/qv4instr_moth.cpp
+++ b/src/qml/compiler/qv4instr_moth.cpp
@@ -522,10 +522,6 @@ void dumpBytecode(const char *code, int len, int nLocals, int nFormals, int /*st
d << ABSOLUTE_OFFSET();
MOTH_END_INSTR(JumpNoException)
- MOTH_BEGIN_INSTR(JumpEmpty)
- d << ABSOLUTE_OFFSET();
- MOTH_END_INSTR(JumpEmpty)
-
MOTH_BEGIN_INSTR(CmpEqNull)
MOTH_END_INSTR(CmpEqNull)
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h
index 3adb9c2e0f..a2bb85749b 100644
--- a/src/qml/compiler/qv4instr_moth_p.h
+++ b/src/qml/compiler/qv4instr_moth_p.h
@@ -148,7 +148,6 @@ QT_BEGIN_NAMESPACE
#define INSTR_JumpFalse(op) INSTRUCTION(op, JumpFalse, 1, offset)
#define INSTR_JumpNotUndefined(op) INSTRUCTION(op, JumpNotUndefined, 1, offset)
#define INSTR_JumpNoException(op) INSTRUCTION(op, JumpNoException, 1, offset)
-#define INSTR_JumpEmpty(op) INSTRUCTION(op, JumpEmpty, 1, offset)
#define INSTR_CmpEqNull(op) INSTRUCTION(op, CmpEqNull, 0)
#define INSTR_CmpNeNull(op) INSTRUCTION(op, CmpNeNull, 0)
#define INSTR_CmpEqInt(op) INSTRUCTION(op, CmpEqInt, 1, lhs)
@@ -278,7 +277,6 @@ QT_BEGIN_NAMESPACE
F(JumpFalse) \
F(JumpNoException) \
F(JumpNotUndefined) \
- F(JumpEmpty) \
F(CmpEqNull) \
F(CmpNeNull) \
F(CmpEqInt) \