Closed Bug 1758088 Opened 3 years ago Closed 3 years ago

Make atomization code assume non-null cx->zone

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: jandem, Assigned: jandem)

Details

Attachments

(4 files)

We almost have this invariant, except for JS_AtomizeAndPinString{N} calls in the browser, but we can special-case that one. This lets us speed-up the atomization code a bit.

This code path is used to create XPConnect's pinned atoms.

Depends on D140304

Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b4e514565cb part 1 - Remove unused XPCJSRuntime::mStrJSVals array. r=arai https://hg.mozilla.org/integration/autoland/rev/edca55f40d6c part 2 - Remove unused js::Atomize overload. r=arai https://hg.mozilla.org/integration/autoland/rev/22c0a321c743 part 3 - Add and use js::AtomizeWithoutActiveZone. r=arai https://hg.mozilla.org/integration/autoland/rev/921feefb3594 part 4 - Assume non-null zone and main thread context in atomize functions. r=arai
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: