Defer JSFunction/BaseScript allocation in BinAST
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: tcampbell, Assigned: tcampbell)
References
Details
Attachments
(2 files)
Now that normal scripts are deferred, it is a much smaller task to also support BinAST while it's fate is decided.
Assignee | ||
Comment 1•4 years ago
|
||
Use consistent SourceExtent values with non-lazy BinAST scripts. Change the
accessors on js::BaseScript to be consistent with SharedContext. This will be
merged in the next patch. This patch also fixes a typo in index computation.
See BinASTParserPerTokenizer::makeEmptyFunctionNode(..) for how non-lazy
BinAST scripts initialize this. Note that toStringStart
is always 0.
These changes are largely superficial because nothing tests for these values
and BinAST is not enabled by default. Consistency is still helpful though.
Assignee | ||
Comment 2•4 years ago
|
||
Store appropriate data on the FunctionBox and let the machinery for
non-BinAST scripts do the Stencil instantiation for us.
Depends on D77188
Comment 4•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/06d56b6fdbbf
https://hg.mozilla.org/mozilla-central/rev/4525a2e75012
Description
•