mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
7398ecce66
This saves one word per static atom, per process. The `nsGkAtoms` change is only a small part of this commit. In regen_atoms.py: - There is now only one link name per platform: nsGkAtoms::sAtoms[]. - But there is a new constant per atom, giving the index into nsGkAtoms::sAtoms[]. - And the `atom!` macro for each atom indexes into nsGkAtoms::sAtoms[] using the index constant. - A couple of `*mut` pointers are now `*const`. Elsewhere, the `(nsStaticAtom*)` casts within the `AppendElement()` calls are necessary to avoid link errors, presumably due to some template instantiation wrinkle. --HG-- extra : rebase_source : 629642e708c8bc6e27d6057beae5f35955fdd837 |
||
---|---|---|
.. | ||
fallible | ||
hashglobe | ||
malloc_size_of | ||
malloc_size_of_derive | ||
selectors | ||
servo_arc | ||
size_of_test | ||
style | ||
style_derive | ||
style_traits |