Closed Bug 1550554 Opened 5 years ago Closed 5 years ago

Use OwnedSlice / ArcSlice and such even more.

Categories

(Core :: CSS Parsing and Computation, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(6 files)

No description provided.

Share a singleton to avoid allocating for empty lists.

This adds a bit of complexity, which I think will pay off in the end. Removals
incoming.

Depends on D30543

This saves the intermediate allocation.

Depends on D30545

We could use ArcSlice if wanted I guess, your call. Though will change is not
supposed to be used very frequently.

Depends on D30547

Assignee: nobody → emilio
Priority: -- → P3
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/45f171b26e95
Implement ArcSlice::default(). r=heycam
https://hg.mozilla.org/integration/autoland/rev/57f2362aa538
Use an ArcSlice as the computed value representation of inherited list properties. r=heycam
https://hg.mozilla.org/integration/autoland/rev/2c31fe18eefd
Share computed and specified value representation of -moz-context-properties. r=heycam
https://hg.mozilla.org/integration/autoland/rev/b28a48e2ed21
Use ArcSlice for quotes. r=heycam
https://hg.mozilla.org/integration/autoland/rev/882ab9868c95
Add bindings for box shadows, and remove nsCSSShadowArray and friends. r=heycam
https://hg.mozilla.org/integration/autoland/rev/b90c2cf5b8c5
Use OwnedSlice for will-change. r=heycam

New failure "Assertion failure: _0.ptr->data.header.header == kArcSliceCanary (Uh?), at z:/build/build/src/obj-firefox/dist/include\mozilla/ServoStyleConstsInlines.h:118"

Failure link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=246826943&repo=autoland&lineNumber=993

Yeah, the ArcSlice::default() sharing was busted for 32-bit builds, that's a bit of a shame :-)

I'll re-land with it fixed.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7c2ff6058888
Implement ArcSlice::default(). r=heycam
https://hg.mozilla.org/integration/autoland/rev/6524a34864c3
Use an ArcSlice as the computed value representation of inherited list properties. r=heycam
https://hg.mozilla.org/integration/autoland/rev/79010ce706eb
Share computed and specified value representation of -moz-context-properties. r=heycam
https://hg.mozilla.org/integration/autoland/rev/1e32fe8538ed
Use ArcSlice for quotes. r=heycam
https://hg.mozilla.org/integration/autoland/rev/9efd6e065be9
Add bindings for box shadows, and remove nsCSSShadowArray and friends. r=heycam
https://hg.mozilla.org/integration/autoland/rev/d0e6717d1cf0
Use OwnedSlice for will-change. r=heycam
Type: defect → task
Regressions: 1557704
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: