Closed Bug 1669847 Opened 4 years ago Closed 4 years ago

Make Stencil instantiation use const references to the stencil

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

(Blocks 1 open bug)

Details

Attachments

(5 files, 1 obsolete file)

To make it easier to manage lifetimes of stencils, we should remove more cases where we may mutate the stencil during instantiation.

Instead of waiting until instantiation, deduplicate the bytecode as soon as
we create the stencil. This lets the stencil become immutable sooner.

Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/52101621da0a Deduplicate bytecode while building Stencil. r=arai https://hg.mozilla.org/integration/autoland/rev/644420b101ea Make ScopeStencil instantiation const. r=arai https://hg.mozilla.org/integration/autoland/rev/337571ce1b87 Make ScriptStencil instantiation const. r=arai https://hg.mozilla.org/integration/autoland/rev/afbd765c6935 Make StencilModuleMetadata instantiation const. r=arai https://hg.mozilla.org/integration/autoland/rev/f7cec3c83d8a Make RegExpStencil instantiation const. r=arai https://hg.mozilla.org/integration/autoland/rev/e88890094825 Make CompilationStencil instantiation const. r=arai
Regressions: 1670013
Backout by nbeleuzu@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/ca279e551454 Backed out 6 changesets as req by tcampbell for creating fuzz-blocker Bug 1670013. DONTBUILD a=backout
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 83 Branch → ---
Depends on: 1670077

Comment on attachment 9180276 [details]
Bug 1669847 - Deduplicate bytecode while building Stencil. r?arai

Revision D92827 was moved to bug 1670077. Setting attachment 9180276 [details] to obsolete.

Attachment #9180276 - Attachment is obsolete: true

I've added a fix to the fuzzing issue in Bug 1670077 and most the first patch from this bug to that one.

Flags: needinfo?(tcampbell)
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/582030c62bf7 Make ScopeStencil instantiation const. r=arai https://hg.mozilla.org/integration/autoland/rev/412d0376ead5 Make ScriptStencil instantiation const. r=arai https://hg.mozilla.org/integration/autoland/rev/a20885ccf659 Make StencilModuleMetadata instantiation const. r=arai https://hg.mozilla.org/integration/autoland/rev/7035e72bd96b Make RegExpStencil instantiation const. r=arai https://hg.mozilla.org/integration/autoland/rev/3a5a129d7e71 Make CompilationStencil instantiation const. r=arai
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: