Closed Bug 1359421 Opened 8 years ago Closed 8 years ago

Simplify/optimize SharedContext::isFunctionBox

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: jandem, Assigned: jandem)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
Currently we have a virtual call to get the ObjectBox and then check if it's a FunctionBox, but we can just check the Kind enum. I noticed the virtual call in a profile and this patch also simplifies the code a bit.
Attachment #8861431 - Flags: review?(shu)
Comment on attachment 8861431 [details] [diff] [review] Patch Review of attachment 8861431 [details] [diff] [review]: ----------------------------------------------------------------- Oh cool, thanks for the patch.
Attachment #8861431 - Flags: review?(shu) → review+
Pushed by jandemooij@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/28e4528663c4 Simplify/optimize SharedContext::isFunctionBox by removing an unnecessary virtual call. r=shu
This improved Octane-CodeLoad by 2.7% on the Mac x64 slave.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: