mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout 09bdab645185 (Bug 907791) as it will not work with off-main-thread parsing.
--HG-- extra : rebase_source : 9b9cdc95fac77232e204fcdccb1bd5a2e827041b
This commit is contained in:
parent
2b91265e28
commit
809798ceb1
@ -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());
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user