Bug 1542777 - Remove some unnecessary inludes from gc/Heap.h r=allstars.chh
authorJon Coppeard <jcoppeard@mozilla.com>
Mon, 08 Apr 2019 16:10:44 +0100
changeset 528411 974f32848a0db92b538dadda637aa4093c48b0e0
parent 528410 a57f27d3ccd0d5066c8fa85f0a5a97b5bc17601b
child 528412 03b7cf8b0c1838e421130f24ddb13d1aeee0a36e
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersallstars.chh
bugs1542777
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1542777 - Remove some unnecessary inludes from gc/Heap.h r=allstars.chh Differential Revision: https://phabricator.services.mozilla.com/D26535
js/src/gc/Heap.h
js/src/vm/JSContext.h
js/src/vm/SharedArrayObject.h
--- a/js/src/gc/Heap.h
+++ b/js/src/gc/Heap.h
@@ -2,41 +2,26 @@
  * vim: set ts=8 sts=2 et sw=2 tw=80:
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef gc_Heap_h
 #define gc_Heap_h
 
-#include "mozilla/ArrayUtils.h"
 #include "mozilla/Atomics.h"
-#include "mozilla/Attributes.h"
 #include "mozilla/DebugOnly.h"
-#include "mozilla/PodOperations.h"
 
-#include <stddef.h>
-#include <stdint.h>
-
-#include "jsfriendapi.h"
-#include "jspubtd.h"
-#include "jstypes.h"
 #include "jsutil.h"
 
 #include "ds/BitArray.h"
 #include "gc/AllocKind.h"
 #include "gc/GCEnum.h"
-#include "gc/Memory.h"
-#include "js/HeapAPI.h"
-#include "js/RootingAPI.h"
-#include "js/TracingAPI.h"
 #include "js/TypeDecls.h"
 
-#include "vm/Printer.h"
-
 namespace js {
 
 class AutoLockGC;
 class AutoLockGCBgAlloc;
 class FreeOp;
 
 namespace gc {
 
--- a/js/src/vm/JSContext.h
+++ b/js/src/vm/JSContext.h
@@ -7,16 +7,17 @@
 /* JS execution context. */
 
 #ifndef vm_JSContext_h
 #define vm_JSContext_h
 
 #include "mozilla/MemoryReporting.h"
 
 #include "ds/TraceableFifo.h"
+#include "gc/Memory.h"
 #include "js/CharacterEncoding.h"
 #include "js/ContextOptions.h"  // JS::ContextOptions
 #include "js/GCVector.h"
 #include "js/Promise.h"
 #include "js/Result.h"
 #include "js/Utility.h"
 #include "js/Vector.h"
 #include "threading/ProtectedData.h"
--- a/js/src/vm/SharedArrayObject.h
+++ b/js/src/vm/SharedArrayObject.h
@@ -8,16 +8,17 @@
 #define vm_SharedArrayObject_h
 
 #include "mozilla/Atomics.h"
 
 #include "jsapi.h"
 #include "jstypes.h"
 
 #include "gc/Barrier.h"
+#include "gc/Memory.h"
 #include "vm/ArrayBufferObject.h"
 #include "vm/JSObject.h"
 
 namespace js {
 
 class FutexWaiter;
 
 /*