mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
reorder members to avoid wasted space due to struct member alignment rules. This will generally save one machine word per XPTMethodDescriptor (and we make a bunch of those). bug 120005. r=dbradley, sr=shaver
This commit is contained in:
parent
222f0cec01
commit
22eb58b348
@ -414,11 +414,11 @@ XPT_FillParamDescriptor(XPTArena *arena,
|
|||||||
* interface method.
|
* interface method.
|
||||||
*/
|
*/
|
||||||
struct XPTMethodDescriptor {
|
struct XPTMethodDescriptor {
|
||||||
PRUint8 flags;
|
|
||||||
char *name;
|
char *name;
|
||||||
PRUint8 num_args;
|
|
||||||
XPTParamDescriptor *params;
|
XPTParamDescriptor *params;
|
||||||
XPTParamDescriptor *result;
|
XPTParamDescriptor *result;
|
||||||
|
PRUint8 flags;
|
||||||
|
PRUint8 num_args;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* flag bits -- jband and fur were right, and I was miserably wrong */
|
/* flag bits -- jband and fur were right, and I was miserably wrong */
|
||||||
|
Loading…
Reference in New Issue
Block a user