Bug 1087307 - Fix some more bad implicit constructors in js; r=Waldo

This commit is contained in:
Ehsan Akhgari 2014-10-10 17:28:35 -04:00
parent ef68e6c8ce
commit 11b80e2ff1
3 changed files with 7 additions and 7 deletions

View File

@ -275,7 +275,7 @@ class RInstructionResults
bool initialized_;
public:
RInstructionResults(IonJSFrameLayout *fp);
explicit RInstructionResults(IonJSFrameLayout *fp);
RInstructionResults(RInstructionResults&& src);
RInstructionResults& operator=(RInstructionResults&& rhs);
@ -310,7 +310,7 @@ struct MaybeReadFallback
const NoGCValue unreadablePlaceholder_;
const FallbackConsequence consequence;
MaybeReadFallback(const Value &placeholder = UndefinedValue())
explicit MaybeReadFallback(const Value &placeholder = UndefinedValue())
: maybeCx(nullptr),
activation(nullptr),
frame(nullptr),

View File

@ -233,7 +233,7 @@ class LSimdSignMaskX4 : public LInstructionHelper<1, 1, 0>
class LSimdSwizzleBase : public LInstructionHelper<1, 1, 0>
{
public:
LSimdSwizzleBase(const LAllocation &base)
explicit LSimdSwizzleBase(const LAllocation &base)
{
setOperand(0, base);
}
@ -257,7 +257,7 @@ class LSimdSwizzleI : public LSimdSwizzleBase
{
public:
LIR_HEADER(SimdSwizzleI);
LSimdSwizzleI(const LAllocation &base) : LSimdSwizzleBase(base)
explicit LSimdSwizzleI(const LAllocation &base) : LSimdSwizzleBase(base)
{}
};
// Shuffles a float32x4 into another float32x4 vector.
@ -265,7 +265,7 @@ class LSimdSwizzleF : public LSimdSwizzleBase
{
public:
LIR_HEADER(SimdSwizzleF);
LSimdSwizzleF(const LAllocation &base) : LSimdSwizzleBase(base)
explicit LSimdSwizzleF(const LAllocation &base) : LSimdSwizzleBase(base)
{}
};
@ -4203,7 +4203,7 @@ class LTypedObjectUnsizedLength : public LInstructionHelper<1, 1, 0>
public:
LIR_HEADER(TypedObjectUnsizedLength)
LTypedObjectUnsizedLength(const LAllocation &object) {
explicit LTypedObjectUnsizedLength(const LAllocation &object) {
setOperand(0, object);
}
const LAllocation *object() {

View File

@ -4686,7 +4686,7 @@ GCRuntime::endMarkingZoneGroup()
JSRuntime *runtime;\
virtual void run() MOZ_OVERRIDE;\
public:\
name (JSRuntime *rt) : runtime(rt) {}\
explicit name (JSRuntime *rt) : runtime(rt) {}\
}
MAKE_GC_PARALLEL_TASK(SweepAtomsTask);
MAKE_GC_PARALLEL_TASK(SweepInnerViewsTask);