Closed Bug 746228 Opened 13 years ago Closed 13 years ago

pack JSPropertyDescriptor better on 64-bit hosts

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(1 file)

JSProperty descriptor is currently laid out like so: JSObject *obj; unsigned attrs; JSPropertyOp getter; JSStrictPropertyOp setter; jsval value; unsigned shortid; which on 64-bit platforms introduces eight bytes of padding: four after each unsigned member. The fields should be reordered to eliminate said padding. Patch coming up.
Attached patch patchSplinter Review
Attachment #615782 - Flags: review?(luke)
Comment on attachment 615782 [details] [diff] [review] patch Could you fix the alignment of attrs and shortid? These are some style casualties from the recent removal of uintN.
Attachment #615782 - Flags: review?(luke) → review+
Assignee: general → nfroyd
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: