diff -r 000000000000 -r 6474c204b198 js/src/gc/Rooting.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/gc/Rooting.h Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,40 @@ +/* -*- 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/RootingAPI.h" + +class JSAtom; + +namespace js { + +class PropertyName; +class Shape; + +namespace types { struct TypeObject; } + +// These are internal counterparts to the public types such as HandleObject. + +typedef JS::Handle HandleShape; +typedef JS::Handle HandleTypeObject; +typedef JS::Handle HandleAtom; +typedef JS::Handle HandlePropertyName; +typedef JS::Handle HandleScriptSource; + +typedef JS::MutableHandle MutableHandleShape; +typedef JS::MutableHandle MutableHandleAtom; + +typedef JS::Rooted RootedShape; +typedef JS::Rooted RootedTypeObject; +typedef JS::Rooted RootedAtom; +typedef JS::Rooted RootedPropertyName; +typedef JS::Rooted RootedScriptSource; + +} /* namespace js */ + +#endif /* gc_Rooting_h */