mozilla::CompactPair doesn't seem appropriate because its base class optimization doesn't apply. Differential Revision: https://phabricator.services.mozilla.com/D178843