Public Member Functions | Public Attributes

JSRuntime Struct Reference

#include <jscntxt.h>

Collaboration diagram for JSRuntime:

List of all members.

Public Member Functions

void setActivityCallback (JSActivityCallback cb, void *arg)
void setCustomGCChunkAllocator (js::GCChunkAllocator *allocator)
bool debuggerInhibitsJIT () const
 JSRuntime ()
 ~JSRuntime ()
bool init (uint32 maxbytes)
void setGCTriggerFactor (uint32 factor)
void setGCLastBytes (size_t lastBytes)
void * malloc (size_t bytes, JSContext *cx=NULL)
void * calloc (size_t bytes, JSContext *cx=NULL)
void * realloc (void *p, size_t oldBytes, size_t newBytes, JSContext *cx=NULL)
void * realloc (void *p, size_t bytes, JSContext *cx=NULL)
void free (void *p)
bool isGCMallocLimitReached () const
void resetGCMallocBytes ()
void setGCMaxMallocBytes (size_t value)
void updateMallocCounter (size_t nbytes)

Public Attributes

JSCompartmentatomsCompartment
bool atomsCompartmentIsLocked
js::WrapperVector compartments
JSRuntimeState state
JSContextCallback cxCallback
JSCompartmentCallback compartmentCallback
JSActivityCallback activityCallback
void * activityCallbackArg
uint32 protoHazardShape
js::GCChunkSet gcChunkSet
js::RootedValueMap gcRootsHash
js::GCLocks gcLocksHash
jsrefcount gcKeepAtoms
size_t gcBytes
size_t gcTriggerBytes
size_t gcLastBytes
size_t gcMaxBytes
size_t gcMaxMallocBytes
uint32 gcEmptyArenaPoolLifespan
uint32 gcNumber
js::GCMarkergcMarkingTracer
uint32 gcTriggerFactor
int64 gcJitReleaseTime
JSGCMode gcMode
volatile bool gcIsNeeded
JSCompartmentgcTriggerCompartment
JSCompartmentgcCurrentCompartment
bool gcPoke
bool gcMarkAndSweep
bool gcRunning
bool gcRegenShapes
JSGCCallback gcCallback
js::GCChunkAllocatorgcChunkAllocator
JSTraceDataOp gcExtraRootsTraceOp
void * gcExtraRootsData
js::Value NaNValue
js::Value negativeInfinityValue
js::Value positiveInfinityValue
JSFlatStringemptyString
JSCList contextList
JSDebugHooks globalDebugHooks
JSBool debugMode
JSCList trapList
JSCList watchPointList
void * data
PRLockgcLock
PRCondVargcDone
PRCondVarrequestDone
uint32 requestCount
JSThreadgcThread
js::GCHelperThread gcHelperThread
PRLockrtLock
PRCondVarstateChange
PRLockdebuggerLock
JSThread::Map threads
uint32 debuggerMutations
JSSecurityCallbackssecurityCallbacks
const JSStructuredCloneCallbacksstructuredCloneCallbacks
js::PropertyTree propertyTree
int32 propertyRemovals
struct JSHashTablescriptFilenameTable
JSCList scriptFilenamePrefixes
PRLockscriptFilenameTableLock
const char * thousandsSeparator
const char * decimalSeparator
const char * numGrouping
JSObjectanynameObject
JSObjectfunctionNamespaceObject
volatile int32 interruptCounter
volatile uint32 shapeGen
JSAtomState atomState
js::EmptyShapeemptyArgumentsShape
js::EmptyShapeemptyBlockShape
js::EmptyShapeemptyCallShape
js::EmptyShapeemptyDeclEnvShape
js::EmptyShapeemptyEnumeratorShape
js::EmptyShapeemptyWithShape
JSWrapObjectCallback wrapObjectCallback
JSPreWrapCallback preWrapObjectCallback
uint32 mjitMemoryUsed
uint32 stringMemoryUsed

Constructor & Destructor Documentation

JSRuntime::JSRuntime (  ) 
JSRuntime::~JSRuntime (  ) 

Member Function Documentation

void* JSRuntime::calloc ( size_t  bytes,
JSContext cx = NULL 
) [inline]
bool JSRuntime::debuggerInhibitsJIT (  )  const [inline]
void JSRuntime::free ( void *  p  )  [inline]
bool JSRuntime::init ( uint32  maxbytes  ) 
bool JSRuntime::isGCMallocLimitReached (  )  const [inline]
void* JSRuntime::malloc ( size_t  bytes,
JSContext cx = NULL 
) [inline]
void* JSRuntime::realloc ( void *  p,
size_t  oldBytes,
size_t  newBytes,
JSContext cx = NULL 
) [inline]
void* JSRuntime::realloc ( void *  p,
size_t  bytes,
JSContext cx = NULL 
) [inline]
void JSRuntime::resetGCMallocBytes (  )  [inline]
void JSRuntime::setActivityCallback ( JSActivityCallback  cb,
void *  arg 
) [inline]
void JSRuntime::setCustomGCChunkAllocator ( js::GCChunkAllocator allocator  )  [inline]
void JSRuntime::setGCLastBytes ( size_t  lastBytes  ) 
void JSRuntime::setGCMaxMallocBytes ( size_t  value  )  [inline]
void JSRuntime::setGCTriggerFactor ( uint32  factor  ) 
void JSRuntime::updateMallocCounter ( size_t  nbytes  )  [inline]

Member Data Documentation

JSGCCallback JSRuntime::gcCallback

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