tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit ed96172399b62d8c85c891a9c41df24155ac1af0
parent abfe0e774ee453cb352ac46cc78e6fe4d848b503
Author: serge-sans-paille <sguelton@mozilla.com>
Date:   Wed, 29 Oct 2025 07:55:04 +0000

Bug 1996939 - Remove unused mfbt inclusion in js/** r=spidermonkey-reviewers,mgaudet

Differential Revision: https://phabricator.services.mozilla.com/D270386

Diffstat:
Mjs/loader/ScriptLoadRequest.h | 1-
Mjs/public/Conversions.h | 1-
Mjs/src/builtin/TestingFunctions.cpp | 1-
Mjs/src/builtin/intl/DateTimeFormat.cpp | 1-
Mjs/src/builtin/intl/Segmenter.cpp | 1-
Mjs/src/builtin/temporal/Instant.cpp | 1-
Mjs/src/builtin/temporal/TemporalParser.cpp | 1-
Mjs/src/builtin/temporal/TimeZone.cpp | 1-
Mjs/src/debugger/Debugger.cpp | 1-
Mjs/src/debugger/DebuggerMemory.cpp | 1-
Mjs/src/debugger/Frame.cpp | 17++++++++---------
Mjs/src/ds/Bitmap.h | 1-
Mjs/src/ds/LifoAlloc.h | 1-
Mjs/src/frontend/DecoratorEmitter.h | 1-
Mjs/src/frontend/SharedContext.cpp | 2--
Mjs/src/gc/Allocator.h | 2--
Mjs/src/gc/BufferAllocator.cpp | 1-
Mjs/src/gc/FinalizationObservers.cpp | 2--
Mjs/src/gc/GC.cpp | 1-
Mjs/src/gc/GCMarker.h | 1-
Mjs/src/gc/Heap-inl.h | 2--
Mjs/src/gc/Nursery.cpp | 1-
Mjs/src/gc/Verifier.cpp | 1-
Mjs/src/jit/AutoWritableJitCode.h | 1-
Mjs/src/jit/BytecodeAnalysis.cpp | 2++
Mjs/src/jit/CacheIRHealth.cpp | 2--
Mjs/src/jit/GenerateAtomicOperations.py | 2++
Mjs/src/jit/Ion.cpp | 1-
Mjs/src/jit/Ion.h | 1-
Mjs/src/jit/JitcodeMap.cpp | 1-
Mjs/src/jit/MIR.cpp | 1-
Mjs/src/jit/MachineState.h | 1-
Mjs/src/jit/MacroAssembler.h | 1-
Mjs/src/jit/ProcessExecutableMemory.cpp | 1-
Mjs/src/jit/RegisterSets.h | 1-
Mjs/src/jit/SafepointIndex.h | 2--
Mjs/src/jit/mips-shared/Assembler-mips-shared.cpp | 1-
Mjs/src/jit/mips-shared/Assembler-mips-shared.h | 1-
Mjs/src/jit/mips64/CodeGenerator-mips64.cpp | 2--
Mjs/src/jit/mips64/Simulator-mips64.cpp | 1-
Mjs/src/jit/riscv64/AssemblerMatInt.cpp | 1-
Mjs/src/jit/riscv64/Register-riscv64.h | 2--
Mjs/src/jit/riscv64/Simulator-riscv64.cpp | 1-
Mjs/src/jit/riscv64/constant/Constant-riscv64.h | 1-
Mjs/src/jit/riscv64/disasm/Disasm-riscv64.h | 2--
Mjs/src/jit/riscv64/extension/extension-riscv-a.h | 1-
Mjs/src/jit/riscv64/extension/extension-riscv-c.h | 1-
Mjs/src/jit/riscv64/extension/extension-riscv-d.h | 1-
Mjs/src/jit/riscv64/extension/extension-riscv-f.h | 1-
Mjs/src/jit/riscv64/extension/extension-riscv-m.h | 1-
Mjs/src/jit/riscv64/extension/extension-riscv-zicsr.h | 1-
Mjs/src/jit/riscv64/extension/extension-riscv-zifencei.h | 1-
Mjs/src/jit/shared/LIR-shared.h | 1-
Mjs/src/jsapi-tests/testAtomicOperations.cpp | 2--
Mjs/src/jsapi-tests/testGCHeapBarriers.cpp | 2--
Mjs/src/jsapi.h | 1-
Mjs/src/shell/ModuleLoader.cpp | 1-
Mjs/src/threading/ExclusiveData.h | 1-
Mjs/src/threading/Mutex.h | 1-
Mjs/src/vm/BigIntType.h | 1-
Mjs/src/vm/JSAtomUtils-inl.h | 2--
Mjs/src/vm/JSFunction.cpp | 1-
Mjs/src/vm/MemoryMetrics.cpp | 2--
Mjs/src/vm/NativeObject.cpp | 1-
Mjs/src/vm/Printer.cpp | 1-
Mjs/src/vm/Realm.h | 1-
Mjs/src/vm/SelfHosting.cpp | 1-
Mjs/src/vm/Shape.cpp | 2--
Mjs/src/vm/UbiNodeShortestPaths.cpp | 2--
Mjs/src/wasm/WasmCode.h | 1-
Mjs/src/wasm/WasmCodegenTypes.h | 1-
Mjs/src/wasm/WasmCompile.cpp | 2--
Mjs/src/wasm/WasmModuleTypes.cpp | 2--
Mjs/src/wasm/WasmOpIter.h | 1-
Mjs/src/wasm/WasmValType.h | 1-
Mjs/xpconnect/loader/AutoMemMap.h | 1-
Mjs/xpconnect/loader/IOBuffers.h | 1-
Mjs/xpconnect/loader/ScriptPreloader-inl.h | 1-
Mjs/xpconnect/loader/URLPreloader.h | 1-
Mjs/xpconnect/loader/mozJSModuleLoader.cpp | 1-
Mjs/xpconnect/loader/nsImportModule.h | 1-
Mjs/xpconnect/src/XPCJSContext.cpp | 1-
Mjs/xpconnect/src/XPCMaps.cpp | 1-
Mjs/xpconnect/src/XPCSelfHostedShmem.h | 1-
Mjs/xpconnect/src/XPCWrappedJSIterator.cpp | 1-
Mjs/xpconnect/src/XPCWrappedNativeScope.cpp | 1-
Mjs/xpconnect/tests/components/native/xpctest_module.cpp | 1-
Mjs/xpconnect/wrappers/WrapperFactory.cpp | 1-
Mtoolkit/xre/nsXREDirProvider.cpp | 1+
89 files changed, 13 insertions(+), 111 deletions(-)

diff --git a/js/loader/ScriptLoadRequest.h b/js/loader/ScriptLoadRequest.h @@ -21,7 +21,6 @@ #include "mozilla/SharedSubResourceCache.h" // mozilla::SubResourceNetworkMetadataHolder #include "mozilla/StaticPrefs_dom.h" #include "mozilla/Variant.h" -#include "mozilla/Vector.h" #include "nsCycleCollectionParticipant.h" #include "nsIGlobalObject.h" #include "LoadedScript.h" diff --git a/js/public/Conversions.h b/js/public/Conversions.h @@ -11,7 +11,6 @@ #include "mozilla/Casting.h" #include "mozilla/FloatingPoint.h" -#include "mozilla/MathAlgorithms.h" #include "mozilla/WrappingOperations.h" #include <cmath> diff --git a/js/src/builtin/TestingFunctions.cpp b/js/src/builtin/TestingFunctions.cpp @@ -20,7 +20,6 @@ #include "mozilla/Span.h" #include "mozilla/Sprintf.h" #include "mozilla/StringBuffer.h" -#include "mozilla/TextUtils.h" #include "mozilla/ThreadLocal.h" #include <algorithm> diff --git a/js/src/builtin/intl/DateTimeFormat.cpp b/js/src/builtin/intl/DateTimeFormat.cpp @@ -15,7 +15,6 @@ #include "mozilla/intl/DateTimePart.h" #include "mozilla/intl/Locale.h" #include "mozilla/intl/TimeZone.h" -#include "mozilla/Range.h" #include "mozilla/Span.h" #include "jsdate.h" diff --git a/js/src/builtin/intl/Segmenter.cpp b/js/src/builtin/intl/Segmenter.cpp @@ -10,7 +10,6 @@ #include "mozilla/Assertions.h" #include "mozilla/IntegerTypeTraits.h" -#include "mozilla/Range.h" #include "mozilla/UniquePtr.h" #include "jspubtd.h" diff --git a/js/src/builtin/temporal/Instant.cpp b/js/src/builtin/temporal/Instant.cpp @@ -8,7 +8,6 @@ #include "mozilla/Assertions.h" #include "mozilla/Casting.h" -#include "mozilla/Span.h" #include <algorithm> #include <array> diff --git a/js/src/builtin/temporal/TemporalParser.cpp b/js/src/builtin/temporal/TemporalParser.cpp @@ -9,7 +9,6 @@ #include "mozilla/Assertions.h" #include "mozilla/Attributes.h" #include "mozilla/Maybe.h" -#include "mozilla/Range.h" #include "mozilla/Result.h" #include "mozilla/Span.h" #include "mozilla/TextUtils.h" diff --git a/js/src/builtin/temporal/TimeZone.cpp b/js/src/builtin/temporal/TimeZone.cpp @@ -11,7 +11,6 @@ #include "mozilla/Likely.h" #include "mozilla/Maybe.h" #include "mozilla/Range.h" -#include "mozilla/Result.h" #include "mozilla/Span.h" #include "mozilla/UniquePtr.h" diff --git a/js/src/debugger/Debugger.cpp b/js/src/debugger/Debugger.cpp @@ -13,7 +13,6 @@ #include "mozilla/Maybe.h" // for Maybe, Nothing, Some #include "mozilla/ScopeExit.h" // for MakeScopeExit, ScopeExit #include "mozilla/Sprintf.h" // for SprintfLiteral -#include "mozilla/ThreadLocal.h" // for ThreadLocal #include "mozilla/TimeStamp.h" // for TimeStamp #include "mozilla/UniquePtr.h" // for UniquePtr #include "mozilla/Variant.h" // for AsVariant, AsVariantTemporary diff --git a/js/src/debugger/DebuggerMemory.cpp b/js/src/debugger/DebuggerMemory.cpp @@ -7,7 +7,6 @@ #include "debugger/DebuggerMemory.h" #include "mozilla/Maybe.h" -#include "mozilla/Vector.h" #include <stdlib.h> #include <utility> diff --git a/js/src/debugger/Frame.cpp b/js/src/debugger/Frame.cpp @@ -6,15 +6,14 @@ #include "debugger/Frame-inl.h" -#include "mozilla/Assertions.h" // for MOZ_ASSERT, MOZ_ASSERT_IF, MOZ_CRASH -#include "mozilla/HashTable.h" // for HashMapEntry -#include "mozilla/Maybe.h" // for Maybe -#include "mozilla/Range.h" // for Range -#include "mozilla/RangedPtr.h" // for RangedPtr -#include "mozilla/Result.h" // for Result -#include "mozilla/ScopeExit.h" // for ScopeExit -#include "mozilla/ThreadLocal.h" // for ThreadLocal -#include "mozilla/Vector.h" // for Vector +#include "mozilla/Assertions.h" // for MOZ_ASSERT, MOZ_ASSERT_IF, MOZ_CRASH +#include "mozilla/HashTable.h" // for HashMapEntry +#include "mozilla/Maybe.h" // for Maybe +#include "mozilla/Range.h" // for Range +#include "mozilla/RangedPtr.h" // for RangedPtr +#include "mozilla/Result.h" // for Result +#include "mozilla/ScopeExit.h" // for ScopeExit +#include "mozilla/Vector.h" // for Vector #include <stddef.h> // for size_t #include <stdint.h> // for int32_t diff --git a/js/src/ds/Bitmap.h b/js/src/ds/Bitmap.h @@ -10,7 +10,6 @@ #include "mozilla/Array.h" #include "mozilla/Assertions.h" #include "mozilla/Attributes.h" -#include "mozilla/MemoryChecking.h" #include <algorithm> #include <stddef.h> diff --git a/js/src/ds/LifoAlloc.h b/js/src/ds/LifoAlloc.h @@ -11,7 +11,6 @@ #include "mozilla/CheckedArithmetic.h" #include "mozilla/MemoryChecking.h" #include "mozilla/MemoryReporting.h" -#include "mozilla/PodOperations.h" #include <algorithm> #include <new> diff --git a/js/src/frontend/DecoratorEmitter.h b/js/src/frontend/DecoratorEmitter.h @@ -6,7 +6,6 @@ #define frontend_DecoratorEmitter_h #include "mozilla/Attributes.h" -#include "mozilla/Maybe.h" #include "frontend/ParseNode.h" diff --git a/js/src/frontend/SharedContext.cpp b/js/src/frontend/SharedContext.cpp @@ -6,8 +6,6 @@ #include "frontend/SharedContext.h" -#include "mozilla/RefPtr.h" - #include "frontend/CompilationStencil.h" #include "frontend/FunctionSyntaxKind.h" // FunctionSyntaxKind #include "frontend/ModuleSharedContext.h" diff --git a/js/src/gc/Allocator.h b/js/src/gc/Allocator.h @@ -9,8 +9,6 @@ #ifndef gc_Allocator_h #define gc_Allocator_h -#include "mozilla/OperatorNewExtensions.h" - #include <stdint.h> #include "gc/AllocKind.h" diff --git a/js/src/gc/BufferAllocator.cpp b/js/src/gc/BufferAllocator.cpp @@ -6,7 +6,6 @@ #include "gc/BufferAllocator-inl.h" -#include "mozilla/PodOperations.h" #include "mozilla/ScopeExit.h" #ifdef XP_DARWIN diff --git a/js/src/gc/FinalizationObservers.cpp b/js/src/gc/FinalizationObservers.cpp @@ -10,8 +10,6 @@ #include "gc/FinalizationObservers.h" -#include "mozilla/ScopeExit.h" - #include "builtin/FinalizationRegistryObject.h" #include "builtin/WeakRefObject.h" #include "gc/GCRuntime.h" diff --git a/js/src/gc/GC.cpp b/js/src/gc/GC.cpp @@ -193,7 +193,6 @@ #include "gc/GC-inl.h" #include "mozilla/glue/Debug.h" -#include "mozilla/Range.h" #include "mozilla/ScopeExit.h" #include "mozilla/TextUtils.h" #include "mozilla/TimeStamp.h" diff --git a/js/src/gc/GCMarker.h b/js/src/gc/GCMarker.h @@ -7,7 +7,6 @@ #ifndef gc_GCMarker_h #define gc_GCMarker_h -#include "mozilla/Maybe.h" #include "mozilla/Variant.h" #include "mozilla/XorShift128PlusRNG.h" diff --git a/js/src/gc/Heap-inl.h b/js/src/gc/Heap-inl.h @@ -9,8 +9,6 @@ #include "gc/Heap.h" -#include "mozilla/MathAlgorithms.h" - #include "gc/StoreBuffer.h" #include "gc/Zone.h" #include "util/Poison.h" diff --git a/js/src/gc/Nursery.cpp b/js/src/gc/Nursery.cpp @@ -10,7 +10,6 @@ #include "mozilla/DebugOnly.h" #include "mozilla/IntegerPrintfMacros.h" #include "mozilla/Maybe.h" -#include "mozilla/ScopeExit.h" #include "mozilla/Sprintf.h" #include "mozilla/TimeStamp.h" diff --git a/js/src/gc/Verifier.cpp b/js/src/gc/Verifier.cpp @@ -4,7 +4,6 @@ * 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/. */ -#include "mozilla/Maybe.h" #include "mozilla/Sprintf.h" #include <algorithm> diff --git a/js/src/jit/AutoWritableJitCode.h b/js/src/jit/AutoWritableJitCode.h @@ -9,7 +9,6 @@ #include "mozilla/Assertions.h" #include "mozilla/Attributes.h" -#include "mozilla/ScopeExit.h" #include "mozilla/TimeStamp.h" #include <stddef.h> diff --git a/js/src/jit/BytecodeAnalysis.cpp b/js/src/jit/BytecodeAnalysis.cpp @@ -6,6 +6,8 @@ #include "jit/BytecodeAnalysis.h" +#include "mozilla/PodOperations.h" + #include "jit/JitSpewer.h" #include "jit/WarpBuilder.h" #include "vm/BytecodeIterator.h" diff --git a/js/src/jit/CacheIRHealth.cpp b/js/src/jit/CacheIRHealth.cpp @@ -7,8 +7,6 @@ # include "jit/CacheIRHealth.h" -# include "mozilla/Maybe.h" - # include "gc/Zone.h" # include "jit/BaselineIC.h" # include "jit/CacheIRCompiler.h" diff --git a/js/src/jit/GenerateAtomicOperations.py b/js/src/jit/GenerateAtomicOperations.py @@ -736,6 +736,8 @@ HEADER_TEMPLATE = """\ #include "mozilla/Attributes.h" +#include <cstdint> + namespace js { namespace jit { diff --git a/js/src/jit/Ion.cpp b/js/src/jit/Ion.cpp @@ -10,7 +10,6 @@ #include "mozilla/DebugOnly.h" #include "mozilla/IntegerPrintfMacros.h" #include "mozilla/MemoryReporting.h" -#include "mozilla/ThreadLocal.h" #include "gc/GCContext.h" #include "gc/PublicIterators.h" diff --git a/js/src/jit/Ion.h b/js/src/jit/Ion.h @@ -7,7 +7,6 @@ #ifndef jit_Ion_h #define jit_Ion_h -#include "mozilla/Assertions.h" #include "mozilla/Attributes.h" #include "mozilla/Likely.h" #include "mozilla/MemoryReporting.h" diff --git a/js/src/jit/JitcodeMap.cpp b/js/src/jit/JitcodeMap.cpp @@ -9,7 +9,6 @@ #include "mozilla/ArrayUtils.h" #include "mozilla/MathAlgorithms.h" #include "mozilla/Maybe.h" -#include "mozilla/ScopeExit.h" #include "gc/Marking.h" #include "gc/Zone.h" diff --git a/js/src/jit/MIR.cpp b/js/src/jit/MIR.cpp @@ -10,7 +10,6 @@ #include "mozilla/FloatingPoint.h" #include "mozilla/MathAlgorithms.h" #include "mozilla/Maybe.h" -#include "mozilla/ScopeExit.h" #include <array> #include <utility> diff --git a/js/src/jit/MachineState.h b/js/src/jit/MachineState.h @@ -7,7 +7,6 @@ #ifndef jit_MachineState_h #define jit_MachineState_h -#include "mozilla/Assertions.h" #include "mozilla/Attributes.h" #include "mozilla/Variant.h" diff --git a/js/src/jit/MacroAssembler.h b/js/src/jit/MacroAssembler.h @@ -8,7 +8,6 @@ #define jit_MacroAssembler_h #include "mozilla/MacroForEach.h" -#include "mozilla/MathAlgorithms.h" #include "mozilla/Maybe.h" #include "mozilla/Variant.h" diff --git a/js/src/jit/ProcessExecutableMemory.cpp b/js/src/jit/ProcessExecutableMemory.cpp @@ -31,7 +31,6 @@ #ifdef XP_WIN # include "mozilla/StackWalk_windows.h" -# include "mozilla/WindowsVersion.h" #elif defined(__wasi__) # if defined(JS_CODEGEN_WASM32) # include <cstdlib> diff --git a/js/src/jit/RegisterSets.h b/js/src/jit/RegisterSets.h @@ -9,7 +9,6 @@ #include "mozilla/Assertions.h" #include "mozilla/Attributes.h" -#include "mozilla/Variant.h" #include <new> #include <stddef.h> diff --git a/js/src/jit/SafepointIndex.h b/js/src/jit/SafepointIndex.h @@ -7,8 +7,6 @@ #ifndef jit_SafepointIndex_h #define jit_SafepointIndex_h -#include "mozilla/Assertions.h" - #include <stdint.h> #include "jit/IonTypes.h" diff --git a/js/src/jit/mips-shared/Assembler-mips-shared.cpp b/js/src/jit/mips-shared/Assembler-mips-shared.cpp @@ -7,7 +7,6 @@ #include "jit/mips-shared/Assembler-mips-shared.h" #include "mozilla/DebugOnly.h" -#include "mozilla/MathAlgorithms.h" #include "gc/Marking.h" #include "jit/ExecutableAllocator.h" diff --git a/js/src/jit/mips-shared/Assembler-mips-shared.h b/js/src/jit/mips-shared/Assembler-mips-shared.h @@ -8,7 +8,6 @@ #define jit_mips_shared_Assembler_mips_shared_h #include "mozilla/Attributes.h" -#include "mozilla/MathAlgorithms.h" #include "mozilla/Sprintf.h" #include "jit/CompactBuffer.h" diff --git a/js/src/jit/mips64/CodeGenerator-mips64.cpp b/js/src/jit/mips64/CodeGenerator-mips64.cpp @@ -6,8 +6,6 @@ #include "jit/mips64/CodeGenerator-mips64.h" -#include "mozilla/MathAlgorithms.h" - #include "jit/CodeGenerator.h" #include "jit/MIR-wasm.h" #include "jit/MIR.h" diff --git a/js/src/jit/mips64/Simulator-mips64.cpp b/js/src/jit/mips64/Simulator-mips64.cpp @@ -32,7 +32,6 @@ #include "mozilla/Casting.h" #include "mozilla/IntegerPrintfMacros.h" #include "mozilla/Likely.h" -#include "mozilla/MathAlgorithms.h" #include <float.h> #include <limits> diff --git a/js/src/jit/riscv64/AssemblerMatInt.cpp b/js/src/jit/riscv64/AssemblerMatInt.cpp @@ -12,7 +12,6 @@ // //===----------------------------------------------------------------------===// #include "mozilla/MathAlgorithms.h" -#include "mozilla/Maybe.h" #include "gc/Marking.h" #include "jit/AutoWritableJitCode.h" diff --git a/js/src/jit/riscv64/Register-riscv64.h b/js/src/jit/riscv64/Register-riscv64.h @@ -7,8 +7,6 @@ #ifndef jit_riscv64_Register_riscv64_h #define jit_riscv64_Register_riscv64_h -#include "mozilla/Assertions.h" - #include <stdint.h> #include "jit/Registers.h" diff --git a/js/src/jit/riscv64/Simulator-riscv64.cpp b/js/src/jit/riscv64/Simulator-riscv64.cpp @@ -33,7 +33,6 @@ # include "mozilla/FloatingPoint.h" # include "mozilla/IntegerPrintfMacros.h" # include "mozilla/Likely.h" -# include "mozilla/MathAlgorithms.h" # include <cinttypes> # include <float.h> diff --git a/js/src/jit/riscv64/constant/Constant-riscv64.h b/js/src/jit/riscv64/constant/Constant-riscv64.h @@ -6,7 +6,6 @@ #ifndef jit_riscv64_constant_Constant_riscv64_h #define jit_riscv64_constant_Constant_riscv64_h -#include "mozilla/Assertions.h" #include <stdio.h> diff --git a/js/src/jit/riscv64/disasm/Disasm-riscv64.h b/js/src/jit/riscv64/disasm/Disasm-riscv64.h @@ -8,8 +8,6 @@ #ifndef jit_riscv64_disasm_Disasm_riscv64_h #define jit_riscv64_disasm_Disasm_riscv64_h -#include "mozilla/Assertions.h" - #include <stdio.h> #include "jit/riscv64/constant/Constant-riscv64.h" diff --git a/js/src/jit/riscv64/extension/extension-riscv-a.h b/js/src/jit/riscv64/extension/extension-riscv-a.h @@ -3,7 +3,6 @@ // found in the LICENSE file." #ifndef jit_riscv64_extension_Extension_riscv_a_h_ #define jit_riscv64_extension_Extension_riscv_a_h_ -#include "mozilla/Assertions.h" #include <stdint.h> diff --git a/js/src/jit/riscv64/extension/extension-riscv-c.h b/js/src/jit/riscv64/extension/extension-riscv-c.h @@ -3,7 +3,6 @@ // found in the LICENSE file. #ifndef jit_riscv64_extension_Extension_riscv_c_h_ #define jit_riscv64_extension_Extension_riscv_c_h_ -#include "mozilla/Assertions.h" #include <stdint.h> diff --git a/js/src/jit/riscv64/extension/extension-riscv-d.h b/js/src/jit/riscv64/extension/extension-riscv-d.h @@ -3,7 +3,6 @@ // found in the LICENSE file. #ifndef jit_riscv64_extension_Extension_riscv_d_h_ #define jit_riscv64_extension_Extension_riscv_d_h_ -#include "mozilla/Assertions.h" #include <stdint.h> diff --git a/js/src/jit/riscv64/extension/extension-riscv-f.h b/js/src/jit/riscv64/extension/extension-riscv-f.h @@ -3,7 +3,6 @@ // found in the LICENSE file. #ifndef jit_riscv64_extension_Extension_riscv_f_h_ #define jit_riscv64_extension_Extension_riscv_f_h_ -#include "mozilla/Assertions.h" #include <stdint.h> diff --git a/js/src/jit/riscv64/extension/extension-riscv-m.h b/js/src/jit/riscv64/extension/extension-riscv-m.h @@ -4,7 +4,6 @@ #ifndef jit_riscv64_extension_Extension_riscv_m_h_ #define jit_riscv64_extension_Extension_riscv_m_h_ -#include "mozilla/Assertions.h" #include <stdint.h> diff --git a/js/src/jit/riscv64/extension/extension-riscv-zicsr.h b/js/src/jit/riscv64/extension/extension-riscv-zicsr.h @@ -4,7 +4,6 @@ #ifndef jit_riscv64_extension_Extension_riscv_zicsr_h_ #define jit_riscv64_extension_Extension_riscv_zicsr_h_ -#include "mozilla/Assertions.h" #include <stdint.h> diff --git a/js/src/jit/riscv64/extension/extension-riscv-zifencei.h b/js/src/jit/riscv64/extension/extension-riscv-zifencei.h @@ -4,7 +4,6 @@ #ifndef jit_riscv64_extension_Extension_riscv_zifencei_h_ #define jit_riscv64_extension_Extension_riscv_zifencei_h_ -#include "mozilla/Assertions.h" #include <stdint.h> diff --git a/js/src/jit/shared/LIR-shared.h b/js/src/jit/shared/LIR-shared.h @@ -7,7 +7,6 @@ #ifndef jit_shared_LIR_shared_h #define jit_shared_LIR_shared_h -#include "mozilla/Maybe.h" #include "jit/AtomicOp.h" #include "jit/shared/Assembler-shared.h" #include "util/Memory.h" diff --git a/js/src/jsapi-tests/testAtomicOperations.cpp b/js/src/jsapi-tests/testAtomicOperations.cpp @@ -5,8 +5,6 @@ * 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/. */ -#include "mozilla/Assertions.h" - #include "jit/AtomicOperations.h" #include "jsapi-tests/tests.h" #include "vm/ArrayBufferObject.h" diff --git a/js/src/jsapi-tests/testGCHeapBarriers.cpp b/js/src/jsapi-tests/testGCHeapBarriers.cpp @@ -5,8 +5,6 @@ * 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/. */ -#include "mozilla/Maybe.h" - #include "gc/AllocKind.h" #include "gc/Cell.h" #include "gc/GCInternals.h" diff --git a/js/src/jsapi.h b/js/src/jsapi.h @@ -15,7 +15,6 @@ #include "mozilla/RangedPtr.h" #include "mozilla/RefPtr.h" #include "mozilla/TimeStamp.h" -#include "mozilla/Utf8.h" #include "mozilla/Variant.h" #include <stdarg.h> diff --git a/js/src/shell/ModuleLoader.cpp b/js/src/shell/ModuleLoader.cpp @@ -6,7 +6,6 @@ #include "shell/ModuleLoader.h" -#include "mozilla/ScopeExit.h" #include "mozilla/TextUtils.h" #include "jsapi.h" diff --git a/js/src/threading/ExclusiveData.h b/js/src/threading/ExclusiveData.h @@ -7,7 +7,6 @@ #ifndef threading_ExclusiveData_h #define threading_ExclusiveData_h -#include "mozilla/Maybe.h" #include "mozilla/OperatorNewExtensions.h" #include <utility> diff --git a/js/src/threading/Mutex.h b/js/src/threading/Mutex.h @@ -11,7 +11,6 @@ #include "mozilla/Maybe.h" #include "mozilla/PlatformMutex.h" #include "mozilla/ThreadLocal.h" -#include "mozilla/Vector.h" #include <utility> diff --git a/js/src/vm/BigIntType.h b/js/src/vm/BigIntType.h @@ -9,7 +9,6 @@ #include "mozilla/Assertions.h" #include "mozilla/Maybe.h" -#include "mozilla/OperatorNewExtensions.h" #include "mozilla/Range.h" #include "mozilla/Span.h" diff --git a/js/src/vm/JSAtomUtils-inl.h b/js/src/vm/JSAtomUtils-inl.h @@ -9,8 +9,6 @@ #include "vm/JSAtomUtils.h" -#include "mozilla/RangedPtr.h" - #include "jsnum.h" #include "gc/MaybeRooted.h" diff --git a/js/src/vm/JSFunction.cpp b/js/src/vm/JSFunction.cpp @@ -11,7 +11,6 @@ #include "vm/JSFunction-inl.h" #include "mozilla/Maybe.h" -#include "mozilla/Range.h" #include <algorithm> #include <string.h> diff --git a/js/src/vm/MemoryMetrics.cpp b/js/src/vm/MemoryMetrics.cpp @@ -6,8 +6,6 @@ #include "js/MemoryMetrics.h" -#include "mozilla/MathAlgorithms.h" - #include <algorithm> #include "gc/BufferAllocator.h" diff --git a/js/src/vm/NativeObject.cpp b/js/src/vm/NativeObject.cpp @@ -6,7 +6,6 @@ #include "vm/NativeObject-inl.h" -#include "mozilla/Casting.h" #include "mozilla/CheckedInt.h" #include "mozilla/Maybe.h" diff --git a/js/src/vm/Printer.cpp b/js/src/vm/Printer.cpp @@ -8,7 +8,6 @@ #include "mozilla/PodOperations.h" #include "mozilla/Printf.h" -#include "mozilla/RangedPtr.h" #include <stdarg.h> #include <stdio.h> diff --git a/js/src/vm/Realm.h b/js/src/vm/Realm.h @@ -11,7 +11,6 @@ #include "mozilla/Maybe.h" #include "mozilla/MemoryReporting.h" #include "mozilla/TimeStamp.h" -#include "mozilla/Variant.h" #include "mozilla/XorShift128PlusRNG.h" #include <stddef.h> diff --git a/js/src/vm/SelfHosting.cpp b/js/src/vm/SelfHosting.cpp @@ -11,7 +11,6 @@ # include "builtin/DisposableStackObject.h" #endif #include "mozilla/BinarySearch.h" -#include "mozilla/Casting.h" #include "mozilla/Maybe.h" #include "mozilla/ScopeExit.h" // mozilla::MakeScopeExit #include "mozilla/Utf8.h" // mozilla::Utf8Unit diff --git a/js/src/vm/Shape.cpp b/js/src/vm/Shape.cpp @@ -6,8 +6,6 @@ #include "vm/Shape-inl.h" -#include "mozilla/MathAlgorithms.h" - #include "gc/HashUtil.h" #include "js/friend/WindowProxy.h" // js::IsWindow #include "js/HashTable.h" diff --git a/js/src/vm/UbiNodeShortestPaths.cpp b/js/src/vm/UbiNodeShortestPaths.cpp @@ -6,8 +6,6 @@ #include "js/UbiNodeShortestPaths.h" -#include "mozilla/Maybe.h" - #include <stdio.h> #include <utility> diff --git a/js/src/wasm/WasmCode.h b/js/src/wasm/WasmCode.h @@ -30,7 +30,6 @@ #include "mozilla/PodOperations.h" #include "mozilla/RefPtr.h" #include "mozilla/ScopeExit.h" -#include "mozilla/Span.h" #include "mozilla/UniquePtr.h" #include <stddef.h> diff --git a/js/src/wasm/WasmCodegenTypes.h b/js/src/wasm/WasmCodegenTypes.h @@ -21,7 +21,6 @@ #include "mozilla/CheckedInt.h" #include "mozilla/EnumeratedArray.h" -#include "mozilla/PodOperations.h" #include "mozilla/Span.h" #include <stdint.h> diff --git a/js/src/wasm/WasmCompile.cpp b/js/src/wasm/WasmCompile.cpp @@ -18,8 +18,6 @@ #include "wasm/WasmCompile.h" -#include "mozilla/Maybe.h" - #include <algorithm> #include <cstdint> diff --git a/js/src/wasm/WasmModuleTypes.cpp b/js/src/wasm/WasmModuleTypes.cpp @@ -18,8 +18,6 @@ #include "wasm/WasmModuleTypes.h" -#include "mozilla/Range.h" - #include "vm/JSAtomUtils.h" // AtomizeUTF8Chars #include "vm/MallocProvider.h" #include "wasm/WasmUtility.h" diff --git a/js/src/wasm/WasmOpIter.h b/js/src/wasm/WasmOpIter.h @@ -20,7 +20,6 @@ #define wasm_op_iter_h #include "mozilla/CompactPair.h" -#include "mozilla/Poison.h" #include <type_traits> diff --git a/js/src/wasm/WasmValType.h b/js/src/wasm/WasmValType.h @@ -19,7 +19,6 @@ #ifndef wasm_valtype_h #define wasm_valtype_h -#include "mozilla/HashTable.h" #include "mozilla/Maybe.h" #include <type_traits> diff --git a/js/xpconnect/loader/AutoMemMap.h b/js/xpconnect/loader/AutoMemMap.h @@ -7,7 +7,6 @@ #define loader_AutoMemMap_h #include "mozilla/FileUtils.h" -#include "mozilla/MemoryReporting.h" #include "mozilla/RangedPtr.h" #include "mozilla/Result.h" diff --git a/js/xpconnect/loader/IOBuffers.h b/js/xpconnect/loader/IOBuffers.h @@ -11,7 +11,6 @@ #include "mozilla/EndianUtils.h" #include "mozilla/EnumSet.h" #include "mozilla/Range.h" -#include "mozilla/Span.h" #include "nsString.h" #include "nsTArray.h" diff --git a/js/xpconnect/loader/ScriptPreloader-inl.h b/js/xpconnect/loader/ScriptPreloader-inl.h @@ -8,7 +8,6 @@ #include "mozilla/Attributes.h" #include "mozilla/Assertions.h" -#include "mozilla/Range.h" #include "mozilla/ResultExtensions.h" #include "mozilla/dom/ScriptSettings.h" #include "nsString.h" diff --git a/js/xpconnect/loader/URLPreloader.h b/js/xpconnect/loader/URLPreloader.h @@ -14,7 +14,6 @@ #include "mozilla/Monitor.h" #include "mozilla/Omnijar.h" #include "mozilla/Range.h" -#include "mozilla/Vector.h" #include "mozilla/Result.h" #include "nsClassHashtable.h" #include "nsHashKeys.h" diff --git a/js/xpconnect/loader/mozJSModuleLoader.cpp b/js/xpconnect/loader/mozJSModuleLoader.cpp @@ -65,7 +65,6 @@ #include "mozilla/ProfilerMarkers.h" #include "mozilla/ResultExtensions.h" #include "mozilla/ScriptPreloader.h" -#include "mozilla/ScopeExit.h" #include "mozilla/Try.h" #include "mozilla/dom/AutoEntryScript.h" #include "mozilla/dom/ReferrerPolicyBinding.h" diff --git a/js/xpconnect/loader/nsImportModule.h b/js/xpconnect/loader/nsImportModule.h @@ -12,7 +12,6 @@ #include "mozilla/fallible.h" #include "nsCOMPtr.h" -#include "mozilla/RefPtr.h" namespace mozilla { namespace loader { diff --git a/js/xpconnect/src/XPCJSContext.cpp b/js/xpconnect/src/XPCJSContext.cpp @@ -70,7 +70,6 @@ #include "mozilla/Sprintf.h" #include "mozilla/SystemPrincipal.h" #include "mozilla/TaskController.h" -#include "mozilla/ThreadLocal.h" #include "mozilla/UniquePtrExtensions.h" #include "AccessCheck.h" #include "nsGlobalWindowInner.h" diff --git a/js/xpconnect/src/XPCMaps.cpp b/js/xpconnect/src/XPCMaps.cpp @@ -6,7 +6,6 @@ /* Private maps (hashtables). */ -#include "mozilla/MathAlgorithms.h" #include "mozilla/MemoryReporting.h" #include "xpcprivate.h" #include "XPCMaps.h" diff --git a/js/xpconnect/src/XPCSelfHostedShmem.h b/js/xpconnect/src/XPCSelfHostedShmem.h @@ -7,7 +7,6 @@ #ifndef xpcselfhostedshmem_h___ #define xpcselfhostedshmem_h___ -#include "mozilla/RefPtr.h" #include "mozilla/Span.h" #include "mozilla/StaticPtr.h" #include "mozilla/ipc/SharedMemoryHandle.h" diff --git a/js/xpconnect/src/XPCWrappedJSIterator.cpp b/js/xpconnect/src/XPCWrappedJSIterator.cpp @@ -6,7 +6,6 @@ #include "xpcprivate.h" -#include "mozilla/ResultExtensions.h" #include "mozilla/Try.h" #include "mozilla/dom/IteratorResultBinding.h" #include "mozilla/dom/RootedDictionary.h" diff --git a/js/xpconnect/src/XPCWrappedNativeScope.cpp b/js/xpconnect/src/XPCWrappedNativeScope.cpp @@ -13,7 +13,6 @@ #include "nsCycleCollectionNoteRootCallback.h" #include "ExpandedPrincipal.h" #include "mozilla/BasePrincipal.h" -#include "mozilla/MemoryReporting.h" #include "mozilla/Preferences.h" #include "XPCMaps.h" #include "js/Object.h" // JS::GetCompartment diff --git a/js/xpconnect/tests/components/native/xpctest_module.cpp b/js/xpconnect/tests/components/native/xpctest_module.cpp @@ -7,7 +7,6 @@ /* module registration and factory code. */ #include "mozilla/GenericFactory.h" -#include "mozilla/ResultExtensions.h" #include "mozilla/Try.h" #include "nsComponentManager.h" #include "xpctest_private.h" diff --git a/js/xpconnect/wrappers/WrapperFactory.cpp b/js/xpconnect/wrappers/WrapperFactory.cpp @@ -18,7 +18,6 @@ #include "jsfriendapi.h" #include "js/friend/WindowProxy.h" // js::IsWindow, js::IsWindowProxy #include "js/Object.h" // JS::GetPrivate, JS::GetCompartment -#include "mozilla/Likely.h" #include "mozilla/dom/ScriptSettings.h" #include "mozilla/dom/MaybeCrossOriginObject.h" #include "nsContentUtils.h" diff --git a/toolkit/xre/nsXREDirProvider.cpp b/toolkit/xre/nsXREDirProvider.cpp @@ -51,6 +51,7 @@ #include "mozilla/ProfilerLabels.h" #include "mozilla/glean/ToolkitXreMetrics.h" #include "mozilla/Try.h" +#include "mozilla/Utf8.h" #include "mozilla/XREAppData.h" #include "nsPrintfCString.h"