Migrate StartupCache bytecode format to Stencil-XDR
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox94 | --- | fixed |
People
(Reporter: tcampbell, Assigned: mgaudet)
References
Details
Attachments
(3 files, 2 obsolete files)
Remove the use of EncodeScript and instead using Stencil-XDR APIs. This requires converting from post-execution encoding to incremental mode, but full-parsing is always used with these caches so this is not a big hurdle.
| Assignee | ||
Comment 1•5 years ago
|
||
Depends on D103830
Updated•5 years ago
|
Updated•5 years ago
|
| Assignee | ||
Comment 2•5 years ago
|
||
Remove always-true parameter to TryCacheLoadAndCompileScript, and don't consult
ScriptPreloader for loads that will never hit due to incorrect schema.
Depends on D103708
| Assignee | ||
Comment 3•5 years ago
|
||
Depends on D113010
| Assignee | ||
Comment 4•5 years ago
|
||
Note: The stencil will hold pointers into the StartupCache buffer;
There is an assumption in this patch that the lifetime of the buffer
is long enough that we can compile the stencil without causing issues.
Note, we have ot adjust the test_source-03 expectation. Since we no longer
cache scripts, and instead cache stencils, it's not guaranteed the scripts
will have identical ScriptSourceObjects.
Depends on D113011
Comment 5•5 years ago
|
||
There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:mgaudet, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•5 years ago
|
| Assignee | ||
Comment 6•5 years ago
|
||
Due to some startup performance concerns we plan to sit on this for a bit.
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 10•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/86ca7b7b35de
https://hg.mozilla.org/mozilla-central/rev/14afba0107e7
https://hg.mozilla.org/mozilla-central/rev/7c00354ac078
Description
•