Bug 1631258 - Cleanup includes and type decls for Stencil.h/BCEScriptStencil.h r=arai

Depends on D71470

Differential Revision: https://phabricator.services.mozilla.com/D71471
This commit is contained in:
Ted Campbell 2020-04-20 02:10:32 +00:00
parent d5f7239c4b
commit b5509f347f
2 changed files with 13 additions and 26 deletions

View File

@ -9,18 +9,14 @@
#include "mozilla/Span.h" // mozilla::Span
#include <stdint.h> // int32_t
#include "frontend/Stencil.h" // ScriptStencil
#include "gc/Barrier.h" // GCPtrAtom
#include "js/HeapAPI.h" // JS::GCCellPtr
#include "vm/JSScript.h" // JSTryNote, ScopeNote
#include "js/TypeDecls.h" // JSContext
#include "js/UniquePtr.h" // js::UniquePtr
#include "vm/SharedStencil.h" // js::ImmutableScriptData
struct JSContext;
namespace js {
namespace frontend {
namespace js::frontend {
struct BytecodeEmitter;
@ -41,7 +37,6 @@ class BCEScriptStencil : public ScriptStencil {
virtual void finishInnerFunctions() const;
};
} /* namespace frontend */
} /* namespace js */
} /* namespace js::frontend */
#endif /* frontend_BCEScriptStencil_h */

View File

@ -17,37 +17,30 @@
#include <stdlib.h> // size_t
#include "frontend/AbstractScopePtr.h" // AbstractScopePtr, ScopeIndex
#include "frontend/NameAnalysisTypes.h" // {AtomVector, FunctionBoxVector}
#include "frontend/NameAnalysisTypes.h" // AtomVector
#include "frontend/ObjLiteral.h" // ObjLiteralCreationData
#include "frontend/TypedIndex.h" // TypedIndex
#include "gc/AllocKind.h" // gc::AllocKind
#include "gc/Barrier.h" // HeapPtr, GCPtrAtom
#include "gc/Rooting.h" // HandleAtom, HandleModuleObject, HandleScriptSourceObject, MutableHandleScope
#include "js/GCVariant.h" // GC Support for mozilla::Variant
#include "js/RegExpFlags.h" // JS::RegExpFlags
#include "js/RootingAPI.h" // Handle
#include "js/UniquePtr.h" // UniquePtr
#include "js/TypeDecls.h" // JSContext,JSAtom,JSFunction
#include "js/UniquePtr.h" // js::UniquePtr
#include "js/Utility.h" // JS::FreePolicy, UniqueTwoByteChars
#include "js/Vector.h" // js::Vector
#include "util/Text.h" // DuplicateString
#include "vm/BigIntType.h" // ParseBigIntLiteral
#include "vm/JSFunction.h" // FunctionFlags
#include "vm/JSScript.h" // GeneratorKind, FunctionAsyncKind, ScopeNote, JSTryNote, FieldInitializers
#include "vm/Runtime.h" // ReportOutOfMemory
#include "vm/JSScript.h" // GeneratorKind, FunctionAsyncKind, FieldInitializers
#include "vm/Runtime.h" // ReportOutOfMemory
#include "vm/Scope.h" // BaseScopeData, FunctionScope, LexicalScope, VarScope, GlobalScope, EvalScope, ModuleScope
#include "vm/ScopeKind.h" // ScopeKind
#include "vm/SharedStencil.h" // ImmutableScriptFlags
struct JSContext;
class JSAtom;
class JSFunction;
class JSTracer;
class JS_PUBLIC_API JSTracer;
namespace js {
class Shape;
namespace frontend {
namespace js::frontend {
struct CompilationInfo;
class FunctionBox;
@ -477,8 +470,7 @@ class ScriptStencil {
virtual void finishInnerFunctions() const = 0;
};
} /* namespace frontend */
} /* namespace js */
} /* namespace js::frontend */
namespace JS {
template <>