Remove run-once lambda optimization from JS Parser/Emitter
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox85 | --- | fixed |
People
(Reporter: tcampbell, Assigned: tcampbell)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
The ScriptStencil::isSingleton
flag was used to influence TI parameters. With TI being removed in Bug 1673553, we can remove this machinery.
This is particularly valuable as it was the final place where ImmutableScriptFlags
could mismatch between lazy and non-lazy scripts.
Assignee | ||
Comment 1•4 years ago
|
||
This is not needed now that TypeInference is permanently disabled. Release
asserts are used until the last vestiges of TI are removed.
Assignee | ||
Comment 2•4 years ago
|
||
This mechanism does nothing without TypeInference, so we can remove it now.
This is particularly valuable as this was the remaining case where the
ImmutableScriptFlags of a BaseScript could be mutated during delazification.
Depends on D97029
Assignee | ||
Comment 3•4 years ago
|
||
Now that we don't need to update ObjectGroup while instantiating stencil, we
don't need to worry about the standalone function case. A standalone function
also has the name set already so we do not need to worry about that either.
Depends on D97030
Assignee | ||
Comment 4•4 years ago
|
||
This code was originally moved because ParserAtom -> JSAtom conversion was
fallible. Now that we instantiate JSAtoms in bulk, we can move the name
update code to the same place as other inner-function updates.
Depends on D97056
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/70526089dbbc Remove JSFunction::setTypeForScriptedFunction. r=jandem https://hg.mozilla.org/integration/autoland/rev/5f378a0b0be6 Remove run-once-lambda/singleton-group heuristic. r=jandem https://hg.mozilla.org/integration/autoland/rev/7661dae6b851 Remove ScriptStencil::isStandaloneFunction. r=arai https://hg.mozilla.org/integration/autoland/rev/1f70025cf071 Move delazification function-name update to UpdateEmittedInnerFunctions. r=arai
Comment 6•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/70526089dbbc
https://hg.mozilla.org/mozilla-central/rev/5f378a0b0be6
https://hg.mozilla.org/mozilla-central/rev/7661dae6b851
https://hg.mozilla.org/mozilla-central/rev/1f70025cf071
Description
•