/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- * 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/. */ // This file contains public type declarations that are used *frequently*. If // it doesn't occur at least 10 times in Gecko, it probably shouldn't be in // here. // // It includes only: // - forward declarations of structs and classes; // - typedefs; // - enums (maybe). // It does *not* contain any struct or class definitions. #ifndef js_TypeDecls_h #define js_TypeDecls_h #include #include #include "js-config.h" #include "jstypes.h" typedef uint8_t jsbytecode; class JS_PUBLIC_API JSAtom; struct JS_PUBLIC_API JSContext; struct JSClass; class JS_PUBLIC_API JSFunction; class JS_PUBLIC_API JSFreeOp; class JS_PUBLIC_API JSObject; struct JS_PUBLIC_API JSRuntime; class JS_PUBLIC_API JSScript; class JS_PUBLIC_API JSString; namespace js { class JS_PUBLIC_API TempAllocPolicy; }; // namespace js namespace JS { struct JS_PUBLIC_API PropertyKey; typedef unsigned char Latin1Char; class JS_PUBLIC_API Symbol; class JS_PUBLIC_API BigInt; class JS_PUBLIC_API Value; class JS_PUBLIC_API Compartment; class JS_PUBLIC_API Realm; struct JS_PUBLIC_API Runtime; class JS_PUBLIC_API Zone; template class Handle; template class MutableHandle; template class Rooted; template class PersistentRooted; template class RootedVector; template class PersistentRootedVector; template class StackGCVector; typedef Handle HandleFunction; typedef Handle HandleId; typedef Handle HandleObject; typedef Handle HandleScript; typedef Handle HandleString; typedef Handle HandleSymbol; typedef Handle HandleBigInt; typedef Handle HandleValue; typedef Handle> HandleValueVector; typedef Handle> HandleObjectVector; typedef Handle> HandleIdVector; typedef MutableHandle MutableHandleFunction; typedef MutableHandle MutableHandleId; typedef MutableHandle MutableHandleObject; typedef MutableHandle MutableHandleScript; typedef MutableHandle MutableHandleString; typedef MutableHandle MutableHandleSymbol; typedef MutableHandle MutableHandleBigInt; typedef MutableHandle MutableHandleValue; typedef MutableHandle> MutableHandleValueVector; typedef MutableHandle> MutableHandleObjectVector; typedef MutableHandle> MutableHandleIdVector; typedef Rooted RootedObject; typedef Rooted RootedFunction; typedef Rooted RootedScript; typedef Rooted RootedString; typedef Rooted RootedSymbol; typedef Rooted RootedBigInt; typedef Rooted RootedId; typedef Rooted RootedValue; typedef RootedVector RootedValueVector; typedef RootedVector RootedObjectVector; typedef RootedVector RootedIdVector; typedef PersistentRooted PersistentRootedFunction; typedef PersistentRooted PersistentRootedId; typedef PersistentRooted PersistentRootedObject; typedef PersistentRooted PersistentRootedScript; typedef PersistentRooted PersistentRootedString; typedef PersistentRooted PersistentRootedSymbol; typedef PersistentRooted PersistentRootedBigInt; typedef PersistentRooted PersistentRootedValue; typedef PersistentRootedVector PersistentRootedIdVector; typedef PersistentRootedVector PersistentRootedObjectVector; template using HandleVector = Handle>; template using MutableHandleVector = MutableHandle>; } // namespace JS using jsid = JS::PropertyKey; #endif /* js_TypeDecls_h */