Closed Bug 1688790 Opened 5 years ago Closed 4 years ago

Migrate StartupCache bytecode format to Stencil-XDR

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
94 Branch
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.

Blocks: 1688791
Assignee: nobody → mgaudet
Status: NEW → ASSIGNED
Attachment #9200992 - Attachment is obsolete: true

Remove always-true parameter to TryCacheLoadAndCompileScript, and don't consult
ScriptPreloader for loads that will never hit due to incorrect schema.

Depends on D103708

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

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.

Flags: needinfo?(mgaudet)
Flags: needinfo?(arai.unmht)
Flags: needinfo?(arai.unmht)

Due to some startup performance concerns we plan to sit on this for a bit.

Flags: needinfo?(mgaudet)
Attachment #9217514 - Attachment is obsolete: true
Attachment #9236843 - Attachment description: WIP: Bug 1688790 - Clean up conditions for storing cache into the preloader into the startup cache r?kmag! → Bug 1688790 - Clean up conditions for storing cache into the preloader into the startup cache r?kmag!
Attachment #9217513 - Attachment description: Bug 1688790 - Clean up TryCacheLoadAndCompileScript r?kmag → Bug 1688790 - Clean up TryCacheLoadAndCompileScript r?kmag!
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/86ca7b7b35de Clean up conditions for storing cache into the preloader into the startup cache r=kmag,tcampbell https://hg.mozilla.org/integration/autoland/rev/14afba0107e7 Clean up TryCacheLoadAndCompileScript r=kmag,tcampbell https://hg.mozilla.org/integration/autoland/rev/7c00354ac078 Convert startup cache to managing stencils not scripts r=kmag,tcampbell
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
Regressions: 1735550
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: