Thank you for the review. Using the immediate vmov also frees a register,
which
means that we don't need a temp register for the instruction.
http://codereview.chromium.org/6840051/diff/11001/src/arm/lithium-codegen-arm.cc
File src/arm/lithium-codegen-arm.cc (right):
http://codereview.chromium.org/6840051/diff/11001/src/arm/lithium-codegen-arm.cc#newcode2893
src/arm/lithium-codegen-arm.cc:2893: // Construct and add 0.5 to the
input.
On 2011/04/15 09:37:54, Rodolph Perfetta wrote:
there is a vmov immediate instruction which for 0.5 will translate
into one VFP
instruction.
Done.
http://codereview.chromium.org/6840051/diff/11001/src/arm/lithium-codegen-arm.cc#newcode2902
src/arm/lithium-codegen-arm.cc:2902: __ and_(scratch1, scratch1,
Operand(HeapNumber::kSignMask));
On 2011/04/15 09:42:04, Lasse Reichstein wrote:
Just eor scratch3 with scratch1 and make sure it sets the flags - if
the result
is negative, the sign changed.
Done.
http://codereview.chromium.org/6840051/
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev