mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Revert SATS fully, idle runnables are working use them, faster.
Revert SATS fully, idle runnables are working use them, faster.
This commit is contained in:
parent
df3bcbbb38
commit
5a78e79eb9
8 changed files with 91 additions and 774 deletions
|
|
@ -368,27 +368,6 @@ 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