aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-26 16:17:38 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-28 13:34:03 +0200
commit23fae0a57aeecfb6219bb703c8188d546280ee70 (patch)
tree310383154685625c1c1f30e01089466cd7f50535 /src
parent62d1b5a08aa2c21c95a2a77afbe34c38ed37a2aa (diff)
Optimize storeReturnValue for double arguments
Change-Id: Icfe2ad49f6e12322b4d33fefc3c6de21cc3b6141 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/qml/compiler/qv4isel_masm_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4isel_masm_p.h b/src/qml/compiler/qv4isel_masm_p.h
index 291ed106cd..a4550c63ed 100644
--- a/src/qml/compiler/qv4isel_masm_p.h
+++ b/src/qml/compiler/qv4isel_masm_p.h
@@ -617,9 +617,15 @@ public:
void storeReturnValue(FPRegisterID dest)
{
+#ifdef VALUE_FITS_IN_REGISTER
+ move(TrustedImm64(QV4::Value::NaNEncodeMask), ScratchRegister);
+ xor64(ScratchRegister, ReturnValueRegister);
+ move64ToDouble(ReturnValueRegister, dest);
+#else
Pointer tmp(StackPointerRegister, -int(sizeof(QV4::Value)));
storeReturnValue(tmp);
loadDouble(tmp, dest);
+#endif
}
#ifdef VALUE_FITS_IN_REGISTER