gecko-dev/servo/components
Nicholas Nethercote 7398ecce66 Bug 1449787 - Make static atom pointers constexpr. r=froydnj,emilio
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
2018-10-04 09:16:11 +10:00
..
fallible Bug 1493435 - Partially revert servo/servo#21746. r=ajeffrey 2018-09-23 13:47:26 +02:00
hashglobe Bug 1491577 - Format hashglobe. r=emilio 2018-09-15 19:21:23 +02:00
malloc_size_of Bug 1493435 - Partially revert servo/servo#21746. r=ajeffrey 2018-09-23 13:47:26 +02:00
malloc_size_of_derive Bug 1488854: Rustfmt malloc_size_of & derive. r=emilio 2018-09-05 19:31:09 +02:00
selectors Bug 1493435 - Partially revert servo/servo#21746. r=ajeffrey 2018-09-23 13:47:26 +02:00
servo_arc Bug 1475691 - Fix tidy issues. r=me 2018-09-18 11:48:56 +02:00
size_of_test Bug 1491577 - Format component size_of_test. r=emilio 2018-09-15 19:23:09 +02:00
style Bug 1449787 - Make static atom pointers constexpr. r=froydnj,emilio 2018-10-04 09:16:11 +10:00
style_derive Bug 1489676 - Teach ComputeSquaredDistance derive about #[animation(constant)]. r=xidorn 2018-09-11 00:12:49 +02:00
style_traits Bug 1491577 - Format component style_traits. r=emilio 2018-09-15 19:21:50 +02:00