Bläddra i källkod

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.
Andreas Kling 2 år sedan
förälder
incheckning
0ff9992ea1
1 ändrade filer med 0 tillägg och 2 borttagningar
  1. 0 2
      Userland/Libraries/LibJS/AST.h

+ 0 - 2
Userland/Libraries/LibJS/AST.h

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