Closed Bug 1702278 Opened 4 years ago Closed 4 years ago

Manage Debug Metadata separately from CompileOptions

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: mgaudet, Assigned: mgaudet)

Details

Attachments

(3 files, 1 obsolete file)

CompileOptions has a whole spectrum of responsibilities that make it a complicated interface to handle.

We would like to strip it of some of its responsibilities. One facet of CompileOptions is debugger related metadata, destined for the ScriptSourceObject that is currently injected via CompileOptions.

We can remove this responsibility from CompileOptions by making it a post-processing step applied after script compilation. This has the knock on benefit of highlighting the places it is relevant or not relevant.

Assignee: nobody → mgaudet

This simplified the use of JSExecutionContext, and make future patches
in this stack simpler.

This is a diagnostic patch to help catch misuse of the two phase initialization
of ScriptSourceObject. One potential enhancement would be to make this
modification debug only.

Attachment #9212898 - Attachment description: WIP: Bug 1702278 - Make CompileOptions a member of JSExecutionContext r?tcampbell → Bug 1702278 - Make CompileOptions a member of JSExecutionContext r?tcampbell
Attachment #9212899 - Attachment description: WIP: Bug 1702278 - Assert initialization of ScriptSourceObject r?tcampbell → Bug 1702278 - Assert initialization of ScriptSourceObject r?tcampbell
Attachment #9212900 - Attachment description: WIP: Bug 1702278 - Move ScriptSourceObject::initFromOptions further out in compilation APIs r?tcampbell → Bug 1702278 - Move ScriptSourceObject::initFromOptions further out in compilation APIs r?tcampbell
Attachment #9212902 - Attachment description: WIP: Bug 1702278 - Defer setting debug metadata until after script compilation is finished. r?tcampbell!,smaug! → Bug 1702278 - Defer setting debug metadata until after script compilation is finished. r?tcampbell!,smaug!
Severity: -- → N/A
Priority: -- → P1
Attachment #9212900 - Attachment is obsolete: true
Pushed by mgaudet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e8fe8b5be92f Make CompileOptions a member of JSExecutionContext r=tcampbell https://hg.mozilla.org/integration/autoland/rev/a52287ecc8ac Assert initialization of ScriptSourceObject r=tcampbell https://hg.mozilla.org/integration/autoland/rev/3afa2b70c0f9 Defer setting debug metadata until after script compilation is finished. r=tcampbell,smaug
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: