1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

LibJS: Remove now-unused mutable caches from AST nodes

The Identifier and TaggedTemplateLiteral AST nodes had caches that were
only used by the AST interpreter.
This commit is contained in:
Andreas Kling 2023-08-08 13:14:12 +02:00
parent f49c5ca553
commit 0ff9992ea1

View file

@ -669,7 +669,6 @@ private:
virtual bool is_identifier() const override { return true; }
DeprecatedFlyString m_string;
mutable EnvironmentCoordinate m_cached_environment_coordinate;
Optional<size_t> m_local_variable_index;
bool m_is_global { false };
@ -1865,7 +1864,6 @@ public:
private:
NonnullRefPtr<Expression const> const m_tag;
NonnullRefPtr<TemplateLiteral const> const m_template_literal;
mutable HashMap<GCPtr<Realm>, Handle<Array>> m_cached_values;
};
class MemberExpression final : public Expression {