Closed Bug 815460 Opened 13 years ago Closed 13 years ago

Always inline JS_THIS

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

JS_THIS doesn't always get inlined. And when it doesn't, at least gcc 4.4 32-bit generates an 8-byte memmove for the jsval copy constructor(!). Needless to say, this is all very slow.
Comment on attachment 685417 [details] [diff] [review] Always inline JS_THIS so that we don't run into performance issues if the compiler decides not to inline it. Review of attachment 685417 [details] [diff] [review]: ----------------------------------------------------------------- Swiping.
Attachment #685417 - Flags: review?(luke) → review+
Flags: in-testsuite-
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: [need review]
Target Milestone: --- → mozilla20
Status: NEW → RESOLVED
Closed: 13 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: