Remove JS::TransitiveCompileOptions::deoptimizeModuleGlobalVars
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
People
(Reporter: arai, Assigned: arai)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
The JS::TransitiveCompileOptions::deoptimizeModuleGlobalVars
was added to keep the backward compatibility of the Cu.import
behavior with the "JSM to ESM" shim, which required all the global variables being on the environment object.
// De-optimize ES module's top-level `var`s, in order to define all of them
// on the ModuleEnvironmentObject, instead of local slot.
//
// This is used for providing all global variables in Cu.import return value
// (see bug 1766761 for more details), and this is temporary solution until
// ESM-ification finishes.
//
// WARNING: This option will eventually be removed.
bool deoptimizeModuleGlobalVars = false;
Once the JSM API is removed, this option can be removed.
The last and the only consumer will be removed in bug 1881888
Updated•2 months ago
|
Assignee | ||
Comment 1•2 months ago
|
||
Comment 3•1 month ago
|
||
bugherder |
Comment 4•1 month ago
•
|
||
Backed out as requested by arai for causing Bug 1946592.
Comment 6•6 days ago
|
||
bugherder |
Comment 8•6 days ago
|
||
Backed out for causing high frequency failures at browser_bannerClicking.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/6900871c5dfcdeb2e0de821f57f877b64d43bd5e
Failure log: https://treeherder.mozilla.org/logviewer?job_id=497828384&repo=autoland&lineNumber=5608
Updated•6 days ago
|
Comment 9•5 days ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/6900871c5dfc
Assignee | ||
Updated•5 days ago
|
Description
•