Public Member Functions | Public Attributes | Friends

JSContext Struct Reference

#include <jscntxt.h>

Collaboration diagram for JSContext:

List of all members.

Public Member Functions

 JSContext (JSRuntime *rt)
JSStackFramefp ()
JSStackFramemaybefp ()
bool hasfp ()
void resetCompartment ()
void wrapPendingException ()
void setCurrentRegs (JSFrameRegs *regs)
void assertSegmentsInSync () const
bool hasActiveSegment () const
js::StackSegmentactiveSegment () const
js::StackSegmentgetCurrentSegment () const
js::RegExpStaticsregExpStatics ()
void pushSegmentAndFrame (js::StackSegment *newseg, JSFrameRegs &regs)
void popSegmentAndFrame ()
void saveActiveSegment ()
void restoreSegment ()
JSStackFramecomputeNextFrame (JSStackFrame *fp)
js::StackSegmentcontainingSegment (const JSStackFrame *target)
JSStackFramefindFrameAtLevel (uintN targetLevel) const
void clearVersionOverride ()
bool isVersionOverridden () const
void setDefaultVersion (JSVersion version)
bool maybeOverrideVersion (JSVersion newVersion)
JSVersion findVersion () const
void optionFlagsToVersion (JSVersion *version) const
void checkOptionVersionSync () const
void syncOptionsToVersion ()
void updateJITEnabled ()
js::mjit::JaegerCompartment * jaegerCompartment ()
JSGeneratorgeneratorFor (JSStackFrame *fp) const
bool ensureGeneratorStackSpace ()
bool enterGenerator (JSGenerator *gen)
void leaveGenerator (JSGenerator *gen)
void * malloc (size_t bytes)
void * mallocNoReport (size_t bytes)
void * calloc (size_t bytes)
void * realloc (void *p, size_t bytes)
void * realloc (void *p, size_t oldBytes, size_t newBytes)
void free (void *p)
template<class T >
T * create ()
template<class T , class P1 >
T * create (const P1 &p1)
template<class T , class P1 , class P2 >
T * create (const P1 &p1, const P2 &p2)
template<class T , class P1 , class P2 , class P3 >
T * create (const P1 &p1, const P2 &p2, const P3 &p3)
template<class T >
void destroy (T *p)
void purge ()
js::StackSpacestack () const
void assertValidStackDepth (uintN)
bool isExceptionPending ()
js::Value getPendingException ()
void setPendingException (js::Value v)
void clearPendingException ()

Public Attributes

JSCList link
uint32 options
JSLocaleCallbackslocaleCallbacks
JSDHashTableresolvingTable
JSPackedBool generatingError
jsuword stackLimit
size_t scriptStackQuota
JSRuntime *const runtime
JSCompartmentcompartment
JSFrameRegsregs
JSArenaPool tempPool
JSArenaPool regExpPool
JSObjectglobalObject
JSSharpObjectMap sharpObjectMap
js::BusyArraysMap busyArrays
JSArgumentFormatMapargumentFormatMap
char * lastMessage
JSErrorReporter errorReporter
JSOperationCallback operationCallback
uintN interpLevel
void * data
void * data2
JSThreadthread
unsigned outstandingRequests
JSCList threadLinks
js::AutoGCRooterautoGCRooters
const JSDebugHooksdebugHooks
JSSecurityCallbackssecurityCallbacks
uintN resolveFlags
int64 rngSeed
js::Value iterValue
bool traceJitEnabled
bool methodJitEnabled
bool profilingEnabled
DSTOffsetCache dstOffsetCache
JSObjectenumerators
js::GCHelperThreadgcBackgroundFree

Friends

class js::StackSpace
bool js::Interpret (JSContext *, JSStackFrame *, uintN, JSInterpMode)

Constructor & Destructor Documentation

JSContext::JSContext ( JSRuntime rt  )  [explicit]

Member Function Documentation

js::StackSegment* JSContext::activeSegment (  )  const [inline]
void JSContext::assertSegmentsInSync (  )  const [inline]
void JSContext::assertValidStackDepth ( uintN   )  [inline]
void* JSContext::calloc ( size_t  bytes  )  [inline]
void JSContext::checkOptionVersionSync (  )  const [inline]
void JSContext::clearPendingException (  )  [inline]
void JSContext::clearVersionOverride (  )  [inline]
JSStackFrame* JSContext::computeNextFrame ( JSStackFrame fp  )  [inline]
js::StackSegment* JSContext::containingSegment ( const JSStackFrame target  ) 
template<class T >
T* JSContext::create (  )  [inline]
template<class T , class P1 , class P2 >
T* JSContext::create ( const P1 &  p1,
const P2 &  p2 
) [inline]
template<class T , class P1 , class P2 , class P3 >
T* JSContext::create ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3 
) [inline]
template<class T , class P1 >
T* JSContext::create ( const P1 &  p1  )  [inline]
template<class T >
void JSContext::destroy ( T *  p  )  [inline]
bool JSContext::ensureGeneratorStackSpace (  )  [inline]
bool JSContext::enterGenerator ( JSGenerator gen  )  [inline]
JSStackFrame* JSContext::findFrameAtLevel ( uintN  targetLevel  )  const [inline]
JSVersion JSContext::findVersion (  )  const [inline]
JSStackFrame* JSContext::fp (  )  [inline]
void JSContext::free ( void *  p  )  [inline]
JSGenerator* JSContext::generatorFor ( JSStackFrame fp  )  const
js::StackSegment* JSContext::getCurrentSegment (  )  const [inline]
js::Value JSContext::getPendingException (  )  [inline]
bool JSContext::hasActiveSegment (  )  const [inline]
bool JSContext::hasfp (  )  [inline]
bool JSContext::isExceptionPending (  )  [inline]
bool JSContext::isVersionOverridden (  )  const [inline]
js::mjit::JaegerCompartment* JSContext::jaegerCompartment (  )  [inline]
void JSContext::leaveGenerator ( JSGenerator gen  )  [inline]
void* JSContext::malloc ( size_t  bytes  )  [inline]
void* JSContext::mallocNoReport ( size_t  bytes  )  [inline]
JSStackFrame* JSContext::maybefp (  )  [inline]
bool JSContext::maybeOverrideVersion ( JSVersion  newVersion  )  [inline]
void JSContext::optionFlagsToVersion ( JSVersion version  )  const [inline]
void JSContext::popSegmentAndFrame (  ) 
void JSContext::purge (  ) 
void JSContext::pushSegmentAndFrame ( js::StackSegment newseg,
JSFrameRegs regs 
)
void* JSContext::realloc ( void *  p,
size_t  bytes 
) [inline]
void* JSContext::realloc ( void *  p,
size_t  oldBytes,
size_t  newBytes 
) [inline]
js::RegExpStatics* JSContext::regExpStatics (  )  [inline]
void JSContext::resetCompartment (  ) 
void JSContext::restoreSegment (  ) 
void JSContext::saveActiveSegment (  ) 
void JSContext::setCurrentRegs ( JSFrameRegs regs  )  [inline]
void JSContext::setDefaultVersion ( JSVersion  version  )  [inline]
void JSContext::setPendingException ( js::Value  v  ) 
js::StackSpace& JSContext::stack (  )  const [inline]
void JSContext::syncOptionsToVersion (  )  [inline]
void JSContext::updateJITEnabled (  ) 
void JSContext::wrapPendingException (  ) 

Friends And Related Function Documentation

bool js::Interpret ( JSContext ,
JSStackFrame ,
uintN  ,
JSInterpMode   
) [friend]
friend class js::StackSpace [friend]

Member Data Documentation


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