зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1109702 - Fix more bad implicit constructors in js; r=Waldo
This commit is contained in:
Родитель
539b65b375
Коммит
b48a4d79a0
|
@ -5376,7 +5376,7 @@ class CheckSimdScalarArgs
|
|||
Type formalType_;
|
||||
|
||||
public:
|
||||
CheckSimdScalarArgs(AsmJSSimdType simdType)
|
||||
explicit CheckSimdScalarArgs(AsmJSSimdType simdType)
|
||||
: simdType_(simdType), formalType_(SimdToCoercedScalarType(simdType))
|
||||
{}
|
||||
|
||||
|
|
|
@ -728,7 +728,7 @@ class AutoLockFutexAPI
|
|||
{
|
||||
JS::PerRuntimeFutexAPI * const fx;
|
||||
public:
|
||||
AutoLockFutexAPI(JS::PerRuntimeFutexAPI *fx) : fx(fx) {
|
||||
explicit AutoLockFutexAPI(JS::PerRuntimeFutexAPI *fx) : fx(fx) {
|
||||
fx->lock();
|
||||
}
|
||||
~AutoLockFutexAPI() {
|
||||
|
|
|
@ -1060,7 +1060,7 @@ class LazyArrayBufferTable
|
|||
Map map;
|
||||
|
||||
public:
|
||||
LazyArrayBufferTable(JSContext *cx);
|
||||
explicit LazyArrayBufferTable(JSContext *cx);
|
||||
~LazyArrayBufferTable();
|
||||
|
||||
ArrayBufferObject *maybeBuffer(InlineTransparentTypedObject *obj);
|
||||
|
|
|
@ -287,7 +287,7 @@ class JitRuntime
|
|||
{
|
||||
JitRuntime *jrt_;
|
||||
public:
|
||||
AutoMutateBackedges(JitRuntime *jrt) : jrt_(jrt) {
|
||||
explicit AutoMutateBackedges(JitRuntime *jrt) : jrt_(jrt) {
|
||||
MOZ_ASSERT(!jrt->mutatingBackedgeList_);
|
||||
jrt->mutatingBackedgeList_ = true;
|
||||
}
|
||||
|
|
|
@ -553,7 +553,7 @@ HandleClosingGeneratorReturn(JSContext *cx, const JitFrameIterator &frame, jsbyt
|
|||
struct AutoDebuggerHandlingException
|
||||
{
|
||||
BaselineFrame *frame;
|
||||
AutoDebuggerHandlingException(BaselineFrame *frame)
|
||||
explicit AutoDebuggerHandlingException(BaselineFrame *frame)
|
||||
: frame(frame)
|
||||
{
|
||||
frame->setIsDebuggerHandlingException();
|
||||
|
|
|
@ -4301,7 +4301,7 @@ class LTypedObjectDescr : public LInstructionHelper<1, 1, 0>
|
|||
public:
|
||||
LIR_HEADER(TypedObjectDescr)
|
||||
|
||||
LTypedObjectDescr(const LAllocation &object) {
|
||||
explicit LTypedObjectDescr(const LAllocation &object) {
|
||||
setOperand(0, object);
|
||||
}
|
||||
const LAllocation *object() {
|
||||
|
|
|
@ -10507,7 +10507,7 @@ class MGetDOMProperty
|
|||
const JSJitInfo *info_;
|
||||
|
||||
protected:
|
||||
MGetDOMProperty(const JSJitInfo *jitinfo)
|
||||
explicit MGetDOMProperty(const JSJitInfo *jitinfo)
|
||||
: info_(jitinfo)
|
||||
{
|
||||
MOZ_ASSERT(jitinfo);
|
||||
|
@ -10624,7 +10624,7 @@ class MGetDOMProperty
|
|||
class MGetDOMMember : public MGetDOMProperty
|
||||
{
|
||||
// We inherit everything from MGetDOMProperty except our possiblyCalls value
|
||||
MGetDOMMember(const JSJitInfo *jitinfo)
|
||||
explicit MGetDOMMember(const JSJitInfo *jitinfo)
|
||||
: MGetDOMProperty(jitinfo)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -638,7 +638,7 @@ class ArenaLists
|
|||
ArenaHeader *savedEmptyObjectArenas;
|
||||
|
||||
public:
|
||||
ArenaLists(JSRuntime *rt) : runtime_(rt) {
|
||||
explicit ArenaLists(JSRuntime *rt) : runtime_(rt) {
|
||||
for (size_t i = 0; i != FINALIZE_LIMIT; ++i)
|
||||
freeLists[i].initAsEmpty();
|
||||
for (size_t i = 0; i != FINALIZE_LIMIT; ++i)
|
||||
|
|
|
@ -679,7 +679,7 @@ class AutoClearTypeInferenceStateOnOOM
|
|||
bool oom;
|
||||
|
||||
public:
|
||||
AutoClearTypeInferenceStateOnOOM(Zone *zone)
|
||||
explicit AutoClearTypeInferenceStateOnOOM(Zone *zone)
|
||||
: zone(zone), oom(false)
|
||||
{}
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ bool xpc_IsReportableErrorCode(nsresult code)
|
|||
// PendingResult.
|
||||
class MOZ_STACK_CLASS AutoSavePendingResult {
|
||||
public:
|
||||
AutoSavePendingResult(XPCContext *xpcc) :
|
||||
explicit AutoSavePendingResult(XPCContext *xpcc) :
|
||||
mXPCContext(xpcc)
|
||||
{
|
||||
// Save any existing pending result and reset to NS_OK for this invocation.
|
||||
|
|
Загрузка…
Ссылка в новой задаче