aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4instr_moth_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-02-06 13:19:27 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-07 10:44:03 +0100
commit706a3cfc8751003aaa73368348b84b64c88173d0 (patch)
treef2cdb1e1ccc4b11c0b25afbd496bd9b4db5d59fb /src/qml/compiler/qv4instr_moth_p.h
parent39d7e330e64c2132828a040497a5b7326202b5b9 (diff)
Add a MoveConst instruction to the interpreter
This simplifies and speeds up loading of constants Change-Id: I05b4f7a34abd4ed6416fa800a31debbb28b37104 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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h
index bd8fc2301d..a691f37b52 100644
--- a/src/qml/compiler/qv4instr_moth_p.h
+++ b/src/qml/compiler/qv4instr_moth_p.h
@@ -56,6 +56,7 @@ QT_BEGIN_NAMESPACE
F(LoadRegExp, loadRegExp) \
F(LoadClosure, loadClosure) \
F(Move, move) \
+ F(MoveConst, moveConst) \
F(SwapTemps, swapTemps) \
F(LoadName, loadName) \
F(GetGlobalLookup, getGlobalLookup) \
@@ -252,6 +253,11 @@ union Instr
Param source;
Param result;
};
+ struct instr_moveConst {
+ MOTH_INSTR_HEADER
+ QV4::ReturnedValue source;
+ Param result;
+ };
struct instr_swapTemps {
MOTH_INSTR_HEADER
Param left;
@@ -710,6 +716,7 @@ union Instr
instr_loadRuntimeString loadRuntimeString;
instr_loadRegExp loadRegExp;
instr_move move;
+ instr_moveConst moveConst;
instr_swapTemps swapTemps;
instr_loadClosure loadClosure;
instr_loadName loadName;