Differential D3085 Diff 13866 ps/trunk/libraries/source/spidermonkey/include-win32-release/js/RootingAPI.h
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/libraries/source/spidermonkey/include-win32-release/js/RootingAPI.h
Show First 20 Lines • Show All 1,013 Lines • ▼ Show 20 Lines | void registerWithRootLists(js::RootLists& roots) { | ||||
MOZ_ASSERT(!initialized()); | MOZ_ASSERT(!initialized()); | ||||
js::ThingRootKind kind = js::RootKind<T>::rootKind(); | js::ThingRootKind kind = js::RootKind<T>::rootKind(); | ||||
roots.heapRoots_[kind].insertBack(reinterpret_cast<JS::PersistentRooted<void*>*>(this)); | roots.heapRoots_[kind].insertBack(reinterpret_cast<JS::PersistentRooted<void*>*>(this)); | ||||
// Until marking and destruction support the full set, we assert that | // Until marking and destruction support the full set, we assert that | ||||
// we don't try to add any unsupported types. | // we don't try to add any unsupported types. | ||||
MOZ_ASSERT(kind == js::THING_ROOT_OBJECT || | MOZ_ASSERT(kind == js::THING_ROOT_OBJECT || | ||||
kind == js::THING_ROOT_SCRIPT || | kind == js::THING_ROOT_SCRIPT || | ||||
kind == js::THING_ROOT_STRING || | kind == js::THING_ROOT_STRING || | ||||
kind == js::THING_ROOT_SYMBOL || | |||||
kind == js::THING_ROOT_ID || | kind == js::THING_ROOT_ID || | ||||
kind == js::THING_ROOT_VALUE || | kind == js::THING_ROOT_VALUE || | ||||
kind == js::THING_ROOT_TRACEABLE); | kind == js::THING_ROOT_TRACEABLE); | ||||
} | } | ||||
public: | public: | ||||
PersistentRooted() : ptr(js::GCMethods<T>::initial()) {} | PersistentRooted() : ptr(js::GCMethods<T>::initial()) {} | ||||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator