aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4instr_moth_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-02-06 15:13:33 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-07 10:44:34 +0100
commitb4883080781f3ea68e4a688821d353a321c39f95 (patch)
tree1ac13d8c23aea6b3238750e48a32cc9e37ae6730 /src/qml/compiler/qv4instr_moth_p.h
parentaaa8257d988f10f8a6f92d6e687d9aaf678aa05c (diff)
Remove add/sub/mul instruction specializations for numbers
These instructions did hurt more than help, as they converted ints to doubles. Since the regular add/sub/mul runtime methods have fast paths for both ints and doubles, we're better off using those instead. Change-Id: I0b7a6f95818943bfc8a0669c1c56f7db4e7246e0 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.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h
index 7d15b4b010..e3e227796e 100644
--- a/src/qml/compiler/qv4instr_moth_p.h
+++ b/src/qml/compiler/qv4instr_moth_p.h
@@ -132,9 +132,6 @@ QT_BEGIN_NAMESPACE
F(Mul, mul) \
F(Sub, sub) \
F(BinopContext, binopContext) \
- F(AddNumberParams, addNumberParams) \
- F(MulNumberParams, mulNumberParams) \
- F(SubNumberParams, subNumberParams) \
F(LoadThis, loadThis) \
F(LoadQmlIdArray, loadQmlIdArray) \
F(LoadQmlImportedScripts, loadQmlImportedScripts) \
@@ -699,24 +696,6 @@ union Instr
Param rhs;
Param result;
};
- struct instr_addNumberParams {
- MOTH_INSTR_HEADER
- Param lhs;
- Param rhs;
- Param result;
- };
- struct instr_mulNumberParams {
- MOTH_INSTR_HEADER
- Param lhs;
- Param rhs;
- Param result;
- };
- struct instr_subNumberParams {
- MOTH_INSTR_HEADER
- Param lhs;
- Param rhs;
- Param result;
- };
struct instr_loadThis {
MOTH_INSTR_HEADER
Param result;
@@ -826,9 +805,6 @@ union Instr
instr_mul mul;
instr_sub sub;
instr_binopContext binopContext;
- instr_addNumberParams addNumberParams;
- instr_mulNumberParams mulNumberParams;
- instr_subNumberParams subNumberParams;
instr_loadThis loadThis;
instr_loadQmlIdArray loadQmlIdArray;
instr_loadQmlImportedScripts loadQmlImportedScripts;