Public Member Functions | Protected Types | Protected Attributes | Friends

js::AutoGCRooter Class Reference

#include <jscntxt.h>

Inheritance diagram for js::AutoGCRooter:
Collaboration diagram for js::AutoGCRooter:

List of all members.

Public Member Functions

 AutoGCRooter (JSContext *cx, ptrdiff_t tag)
 ~AutoGCRooter ()
void trace (JSTracer *trc)

Protected Types

enum  {
  JSVAL = -1, SHAPE = -2, PARSER = -3, SCRIPT = -4,
  ENUMERATOR = -5, IDARRAY = -6, DESCRIPTORS = -7, NAMESPACES = -8,
  XML = -9, OBJECT = -10, ID = -11, VALVECTOR = -12,
  DESCRIPTOR = -13, STRING = -14, IDVECTOR = -15, BINDINGS = -16
}

Protected Attributes

AutoGCRooter *const down
ptrdiff_t tag
JSContext *const context

Friends

void MarkContext (JSTracer *trc, JSContext *acx)
void MarkRuntime (JSTracer *trc)

Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
JSVAL 
SHAPE 
PARSER 
SCRIPT 
ENUMERATOR 
IDARRAY 
DESCRIPTORS 
NAMESPACES 
XML 
OBJECT 
ID 
VALVECTOR 
DESCRIPTOR 
STRING 
IDVECTOR 
BINDINGS 

Constructor & Destructor Documentation

js::AutoGCRooter::AutoGCRooter ( JSContext cx,
ptrdiff_t  tag 
) [inline]
js::AutoGCRooter::~AutoGCRooter (  )  [inline]

Member Function Documentation

void js::AutoGCRooter::trace ( JSTracer trc  )  [inline]

Friends And Related Function Documentation

void MarkContext ( JSTracer trc,
JSContext acx 
) [friend]
void MarkRuntime ( JSTracer trc  )  [friend]

Member Data Documentation

Reimplemented in js::Parser.

ptrdiff_t js::AutoGCRooter::tag [protected]

The documentation for this class was generated from the following file: