Closed Bug 556315 Opened 14 years ago Closed 14 years ago

Followup patches for bug 515496

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jorendorff, Assigned: jorendorff)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(2 files)

I landed bug 515496 (blazinglyfastthis). This bug is to spin out the changes I suggested in my review.
Attachment #436220 - Flags: review?(gal) → review+
Depends on: blazinglyfastthis
Comment on attachment 436222 [details] [diff] [review]
Part 2, JSObject::getGlobal() and JSStackFrame::getThisObject() - v1

Might be worth to make getGlobal() inline (jsobjinlines.h).
Attachment #436222 - Flags: review?(gal) → review+
(In reply to comment #3)
> (From update of attachment 436222 [details] [diff] [review])
> Might be worth to make getGlobal() inline (jsobjinlines.h).

Could be -- small code size increase for perf win. size and shark or *grind could be enough to tell.

/be
Inlining getGlobal didn't affect perf. It's not called frequently.

Bizarrely, inlining it increases the final code size of libmozjs.so by 3 bytes. I don't even want to know.
http://hg.mozilla.org/mozilla-central/rev/62016a11cd1c
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: