Skip to content

Commit

Permalink
Backed out changeset 62bd03bc3763 (bug 1754864) for causing bustage o…
Browse files Browse the repository at this point in the history
…n WeakMapObject.cpp. CLOSED TREE
  • Loading branch information
ncsoregi committed Mar 24, 2022
1 parent 36c16e6 commit de2755b
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 16 deletions.
2 changes: 2 additions & 0 deletions js/src/builtin/RegExp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "frontend/TokenStream.h"
#include "irregexp/RegExpAPI.h"
#include "jit/InlinableNatives.h"
#include "js/friend/ErrorMessages.h" // js::GetErrorMessage, JSMSG_NEWREGEXP_FLAGGED
#include "js/PropertySpec.h"
#include "js/RegExpFlags.h" // JS::RegExpFlag, JS::RegExpFlags
Expand All @@ -26,6 +27,7 @@

#include "vm/EnvironmentObject-inl.h"
#include "vm/JSObject-inl.h"
#include "vm/NativeObject-inl.h"
#include "vm/ObjectOperations-inl.h"
#include "vm/PlainObject-inl.h"

Expand Down
8 changes: 4 additions & 4 deletions js/src/intgemm/IntegerGemmIntrinsic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
#include "mozilla/CheckedInt.h"
#include <intgemm.h>

#include "js/ErrorReport.h"
#include <utility>

#include "js/HeapAPI.h"
#include "vm/ArrayBufferObject.h"
#include "vm/JSContext.h"
#include "wasm/WasmInstance.h"
#include "wasm/WasmLog.h"

struct JSContext;
#include "vm/ArrayBufferObject-inl.h"

static constexpr uint32_t ARRAY_ALIGNMENT = 64;
static constexpr uint32_t ROWS_A_MULTIPLIER = 1;
Expand Down
1 change: 0 additions & 1 deletion js/src/jit/MacroAssembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "jit/JitFrames.h"
#include "jit/JitOptions.h"
#include "jit/JitRuntime.h"
#include "jit/JitScript.h"
#include "jit/MoveEmitter.h"
#include "jit/SharedICHelpers.h"
#include "jit/SharedICRegisters.h"
Expand Down
3 changes: 3 additions & 0 deletions js/src/jsmath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include "mozilla/FloatingPoint.h"
#include "mozilla/MathAlgorithms.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/RandomNum.h"
#include "mozilla/WrappingOperations.h"

Expand All @@ -24,6 +25,8 @@
#include "jit/InlinableNatives.h"
#include "js/Class.h"
#include "js/PropertySpec.h"
#include "util/WindowsWrapper.h"
#include "vm/JSAtom.h"
#include "vm/JSContext.h"
#include "vm/Realm.h"
#include "vm/Time.h"
Expand Down
2 changes: 2 additions & 0 deletions js/src/jsmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#ifndef jsmath_h
#define jsmath_h

#include "mozilla/MemoryReporting.h"

#include <stdint.h>

#include "NamespaceImports.h"
Expand Down
5 changes: 5 additions & 0 deletions js/src/vm/Interpreter-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
#ifndef vm_Interpreter_inl_h
#define vm_Interpreter_inl_h

#include "vm/Interpreter.h"

#include "jsnum.h"

#include "js/friend/DumpFunctions.h"
#include "js/friend/ErrorMessages.h" // js::GetErrorMessage, JSMSG_*
#include "vm/ArgumentsObject.h"
#include "vm/BytecodeUtil.h" // JSDVG_SEARCH_STACK
Expand All @@ -20,10 +23,12 @@
# include "vm/RecordTupleShared.h"
#endif

#include "vm/EnvironmentObject-inl.h"
#include "vm/GlobalObject-inl.h"
#include "vm/JSAtom-inl.h"
#include "vm/JSObject-inl.h"
#include "vm/ObjectOperations-inl.h"
#include "vm/Stack-inl.h"
#include "vm/StringType-inl.h"

