Closed Bug 885182 Opened 7 years ago Closed 7 years ago
Script data fields aligned to 4 bytes even on x64
In Ion.cpp, DataAlignment is unconditionally set to 4. This causes several data fields, including fields containing pointers, to be aligned on 4-byte boundaries, causing accesses to them to be misaligned accesses.
sizeof(void *) ought to be a reasonable default setting. That way, pointer data will be aligned on all popular architectures.
Attachment #765176 - Flags: review?(mrosenberg)
Attachment #765176 - Flags: review?(mrosenberg) → review+
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
mjrosenb: I think we also we to align on 8 bytes on ARM, such as we can have fast loads of double extracted from the constant stored for bailouts and others?
Needinfo 2 years old; removing.
You need to log in before you can comment on or make changes to this bug.