Factor ImmutableScriptData fields out of ScriptStencil
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: jorendorff, Assigned: jorendorff)
References
(Blocks 1 open bug)
Details
(Whiteboard: [smooshmonkey-mvp])
Attachments
(7 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
ScriptStencil has a set of fields that are redundant with stuff in ImmutableScriptData. The idea is, instead, for ImmutableScriptData to be a member of the stencil family of types.
Ownership: the field can be a UniquePtr<ImmutableScriptData>
.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Doing this causes JSScript::fullyInitFromStencil
to consume the stencil, because it has to take ownership of the UniquePtr
. The alternative would be something like Rust's Arc<T>
.
Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D63655
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D63656
Assignee | ||
Comment 5•4 years ago
|
||
It is apparently completely unnecessary.
Depends on D63657
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D63658
Assignee | ||
Comment 7•4 years ago
|
||
I'm going to wait and land this after bug 1612515.
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D63659
Assignee | ||
Comment 9•4 years ago
|
||
Depends on D66352
Assignee | ||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Pushed by jorendorff@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/de45fa761e5d Part 1: Change ImmutableScriptData::new_ to return UniquePtr. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/f3173b7c223c Part 2: Change JSScript::createImmutableScriptData to initImmutableScriptData. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/9c1fc73b9163 Part 3: Change ImmutableScriptData::XDR to not need friend access to JSScript. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/c4dc09959bed Part 4: Remove js::frontend::CGScopeNote. r=mgaudet
Comment 11•4 years ago
|
||
Pushed by jorendorff@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c00b5eef4b78 Part 5: Factor out an ImmutableScriptData from ScriptStencil. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/24af972b7541 Part 6: Add field initializers to ScopeNote. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/67cc4f2b6248 Part 7: Update SmooshScriptStencil. r=arai
Comment 12•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/de45fa761e5d
https://hg.mozilla.org/mozilla-central/rev/f3173b7c223c
https://hg.mozilla.org/mozilla-central/rev/9c1fc73b9163
https://hg.mozilla.org/mozilla-central/rev/c4dc09959bed
https://hg.mozilla.org/mozilla-central/rev/c00b5eef4b78
https://hg.mozilla.org/mozilla-central/rev/24af972b7541
https://hg.mozilla.org/mozilla-central/rev/67cc4f2b6248
Updated•4 years ago
|
Description
•