namespace js {
Expand Down
5 changes: 5 additions & 0 deletions js/src/vm/Interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#include "jit/BaselineJIT.h"
#include "jit/Jit.h"
#include "jit/JitRuntime.h"
#include "js/CallAndConstruct.h" // JS::Construct, JS::IsCallable, JS::IsConstructor
#include "js/CharacterEncoding.h"
#include "js/experimental/JitInfo.h" // JSJitInfo
#include "js/friend/ErrorMessages.h" // js::GetErrorMessage, JSMSG_*
#include "js/friend/StackLimits.h" // js::AutoCheckRecursionLimit
Expand All @@ -43,6 +45,7 @@
#include "vm/BigIntType.h"
#include "vm/BytecodeUtil.h" // JSDVG_SEARCH_STACK
#include "vm/EqualityOperations.h" // js::StrictlyEqual
#include "vm/FunctionFlags.h" // js::FunctionFlags
#include "vm/GeneratorObject.h"
#include "vm/Iteration.h"
#include "vm/JSAtom.h"
Expand Down Expand Up @@ -70,6 +73,8 @@
#include "vm/ArgumentsObject-inl.h"
#include "vm/EnvironmentObject-inl.h"
#include "vm/GeckoProfiler-inl.h"
#include "vm/JSAtom-inl.h"
#include "vm/JSFunction-inl.h"
#include "vm/JSScript-inl.h"
#include "vm/NativeObject-inl.h"
#include "vm/ObjectOperations-inl.h"
Expand Down
1 change: 1 addition & 0 deletions js/src/vm/Interpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include "vm/BuiltinObjectKind.h"
#include "vm/CheckIsObjectKind.h" // CheckIsObjectKind
#include "vm/Iteration.h"
#include "vm/Stack.h"

namespace js {
Expand Down
2 changes: 2 additions & 0 deletions js/src/vm/ProfilingStack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include "mozilla/IntegerRange.h"
#include "mozilla/MathAlgorithms.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/UniquePtrExtensions.h"

#include <algorithm>

Expand Down
3 changes: 3 additions & 0 deletions js/src/vm/TraceLogging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "vm/TraceLogging.h"

#include "mozilla/EndianUtils.h"
#include "mozilla/MemoryReporting.h"

#include <algorithm>
Expand All @@ -18,12 +19,14 @@
#include "js/Printf.h"
#include "js/TraceLoggerAPI.h"
#include "threading/LockGuard.h"
#include "util/GetPidProvider.h" // getpid()
#include "util/Text.h"
#include "vm/Activation.h" // js::ActivationIterator
#include "vm/FrameIter.h" // js::JitFrameIter
#include "vm/JSContext.h"
#include "vm/JSScript.h"
#include "vm/Runtime.h"
#include "vm/Time.h"
#include "vm/TraceLoggingGraph.h"

using namespace js;
Expand Down
2 changes: 2 additions & 0 deletions js/src/vm/TraceLoggingGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
#include "mozilla/ScopeExit.h"

#include "js/Printf.h"
#include "js/UniquePtr.h"
#include "threading/LockGuard.h"
#include "threading/Thread.h"
#include "util/GetPidProvider.h" // getpid()
#include "util/Text.h"
#include "vm/TraceLogging.h"

#ifndef DEFAULT_TRACE_LOG_DIR
# if defined(_WIN32)
Expand Down
1 change: 1 addition & 0 deletions js/src/vm/TraceLoggingGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "mozilla/MemoryReporting.h"
#include "mozilla/TimeStamp.h"

#include "js/TypeDecls.h"
#include "vm/MutexIDs.h"
#include "vm/TraceLoggingTypes.h"

Expand Down
2 changes: 2 additions & 0 deletions js/src/vm/TraceLoggingTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include "vm/StringType.h"

class JSLinearString;

uint32_t TLStringToTextId(JSLinearString* str) {
#define NAME(textId) \
if (js::StringEqualsLiteral(str, #textId)) return TraceLogger_##textId;
Expand Down
1 change: 1 addition & 0 deletions js/src/vm/TraceLoggingTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <cstddef>
#include <cstdint>

#include "js/AllocPolicy.h"
#include "js/Utility.h"

class JSLinearString;
Expand Down
7 changes: 3 additions & 4 deletions js/src/vtune/VTuneWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@

#include "mozilla/Sprintf.h"

#include "jit/JitCode.h"
#include "js/Utility.h"
#include "threading/LockGuard.h"
#include "threading/Mutex.h"
#include "vm/JSScript.h"
#include "vm/JSContext.h"
#include "vm/MutexIDs.h"
#include "vtune/jitprofiling.h"
#include "vm/Realm.h"
#include "vm/Shape.h"

namespace js::vtune {

Expand Down
10 changes: 3 additions & 7 deletions js/src/vtune/VTuneWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@

#ifdef MOZ_VTUNE

# include "jstypes.h"
# include "vtune/jitprofiling.h"

class JS_PUBLIC_API JSScript;
# include "jit/JitCode.h"
# include "vm/JSScript.h"

namespace js {

namespace jit {
class JitCode;
}

namespace vtune {

bool Initialize();
Expand Down

0 comments on commit de2755b

Please sign in to comment.