Closed Bug 1377486 Opened 7 years ago Closed 7 years ago

Make nsWindow final to allow the compiler to devirtualize some calls

Categories

(Core :: Widget: Gtk, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Performance Impact ?
Tracking Status
firefox56 --- fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

Attachments

(2 files)

      No description provided.
The nsChildWindow child class is empty so it can be removed
and thus we can make nsWindow 'final'.

Green on Linux.  I'm also working on the same for Windows, but
that doesn't quite work yet...
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ed958cccbc7f110e2fbb49c79f2b09d7b8d4b20d
Attachment #8882601 - Flags: review?(tnikkel)
Attachment #8882601 - Flags: review?(tnikkel) → review+
Actually, I might as well tag along Android / UIKit here since they
were so trivial (assuming they compile):
https://treeherder.mozilla.org/#/jobs?repo=try&revision=98a2b76d0a30bd7aad52fecc1fd7afc7470ed975
(I'm fixing Windows in bug 1377490 and cocoa in bug 1377591)
I'll fold this into the first part before landing.
Attachment #8882726 - Flags: review?(tnikkel)
Attachment #8882726 - Flags: review?(tnikkel) → review+
Pushed by mpalmgren@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b3a2348ce59f
Make nsWindow 'final' to possibly devirtualize some calls.  r=tn
https://hg.mozilla.org/mozilla-central/rev/b3a2348ce59f
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Performance Impact: --- → ?
Whiteboard: [qf]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: