Remove BaseScript::isLazyScript flag
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: tcampbell, Assigned: tcampbell)
References
Details
Attachments
(4 files)
This flag was introduced to support Bug 1529456, but should be deprecated in favour of more specific feature tests (such as hasBytecode
or hasEnclosingScope
).
The majority of the remaining uses are in Zone::cellIter
loops which should be using more specific differentiation between incomplete/hasEnclosingScript/hasEnclosingScope/hasBytecode.
Assignee | ||
Comment 1•4 years ago
|
||
Replace uses of isLazyScript (which indicates the parser that generated it)
with more specific tests like hasBytecode or hasJitScript. Also move the
hasBaselineScript and hasIonScript accessors to BaseScript.
Depends on D66876
Assignee | ||
Comment 2•4 years ago
|
||
This method indicates a BaseScript is "lazy" but has a valid enclosing scope
such that it could be compiled now. This is not true for lazy scripts with
lazy parent scripts.
Patch also cleans up the gc/PublicIterators to use this method and
hasBytecode instead of the general isLazyScript check.
Depends on D66881
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D66882
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
This method was checking for a specific partially initialized state. Replace
with checks for hasBytecode() instead (which ends up checking the same
fields).
Depends on D66883
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/36d00c1d1a1f Use more specific queries instead of BaseScript::isLazyScript r=jandem https://hg.mozilla.org/integration/autoland/rev/98e520150cc8 Add BaseScript::isReadyForDelazification r=jandem https://hg.mozilla.org/integration/autoland/rev/c8fb6eca7ad9 Remove BaseScript::IsLazyScript flag r=jandem https://hg.mozilla.org/integration/autoland/rev/cc99b4449f14 Remove JSScript::isUncompleted() r=jandem
Comment 6•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/36d00c1d1a1f
https://hg.mozilla.org/mozilla-central/rev/98e520150cc8
https://hg.mozilla.org/mozilla-central/rev/c8fb6eca7ad9
https://hg.mozilla.org/mozilla-central/rev/cc99b4449f14
Description
•