mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Revert "Compiles and does not crash."
This reverts commit 48ba811bd6bed8b75d223eddf74c0785e7e81efd.
This commit is contained in:
parent
02e987da29
commit
3bbee255fd
6 changed files with 598 additions and 0 deletions
|
|
@ -368,6 +368,27 @@ public:
|
|||
// isn't one.
|
||||
static CycleCollectedJSContext* Get();
|
||||
|
||||
static SlowAsynchronousTaskScheduler* GetScheduler()
|
||||
{
|
||||
CycleCollectedJSContext* context = Get();
|
||||
return context ? &context->mSATS : nullptr;
|
||||
}
|
||||
|
||||
// Because of our Web Worker setup being broken, we need to specially initiate
|
||||
// timers for Worker threads.
|
||||
static nsresult ScheduleTimer(nsITimer* aTimer,
|
||||
nsICancelableRunnable* aRunnable,
|
||||
uint32_t aDelay)
|
||||
{
|
||||
CycleCollectedJSContext* context = Get();
|
||||
NS_ENSURE_STATE(context);
|
||||
return context->ScheduleTimerForThread(aTimer, aRunnable, aDelay);
|
||||
}
|
||||
|
||||
virtual nsresult ScheduleTimerForThread(nsITimer* aTimer,
|
||||
nsICancelableRunnable* aRunnable,
|
||||
uint32_t aDelay) = 0;
|
||||
|
||||
// Add aZone to the set of zones waiting for a GC.
|
||||
void AddZoneWaitingForGC(JS::Zone* aZone)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue