Browse Source

LibJS: Make JS::Environment smaller by reordering members

By putting `m_permanently_screwed_by_eval` first, it folds into the
padding at the end of the base class (JS::Cell).
Andreas Kling 3 years ago
parent
commit
30fcb07fe8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Userland/Libraries/LibJS/Runtime/Environment.h

+ 2 - 2
Userland/Libraries/LibJS/Runtime/Environment.h

@@ -67,10 +67,10 @@ protected:
 private:
     virtual bool is_environment() const final { return true; }
 
+    bool m_permanently_screwed_by_eval { false };
+
     GlobalObject* m_global_object { nullptr };
     Environment* m_outer_environment { nullptr };
-
-    bool m_permanently_screwed_by_eval { false };
 };
 
 }