From 0ff9992ea1e1ff1b5f65ef4dfcd1eb4c22d81742 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 8 Aug 2023 13:14:12 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibJS/AST.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Userland/Libraries/LibJS/AST.h b/Userland/Libraries/LibJS/AST.h index ff006f2b3f..68ac11575d 100644 --- a/Userland/Libraries/LibJS/AST.h +++ b/Userland/Libraries/LibJS/AST.h @@ -669,7 +669,6 @@ private: virtual bool is_identifier() const override { return true; } DeprecatedFlyString m_string; - mutable EnvironmentCoordinate m_cached_environment_coordinate; Optional m_local_variable_index; bool m_is_global { false }; @@ -1865,7 +1864,6 @@ public: private: NonnullRefPtr const m_tag; NonnullRefPtr const m_template_literal; - mutable HashMap, Handle> m_cached_values; }; class MemberExpression final : public Expression {