Closed Bug 1718194 Opened 3 years ago Closed 3 years ago

Rewrite nsMessageManagerScriptExecutor::LoadScriptInternal based on stencil

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

nsMessageManagerScriptExecutor::LoadScriptInternal uses 2 cache:

  • nsMessageManagerScriptHolder in nsMessageManagerScriptExecutor::sCachedScripts
  • ScriptPreloader::GetCachedStencil, used from TryCacheLoadAndCompileScript

After bug 1688788, ScriptPreloader uses stencil, and nsMessageManagerScriptExecutor::TryCacheLoadAndCompileScript is rewritten to use stencil for ScriptPreloader's cache.

We should rewrite nsMessageManagerScriptHolder also to use stencil, so that ExecuteInFrameScriptEnvironment and JS::CloneAndExecuteScript call in nsMessageManagerScriptExecutor::LoadScriptInternal can be removed.

Depends on: 1688788
Depends on: 1718623
Attachment #9228985 - Attachment description: WIP: Bug 1718194 - Use stencil in nsMessageManagerScriptExecutor. r?mgaudet! → Bug 1718194 - Use stencil in nsMessageManagerScriptExecutor. r?tcampbell!
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/aa56fe2c069d Use stencil in nsMessageManagerScriptExecutor. r=tcampbell,kmag
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/726828578df1 Use stencil in nsMessageManagerScriptExecutor. r=tcampbell,kmag
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
Regressions: 1736039
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: