Open Bug 1773339 Opened 2 years ago Updated 9 months ago

Use TaskController directly for off-thread JS parsing

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

People

(Reporter: tcampbell, Unassigned)

References

(Depends on 6 open bugs, Blocks 1 open bug)

Details

Attachments

(2 obsolete files)

While off-thread parsing currently uses Task Controller background threads, the dispatch queue and OffThreadToken is still managed by spidermonkey. This is a blackbox to our other Task scheduling efforts so we should avoid the extra steps and try to use TaskController directly.

Depends on: 1773683

Need to fill out jsapi-test for more details and use cases.

AsyncParseGlobalScript() has a stackLimit parameter because I don't expect to
know what the limit for the TaskController task is, or even that the function
is being run by TaskController.

Depends on D167460

Assignee: nobody → bthrall
Status: NEW → ASSIGNED
Assignee: bthrall → nobody
Status: ASSIGNED → NEW

Comment on attachment 9313378 [details]
WIP: Bug 1773339 - Make cx parameter to CompileGlobalScriptToStencilAndMaybeInstantiate optional

Revision D167460 was moved to bug 1773319. Setting attachment 9313378 [details] to obsolete.

Attachment #9313378 - Attachment is obsolete: true

Comment on attachment 9313379 [details]
WIP: Bug 1773339 - Intro API to create/destroy FrontendContext, AsyncScriptParse

Revision D167461 was moved to bug 1773319. Setting attachment 9313379 [details] to obsolete.

Attachment #9313379 - Attachment is obsolete: true
Depends on: 1816776
Depends on: 1834809
Depends on: 1834816
Depends on: 1836422
Depends on: 1837964
Depends on: 1838764
Depends on: 1838771
Depends on: 1840839
Depends on: 1845416
Depends on: 1845584
Depends on: 1845638
Depends on: 1846160
Depends on: 1846194
Depends on: 1846380
Depends on: 1846388
Depends on: 1845806
Depends on: 1846650
Depends on: 1840831
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: