Bug 986680 - Follow-up: Make constructors explicit. r=me

This commit is contained in:
Sean Stangl 2015-08-28 15:00:27 -07:00
parent fedb989d71
commit aa8399d165
5 changed files with 11 additions and 11 deletions

View File

@ -183,10 +183,10 @@ struct AutoGenericRegisterScope : public RegisterType
#ifdef DEBUG
MacroAssembler& masm_;
AutoGenericRegisterScope(MacroAssembler& masm, RegisterType reg);
explicit AutoGenericRegisterScope(MacroAssembler& masm, RegisterType reg);
~AutoGenericRegisterScope();
#else
MOZ_CONSTEXPR AutoGenericRegisterScope(MacroAssembler& masm, RegisterType reg)
MOZ_CONSTEXPR explicit AutoGenericRegisterScope(MacroAssembler& masm, RegisterType reg)
: RegisterType(reg)
{ }
#endif

View File

@ -50,7 +50,7 @@ static MOZ_CONSTEXPR_VAR Register ScratchRegister = {Registers::ip};
// of code thinks it has exclusive ownership of the scratch register.
struct ScratchRegisterScope : public AutoRegisterScope
{
ScratchRegisterScope(MacroAssembler& masm)
explicit ScratchRegisterScope(MacroAssembler& masm)
: AutoRegisterScope(masm, ScratchRegister)
{ }
};
@ -130,13 +130,13 @@ static MOZ_CONSTEXPR_VAR FloatRegister ScratchIntReg = { FloatRegisters::d15, VF
struct ScratchFloat32Scope : public AutoFloatRegisterScope
{
ScratchFloat32Scope(MacroAssembler& masm)
explicit ScratchFloat32Scope(MacroAssembler& masm)
: AutoFloatRegisterScope(masm, ScratchFloat32Reg)
{ }
};
struct ScratchDoubleScope : public AutoFloatRegisterScope
{
ScratchDoubleScope(MacroAssembler& masm)
explicit ScratchDoubleScope(MacroAssembler& masm)
: AutoFloatRegisterScope(masm, ScratchDoubleReg)
{ }
};

View File

@ -62,13 +62,13 @@ static MOZ_CONSTEXPR_VAR Register SecondScratchReg = t8;
// of code thinks it has exclusive ownership of each scratch register.
struct ScratchRegisterScope : public AutoRegisterScope
{
ScratchRegisterScope(MacroAssembler& masm)
explicit ScratchRegisterScope(MacroAssembler& masm)
: AutoRegisterScope(masm, ScratchRegister)
{ }
};
struct SecondScratchRegisterScope : public AutoRegisterScope
{
SecondScratchRegisterScope(MacroAssembler& masm)
explicit SecondScratchRegisterScope(MacroAssembler& masm)
: AutoRegisterScope(masm, SecondScratchReg)
{ }
};

View File

@ -76,7 +76,7 @@ static MOZ_CONSTEXPR_VAR Register ScratchReg = r11;
// of code thinks it has exclusive ownership of the scratch register.
struct ScratchRegisterScope : public AutoRegisterScope
{
ScratchRegisterScope(MacroAssembler& masm)
explicit ScratchRegisterScope(MacroAssembler& masm)
: AutoRegisterScope(masm, ScratchReg)
{ }
};

View File

@ -17,21 +17,21 @@ namespace jit {
struct ScratchFloat32Scope : public AutoFloatRegisterScope
{
ScratchFloat32Scope(MacroAssembler& masm)
explicit ScratchFloat32Scope(MacroAssembler& masm)
: AutoFloatRegisterScope(masm, ScratchFloat32Reg)
{ }
};
struct ScratchDoubleScope : public AutoFloatRegisterScope
{
ScratchDoubleScope(MacroAssembler& masm)
explicit ScratchDoubleScope(MacroAssembler& masm)
: AutoFloatRegisterScope(masm, ScratchDoubleReg)
{ }
};
struct ScratchSimdScope : public AutoFloatRegisterScope
{
ScratchSimdScope(MacroAssembler& masm)
explicit ScratchSimdScope(MacroAssembler& masm)
: AutoFloatRegisterScope(masm, ScratchSimdReg)
{ }
};