Closed Bug 946662 Opened 11 years ago Closed 11 years ago

Add MOZ_FINAL to MResumePoint

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: jandem, Assigned: jandem)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Attached patch PatchSplinter Review
MResumePoint::setOperand sometimes shows up pretty high in profiles. It's mainly called from MResumePoint::inherit: we're using a slow virtual call there instead of inlining setOperand (at least with Clang 3.3).

This patch marks MResumePoint as MOZ_FINAL, so that the compiler knows there are no subclasses (that can override setOperand), and it can safely inline the virtual MResumePoint::setOperand.

Bug 891087 did this for MPhi and some other instructions.
Attachment #8343016 - Flags: review?(hv1989)
Attachment #8343016 - Flags: review?(hv1989) → review+
https://hg.mozilla.org/mozilla-central/rev/c923a7e0c5ad
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: