瀏覽代碼

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 年之前
父節點
當前提交
30fcb07fe8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Userland/Libraries/LibJS/Runtime/Environment.h

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

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