mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1400278 - Fix compilation errors to do with unreachable return statements r=jandem
This commit is contained in:
parent
2934befd2a
commit
0d5497bfb5
@ -9790,8 +9790,6 @@ BytecodeEmitter::emitIncOrDec(ParseNode* pn)
|
||||
default:
|
||||
return emitNameIncDec(pn);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Using MOZ_NEVER_INLINE in here is a workaround for llvm.org/pr14047. See
|
||||
|
@ -540,10 +540,8 @@ BaselineInspector::hasSeenDoubleResult(jsbytecode* pc)
|
||||
|
||||
if (stub->isUnaryArith_Fallback())
|
||||
return stub->toUnaryArith_Fallback()->sawDoubleResult();
|
||||
else
|
||||
return stub->toBinaryArith_Fallback()->sawDoubleResult();
|
||||
|
||||
return false;
|
||||
return stub->toBinaryArith_Fallback()->sawDoubleResult();
|
||||
}
|
||||
|
||||
JSObject*
|
||||
|
@ -255,8 +255,6 @@ ControlFlowGenerator::traverseBytecode()
|
||||
JSOp op = JSOp(*pc);
|
||||
pc += CodeSpec[op].length;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
ControlFlowGenerator::ControlStatus
|
||||
|
@ -1316,10 +1316,8 @@ js::EnsureTrackPropertyTypes(JSContext* cx, JSObject* obj, jsid id)
|
||||
if (obj->hasLazyGroup()) {
|
||||
AutoEnterOOMUnsafeRegion oomUnsafe;
|
||||
RootedObject objRoot(cx, obj);
|
||||
if (!JSObject::getGroup(cx, objRoot)) {
|
||||
if (!JSObject::getGroup(cx, objRoot))
|
||||
oomUnsafe.crash("Could not allocate ObjectGroup in EnsureTrackPropertyTypes");
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!obj->group()->unknownProperties() && !obj->group()->getProperty(cx, obj, id)) {
|
||||
MOZ_ASSERT(obj->group()->unknownProperties());
|
||||
|
@ -4470,8 +4470,6 @@ CheckSharedArrayAtomicAccess(FunctionValidator& f, ParseNode* viewName, ParseNod
|
||||
default:
|
||||
return f.failf(viewName, "not an integer array");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
|
Loading…
Reference in New Issue
Block a user