aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4instr_moth_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-13 22:42:48 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-08-18 10:06:43 +0000
commitb5d89b3e539399e692fc056e3e03e09038adb6d8 (patch)
treef37146fe95c945cd4a7c56a6e67d545ea381fdda /src/qml/compiler/qv4instr_moth_p.h
parentaf5adb9e32713edb7196f761bcabd19f35722c57 (diff)
Remove the Load/StoreScopedArgument instructions
They are not used anymore. Change-Id: I0cb3754899a30d5f88279ff31296fd73edf90a9a Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth_p.h')
-rw-r--r--src/qml/compiler/qv4instr_moth_p.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h
index 770f3be7a8..d972f64ba4 100644
--- a/src/qml/compiler/qv4instr_moth_p.h
+++ b/src/qml/compiler/qv4instr_moth_p.h
@@ -83,8 +83,6 @@ QT_BEGIN_NAMESPACE
F(MoveReg, moveReg) \
F(LoadScopedLocal, loadScopedLocal) \
F(StoreScopedLocal, storeScopedLocal) \
- F(LoadScopedArgument, loadScopedArgument) \
- F(StoreScopedArgument, storeScopedArgument) \
F(LoadRuntimeString, loadRuntimeString) \
F(LoadRegExp, loadRegExp) \
F(LoadClosure, loadClosure) \
@@ -236,9 +234,9 @@ inline bool operator!=(const StackSlot &l, const StackSlot &r) { return l.stackS
// When making changes to the instructions, make sure to bump QV4_DATA_STRUCTURE_VERSION in qv4compileddata_p.h
void dumpConstantTable(const Value *constants, uint count);
-void dumpBytecode(const char *bytecode, int len, int nFormals);
-inline void dumpBytecode(const QByteArray &bytecode, int nFormals) {
- dumpBytecode(bytecode.constData(), bytecode.length(), nFormals);
+void dumpBytecode(const char *bytecode, int len, int nLocals, int nFormals);
+inline void dumpBytecode(const QByteArray &bytecode, int nLocals, int nFormals) {
+ dumpBytecode(bytecode.constData(), bytecode.length(), nLocals, nFormals);
}
union Instr
@@ -314,16 +312,6 @@ union Instr
int scope;
int index;
};
- struct instr_loadScopedArgument {
- MOTH_INSTR_HEADER
- int scope;
- int index;
- };
- struct instr_storeScopedArgument {
- MOTH_INSTR_HEADER
- int scope;
- int index;
- };
struct instr_loadRuntimeString {
MOTH_INSTR_HEADER
int stringId;
@@ -739,8 +727,6 @@ union Instr
instr_moveReg moveReg;
instr_loadScopedLocal loadScopedLocal;
instr_storeScopedLocal storeScopedLocal;
- instr_loadScopedArgument loadScopedArgument;
- instr_storeScopedArgument storeScopedArgument;
instr_loadRuntimeString loadRuntimeString;
instr_loadRegExp loadRegExp;
instr_loadClosure loadClosure;