Closed
Bug 1502481
Opened 6 years ago
Closed 6 years ago
JSScript initialization cleanup
Categories
(Core :: JavaScript Engine, enhancement, P2)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: tcampbell, Assigned: tcampbell)
References
Details
Attachments
(5 files)
The initialization sequence is complex for JSScripts and hard to reason about. This bug aims to clean-up that code.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Depends on D9944
Assignee | ||
Comment 3•6 years ago
|
||
This reorganizes the JSScript constructor sequence into the following
layers and responsibilities:
JSScript(...) The actual C++ constructor putting script in
GC-safe state.
JSScript::New(...) Performs allocation within GC.
JSScript::Create(...) Common initialization for all script
initialization pathways.
This is more in-line with how other GC-things are created. The bitfields
saved from compile options are now done at the JSScript::Create level.
Depends on D9945
Assignee | ||
Comment 4•6 years ago
|
||
JSScript::partiallyInit -> JSScript::createPrivateScriptData
JSScript::createScriptData -> JSScript::createSharedScriptData
Depends on D9946
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D9947
Updated•6 years ago
|
Attachment #9020446 -
Attachment description: Bug 1502481 - Cleanup JSScript constructor calls → Bug 1502481 - Cleanup JSScript constructor calls This reorganizes the JSScript constructor sequence into the following layers and responsibilities:
Updated•6 years ago
|
Attachment #9020446 -
Attachment description: Bug 1502481 - Cleanup JSScript constructor calls This reorganizes the JSScript constructor sequence into the following layers and responsibilities: → Bug 1502481 - Cleanup JSScript constructor calls
Pushed by tcampbell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6ae3b85ff64c
Use sourceStart/sourceEnd name within JSScript r=jandem
https://hg.mozilla.org/integration/autoland/rev/8ef875ecc917
Cleanup JSScript nits r=jandem
https://hg.mozilla.org/integration/autoland/rev/170515f4f874
Cleanup JSScript constructor calls r=jandem
https://hg.mozilla.org/integration/autoland/rev/63cb6b558afe
Rename JSScript partiallyInit and friends r=jandem
https://hg.mozilla.org/integration/autoland/rev/c25dd8708e93
Cleanup JSScript::initFunctionPrototype r=jandem
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6ae3b85ff64c
https://hg.mozilla.org/mozilla-central/rev/8ef875ecc917
https://hg.mozilla.org/mozilla-central/rev/170515f4f874
https://hg.mozilla.org/mozilla-central/rev/63cb6b558afe
https://hg.mozilla.org/mozilla-central/rev/c25dd8708e93
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•