michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * vim: set ts=8 sts=4 et sw=4 tw=99: michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef gc_Rooting_h michael@0: #define gc_Rooting_h michael@0: michael@0: #include "js/RootingAPI.h" michael@0: michael@0: class JSAtom; michael@0: michael@0: namespace js { michael@0: michael@0: class PropertyName; michael@0: class Shape; michael@0: michael@0: namespace types { struct TypeObject; } michael@0: michael@0: // These are internal counterparts to the public types such as HandleObject. michael@0: michael@0: typedef JS::Handle HandleShape; michael@0: typedef JS::Handle HandleTypeObject; michael@0: typedef JS::Handle HandleAtom; michael@0: typedef JS::Handle HandlePropertyName; michael@0: typedef JS::Handle HandleScriptSource; michael@0: michael@0: typedef JS::MutableHandle MutableHandleShape; michael@0: typedef JS::MutableHandle MutableHandleAtom; michael@0: michael@0: typedef JS::Rooted RootedShape; michael@0: typedef JS::Rooted RootedTypeObject; michael@0: typedef JS::Rooted RootedAtom; michael@0: typedef JS::Rooted RootedPropertyName; michael@0: typedef JS::Rooted RootedScriptSource; michael@0: michael@0: } /* namespace js */ michael@0: michael@0: #endif /* gc_Rooting_h */