aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4instr_moth_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-10-29 08:17:54 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-29 14:06:11 +0100
commit61be39a01b4d3348161472260efef14f8a6e7896 (patch)
treea1e150e73203880ac0d82ec9a684fdcf8938b206 /src/qml/compiler/qv4instr_moth_p.h
parentcfe24c1aa0f3ec168437cd22e355c28e5e7a4f09 (diff)
Remove the LoadValue instruction
With the constant table this is exactly the same as a move. Also renamed MoveTemp to Move, as it not only moves Temps but also other variables. Change-Id: I1fccc04314661954179d903519adbc39777395e5 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth_p.h')
-rw-r--r--src/qml/compiler/qv4instr_moth_p.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h
index 795576b2a9..f1108ff863 100644
--- a/src/qml/compiler/qv4instr_moth_p.h
+++ b/src/qml/compiler/qv4instr_moth_p.h
@@ -51,11 +51,10 @@ QT_BEGIN_NAMESPACE
#define FOR_EACH_MOTH_INSTR(F) \
F(Ret, ret) \
- F(LoadValue, loadValue) \
F(LoadRuntimeString, loadRuntimeString) \
F(LoadRegExp, loadRegExp) \
F(LoadClosure, loadClosure) \
- F(MoveTemp, moveTemp) \
+ F(Move, move) \
F(SwapTemps, swapTemps) \
F(LoadName, loadName) \
F(StoreName, storeName) \
@@ -206,11 +205,6 @@ union Instr
MOTH_INSTR_HEADER
Param result;
};
- struct instr_loadValue {
- MOTH_INSTR_HEADER
- Param value;
- Param result;
- };
struct instr_loadRuntimeString {
MOTH_INSTR_HEADER
int stringId;
@@ -221,7 +215,7 @@ union Instr
int regExpId;
Param result;
};
- struct instr_moveTemp {
+ struct instr_move {
MOTH_INSTR_HEADER
Param source;
Param result;
@@ -487,10 +481,9 @@ union Instr
instr_common common;
instr_ret ret;
- instr_loadValue loadValue;
instr_loadRuntimeString loadRuntimeString;
instr_loadRegExp loadRegExp;
- instr_moveTemp moveTemp;
+ instr_move move;
instr_swapTemps swapTemps;
instr_loadClosure loadClosure;
instr_loadName loadName;