Closed Bug 1731359 Opened 3 years ago Closed 3 years ago

Use SmallValueHolder for more frame properties, now that frame properties have 64 bits of storage even on 32-bit systems

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

In bug 1591366, we're changing our internal frame-property representation to consistently use 64 bits of storage for each property (rather than using a void* as the internal storage, which only gives us 32 bits on 32-bit systems)

Now that we've got 64 bits, I suspect there are some frame properties (of size between 32bits and 64bits) which we can convert to use SmallValueHolder, to be stored directly as the frame property value instead of a pointed-to external value.

Assignee: nobody → dholbert
Status: NEW → ASSIGNED

This frame property's type is small enough to fit directly in the property
table's 64-byte slot; so, this patch makes us store the data directly there
(rather than allocating it externally and storing a pointer in the table).

This patch shouldn't impact behavior at all.

This frame property's type is small enough to fit directly in the property
table's 64-byte slot; so, this patch makes us store the data directly there
(rather than allocating it externally and storing a pointer in the table).

This patch shouldn't impact behavior at all.

Depends on D126031

Blocks: 1731509

(bug 1591366 -- whose 'part 1' we depend on here -- just re-landed. Once it's clear that it has stuck, I'll go ahead and land this.)

Pushed by dholbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/149576c5378b part 1: Change the "NormalPositionProperty" frame property to use the "small value" method of storage. r=emilio https://hg.mozilla.org/integration/autoland/rev/efaac9f0c316 part 2: Change the "ContentScrollPos" frame property to use the "small value" method of storage. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: