Backout 09bdab645185 (Bug 907791) as it will not work with off-main-thread parsing.

--HG--
extra : rebase_source : 9b9cdc95fac77232e204fcdccb1bd5a2e827041b
This commit is contained in:
Terrence Cole 2013-08-22 11:48:28 -07:00
parent 2b91265e28
commit 809798ceb1
3 changed files with 0 additions and 9 deletions

View File

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

View File

@ -5150,12 +5150,6 @@ AutoMaybeTouchDeadZones::~AutoMaybeTouchDeadZones()
runtime->gcManipulatingDeadZones = manipulatingDeadZones; runtime->gcManipulatingDeadZones = manipulatingDeadZones;
} }
AutoSuppressGC::AutoSuppressGC(JSRuntime *rt)
: suppressGC_(rt->mainThread.suppressGC)
{
suppressGC_++;
}
AutoSuppressGC::AutoSuppressGC(ExclusiveContext *cx) AutoSuppressGC::AutoSuppressGC(ExclusiveContext *cx)
: suppressGC_(cx->perThreadData->suppressGC) : suppressGC_(cx->perThreadData->suppressGC)
{ {

View File

@ -1400,7 +1400,6 @@ class AutoSuppressGC
int32_t &suppressGC_; int32_t &suppressGC_;
public: public:
AutoSuppressGC(JSRuntime *rt);
AutoSuppressGC(ExclusiveContext *cx); AutoSuppressGC(ExclusiveContext *cx);
AutoSuppressGC(JSCompartment *comp); AutoSuppressGC(JSCompartment *comp);