/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * 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_Rooting_h #define gc_Rooting_h #include "js/GCVector.h" #include "js/RootingAPI.h" class JSAtom; class JSLinearString; namespace js { class PropertyName; class NativeObject; class ArrayObject; class GlobalObject; class PlainObject; class ScriptSourceObject; class SavedFrame; class Shape; class ObjectGroup; class DebuggerEnvironment; class DebuggerFrame; class DebuggerObject; class Scope; // These are internal counterparts to the public types such as HandleObject. typedef JS::Handle HandleNativeObject; typedef JS::Handle HandleShape; typedef JS::Handle HandleObjectGroup; typedef JS::Handle HandleAtom; typedef JS::Handle HandleLinearString; typedef JS::Handle HandlePropertyName; typedef JS::Handle HandleArrayObject; typedef JS::Handle HandlePlainObject; typedef JS::Handle HandleSavedFrame; typedef JS::Handle HandleScriptSource; typedef JS::Handle HandleDebuggerEnvironment; typedef JS::Handle HandleDebuggerFrame; typedef JS::Handle HandleDebuggerObject; typedef JS::Handle HandleScope; typedef JS::MutableHandle MutableHandleShape; typedef JS::MutableHandle MutableHandleAtom; typedef JS::MutableHandle MutableHandleNativeObject; typedef JS::MutableHandle MutableHandlePlainObject; typedef JS::MutableHandle MutableHandleSavedFrame; typedef JS::MutableHandle MutableHandleDebuggerEnvironment; typedef JS::MutableHandle MutableHandleDebuggerFrame; typedef JS::MutableHandle MutableHandleDebuggerObject; typedef JS::MutableHandle MutableHandleScope; typedef JS::Rooted RootedNativeObject; typedef JS::Rooted RootedShape; typedef JS::Rooted RootedObjectGroup; typedef JS::Rooted RootedAtom; typedef JS::Rooted RootedLinearString; typedef JS::Rooted RootedPropertyName; typedef JS::Rooted RootedArrayObject; typedef JS::Rooted RootedGlobalObject; typedef JS::Rooted RootedPlainObject; typedef JS::Rooted RootedSavedFrame; typedef JS::Rooted RootedScriptSource; typedef JS::Rooted RootedDebuggerEnvironment; typedef JS::Rooted RootedDebuggerFrame; typedef JS::Rooted RootedDebuggerObject; typedef JS::Rooted RootedScope; typedef JS::GCVector FunctionVector; typedef JS::GCVector PropertyNameVector; typedef JS::GCVector ShapeVector; typedef JS::GCVector StringVector; } /* namespace js */ #endif /* gc_Rooting_h */