Bug 907791 - Suppress some AsmJS rooting non-hazards in the static analysis; r=bhackett,luke

--HG--
extra : rebase_source : 9acbb597415c4bf08c978c480262ce5e5dd9c452
This commit is contained in:
Terrence Cole 2013-08-21 12:43:22 -07:00
parent 3e16a0d1dd
commit 0bf4aef42a

View File

@ -1276,6 +1276,8 @@ class MOZ_STACK_CLASS ModuleCompiler
}
bool failName(ParseNode *pn, const char *fmt, PropertyName *name) {
// This function is invoked without the caller properly rooting its locals.
gc::AutoSuppressGC suppress(cx_);
JSAutoByteString bytes;
if (AtomToPrintableString(cx_, name, &bytes))
failf(pn, fmt, bytes.ptr());