Bug 1215999 - ARM64: Remove unnecessary float registers definitions. r=jolesen
authorVictor Carlquist <victorcarlquist@gmail.com>
Wed, 21 Oct 2015 19:49:33 -0200
changeset 304271 66dae447c29803b0f1bed088d0cfb0fef718d06e
parent 304270 e56eb1908fafb9b333f418b1f3018a820370c266
child 304272 9433d531591c81fa31dd9d1c4c754d90d9ec5212
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjolesen
bugs1215999
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1215999 - ARM64: Remove unnecessary float registers definitions. r=jolesen
js/src/jit/arm64/Assembler-arm64.h
js/src/jit/arm64/SharedICRegisters-arm64.h
--- a/js/src/jit/arm64/Assembler-arm64.h
+++ b/js/src/jit/arm64/Assembler-arm64.h
@@ -59,19 +59,16 @@ static constexpr Register PreBarrierReg 
 
 static constexpr Register ReturnReg = { Registers::x0 };
 static constexpr Register JSReturnReg = { Registers::x2 };
 static constexpr Register FramePointer = { Registers::fp };
 static constexpr Register ZeroRegister = { Registers::sp };
 static constexpr ARMRegister ZeroRegister64 = { Registers::sp, 64 };
 static constexpr ARMRegister ZeroRegister32 = { Registers::sp, 32 };
 
-static constexpr FloatRegister ReturnFloatReg = { FloatRegisters::d0, FloatRegisters::Single };
-static constexpr FloatRegister ScratchFloatReg = { FloatRegisters::d31, FloatRegisters::Single };
-
 static constexpr FloatRegister ReturnSimdReg = InvalidFloatReg;
 static constexpr FloatRegister ScratchSimdReg = InvalidFloatReg;
 
 // StackPointer is intentionally undefined on ARM64 to prevent misuse:
 //  using sp as a base register is only valid if sp % 16 == 0.
 static constexpr Register RealStackPointer = { Registers::sp };
 
 static constexpr Register PseudoStackPointer = { Registers::x28 };
--- a/js/src/jit/arm64/SharedICRegisters-arm64.h
+++ b/js/src/jit/arm64/SharedICRegisters-arm64.h
@@ -44,16 +44,15 @@ static constexpr Register ExtractTemp0 =
 static constexpr Register ExtractTemp1 = r25;
 
 // R7 - R9 are generally available for use within stubcode.
 
 // Note that BaselineTailCallReg is actually just the link
 // register.  In ARM code emission, we do not clobber BaselineTailCallReg
 // since we keep the return address for calls there.
 
-// FloatReg0 must be equal to ReturnFloatReg.
-static constexpr FloatRegister FloatReg0 = { FloatRegisters::v0, FloatRegisters::Single };
-static constexpr FloatRegister FloatReg1 = { FloatRegisters::v1, FloatRegisters::Single };
+static constexpr FloatRegister FloatReg0 = { FloatRegisters::d0, FloatRegisters::Double };
+static constexpr FloatRegister FloatReg1 = { FloatRegisters::d1, FloatRegisters::Double };
 
 } // namespace jit
 } // namespace js
 
 #endif // jit_arm64_SharedICRegisters_arm64_h