Pyrogenesis
13997
|
Helper for rooting large groups of script values. More...
#include <AutoRooters.h>
Public Member Functions | |
AutoGCRooter (ScriptInterface &scriptInterface) | |
~AutoGCRooter () | |
void | Push (JSObject *obj) |
void | Push (jsval val) |
void | Push (JSIdArray *ida) |
void | Trace (JSTracer *trc) |
Private Member Functions | |
NONCOPYABLE (AutoGCRooter) | |
Private Attributes | |
ScriptInterface & | m_ScriptInterface |
AutoGCRooter * | m_Previous |
std::vector< JSObject * > | m_Objects |
std::vector< jsval > | m_Vals |
std::vector< JSIdArray * > | m_IdArrays |
Helper for rooting large groups of script values.
Construct this object, push values into it, and they will all be rooted until this object is destroyed. Many of these objects can be used at once, but their lifetimes must be correctly nested.
Definition at line 31 of file AutoRooters.h.
AutoGCRooter::AutoGCRooter | ( | ScriptInterface & | scriptInterface | ) |
Definition at line 24 of file AutoRooters.cpp.
AutoGCRooter::~AutoGCRooter | ( | ) |
Definition at line 30 of file AutoRooters.cpp.
|
private |
|
inline |
Definition at line 38 of file AutoRooters.h.
|
inline |
Definition at line 39 of file AutoRooters.h.
|
inline |
Definition at line 40 of file AutoRooters.h.
void AutoGCRooter::Trace | ( | JSTracer * | trc | ) |
Definition at line 36 of file AutoRooters.cpp.
|
private |
Definition at line 49 of file AutoRooters.h.
|
private |
Definition at line 47 of file AutoRooters.h.
|
private |
Definition at line 45 of file AutoRooters.h.
|
private |
Definition at line 44 of file AutoRooters.h.
|
private |
Definition at line 48 of file AutoRooters.h.