1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

LibJS: Remove m_first_invalid_property_range from ObjectExpression

This was state only used by the parser to output an error with
appropriate location. This shrinks the size of ObjectExpression from
120 bytes down to just 56. This saves roughly 2.5 MiB when loading
twitter.
This commit is contained in:
davidot 2022-11-27 02:24:38 +01:00 committed by Linus Groh
parent 3acbd96851
commit 2c26ee89ac
3 changed files with 12 additions and 9 deletions

View file

@ -282,6 +282,7 @@ private:
ScopePusher* current_scope_pusher { nullptr };
HashMap<StringView, Optional<Position>> labels_in_scope;
HashMap<size_t, Position> invalid_property_range_in_object_expression;
HashTable<StringView>* referenced_private_names { nullptr };
bool strict_mode { false };