mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 981201 - Stop using JS_IsRunning in PreciseGCRunnable::Run and remove JS_IsRunning. r=bholley
This commit is contained in:
parent
922cccfc52
commit
44e40b79ad
@ -4881,12 +4881,6 @@ JS_RequestInterruptCallback(JSContext* cx)
|
||||
cx->requestInterrupt(JSRuntime::RequestInterruptUrgent);
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(bool)
|
||||
JS_IsRunning(JSContext* cx)
|
||||
{
|
||||
return cx->currentlyRunning();
|
||||
}
|
||||
|
||||
JS::AutoSetAsyncStackForNewCalls::AutoSetAsyncStackForNewCalls(
|
||||
JSContext* cx, HandleObject stack, const char* asyncCause,
|
||||
JS::AutoSetAsyncStackForNewCalls::AsyncCallKind kind)
|
||||
|
@ -4602,13 +4602,6 @@ typedef bool
|
||||
extern JS_PUBLIC_API(void)
|
||||
SetAsyncTaskCallbacks(JSContext* cx, StartAsyncTaskCallback start, FinishAsyncTaskCallback finish);
|
||||
|
||||
} // namespace JS
|
||||
|
||||
extern JS_PUBLIC_API(bool)
|
||||
JS_IsRunning(JSContext* cx);
|
||||
|
||||
namespace JS {
|
||||
|
||||
/**
|
||||
* This class can be used to store a pointer to the youngest frame of a saved
|
||||
* stack in the specified JSContext. This reference will be picked up by any new
|
||||
|
@ -943,12 +943,6 @@ JSContext::isThrowingDebuggeeWouldRun()
|
||||
unwrappedException_.toObject().as<ErrorObject>().type() == JSEXN_DEBUGGEEWOULDRUN;
|
||||
}
|
||||
|
||||
bool
|
||||
JSContext::currentlyRunning() const
|
||||
{
|
||||
return !!activation();
|
||||
}
|
||||
|
||||
static bool
|
||||
ComputeIsJITBroken()
|
||||
{
|
||||
|
@ -450,9 +450,6 @@ struct JSContext : public js::ExclusiveContext,
|
||||
*/
|
||||
bool asyncCallIsExplicit;
|
||||
|
||||
/* Whether this context has JS frames on the stack. */
|
||||
bool currentlyRunning() const;
|
||||
|
||||
bool currentlyRunningInInterpreter() const {
|
||||
return activation()->isInterpreter();
|
||||
}
|
||||
|
@ -2627,10 +2627,6 @@ class PreciseGCRunnable : public Runnable
|
||||
|
||||
NS_IMETHOD Run() override
|
||||
{
|
||||
JSContext* cx = dom::danger::GetJSContext();
|
||||
if (JS_IsRunning(cx))
|
||||
return NS_DispatchToMainThread(this);
|
||||
|
||||
nsJSContext::GarbageCollectNow(gcreason::COMPONENT_UTILS,
|
||||
nsJSContext::NonIncrementalGC,
|
||||
mShrinking ?
|
||||
|
Loading…
Reference in New Issue
Block a user