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 469594 974f32848a0d
parent 469593 a57f27d3ccd0
child 469595 03b7cf8b0c18
push id35875
push userccoroiu@mozilla.com
push dateTue, 16 Apr 2019 04:06:16 +0000
treeherdermozilla-central@a83cab75b00d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersallstars
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;
 
 /*