Jan de Mooij 21f55bdb3e Bug 1827420 part 2 - Optimize AutoSetNewObjectMetadata. r=jonco
Inline more code and add `realm->hasAllocationMetadataBuilder()` checks in a
few places.

Removes the `prevState_` field beacuse it was always `ImmediateMetadata`. We now
assert this in the constructor.

This makes a `getOwnPropertyNames` micro-benchmark about 15% faster.

Differential Revision: https://phabricator.services.mozilla.com/D175137
2023-04-12 05:44:30 +00:00
..