Closed Bug 1840839 Opened 2 years ago Closed 2 years ago

Make it possible to construct `JS::CompileOptions` which reflects user prefs, without having JS context?

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently the JS::CompileOptions is constructed from JSContext, by copying the user pref from JS::ContextOptions and JS::RealmCreationOptions.

JS::CompileOptions::CompileOptions

Currently the user prefs are mirrored to realm options and context options in
xpc::SetPrefableRealmOptions and xpc::SetPrefableContextOptions.

if we can factor out compilation-specific options (such as new syntax) and handle it separately, we could create JS::CompileOption off main thread.

Depends on: 1840996
Blocks: 1841016
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Attachment #9341700 - Attachment description: Bug 1840839 - Add xpc::SetPrefableCompileOptions. r?mccr8! → Bug 1840839 - Add xpc::SetPrefableCompileOptions and move related prefs to StaticPrefs. r?mccr8!
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/fc3e4979b00e Add xpc::SetPrefableCompileOptions and move related prefs to StaticPrefs. r=mccr8
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
Status: RESOLVED → REOPENED
Flags: needinfo?(arai.unmht)
Resolution: FIXED → ---
Target Milestone: 117 Branch → ---
Backout by imoraru@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/511a6a347d49 Backed out 2 changesets (bug 1840839, bug 1841016) for causing wasm crashes. a=backout
Flags: needinfo?(arai.unmht)
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/effe2e14391b Add xpc::SetPrefableCompileOptions and move related prefs to StaticPrefs. r=mccr8
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: