зеркало из https://github.com/mozilla/gecko-dev.git
Bug 949324 - Fix -Wunused-function warnings in js/. r=luke
This commit is contained in:
Родитель
a5c6d616b0
Коммит
3e95adf082
|
@ -1213,12 +1213,12 @@ IsCompilingAsmJS()
|
|||
IonContext *ictx = MaybeGetIonContext();
|
||||
return ictx && ictx->compartment == nullptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
AssumeUnreachable_(const char *output) {
|
||||
MOZ_ReportAssertionFailure(output, __FILE__, __LINE__);
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
MacroAssembler::assumeUnreachable(const char *output)
|
||||
|
|
|
@ -3591,13 +3591,17 @@ EscapeForShell(AutoCStringVector &argv)
|
|||
}
|
||||
#endif
|
||||
|
||||
Vector<const char*, 4, js::SystemAllocPolicy> sPropagatedFlags;
|
||||
static Vector<const char*, 4, js::SystemAllocPolicy> sPropagatedFlags;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if (defined(JS_CPU_X86) || defined(JS_CPU_X64)) && defined(JS_ION)
|
||||
static bool
|
||||
PropagateFlagToNestedShells(const char *flag)
|
||||
{
|
||||
return sPropagatedFlags.append(flag);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static bool
|
||||
NestedShell(JSContext *cx, unsigned argc, jsval *vp)
|
||||
|
|
Загрузка…
Ссылка в новой задаче