V4 JIT: tweak generated int32 to double conversion code
authorErik Verbruggen <erik.verbruggen@digia.com>
Thu, 7 Aug 2014 12:33:55 +0000 (14:33 +0200)
committerErik Verbruggen <erik.verbruggen@digia.com>
Wed, 13 Aug 2014 08:00:32 +0000 (10:00 +0200)
commitccb69a858fcf1b42ff36605007aeabc3dbb4a8d7
treee8b7a41091e0cd37f7486317c45ad4629afe7698
parentcf9b3c334d70d5018b438f37518b057ead9199c0
V4 JIT: tweak generated int32 to double conversion code

If the target is a FP register, and the source is a memory address, do
not load the int32 ourselves, but leave it to the assembler to decide
what to do. On x86(_64) this is generates a single instruction, while on
ARM the assembler will insert a load on its own.

For the case where the target is not a FP register, use the return value
register as base register for the target address. The advantage is that
the address calculation is now independent of the preceding conversion,
so it can fit in a different pipeline without dependencies.

Change-Id: Ib7cefa636274ba8596e4d11ae0170a091a0def3e
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jit/qv4isel_masm_p.h