mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 986680 - Follow-up: Make constructors explicit. r=me
This commit is contained in:
parent
fedb989d71
commit
aa8399d165
@ -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
|
||||
|
@ -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)
|
||||
{ }
|
||||
};
|
||||
|
@ -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)
|
||||
{ }
|
||||
};
|
||||
|
@ -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)
|
||||
{ }
|
||||
};
|
||||
|
@ -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)
|
||||
{ }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user