Public Member Functions | Static Public Member Functions | Friends

JSStackFrame Struct Reference

#include <jsinterp.h>

Collaboration diagram for JSStackFrame:

List of all members.

Public Member Functions

bool isFunctionFrame () const
bool isGlobalFrame () const
bool isDummyFrame () const
bool isScriptFrame () const
bool isEvalFrame () const
bool isExecuteFrame () const
void initCallFrame (JSContext *cx, JSObject &callee, JSFunction *fun, uint32 nactual, uint32 flags)
void resetInvokeCallFrame ()
void initCallFrameCallerHalf (JSContext *cx, uint32 flags, void *ncode)
void initCallFrameEarlyPrologue (JSFunction *fun, uint32 nactual)
void initCallFrameLatePrologue ()
void initEvalFrame (JSContext *cx, JSScript *script, JSStackFrame *prev, uint32 flags)
void initGlobalFrame (JSScript *script, JSObject &chain, uint32 flags)
void stealFrameAndSlots (js::Value *vp, JSStackFrame *otherfp, js::Value *othervp, js::Value *othersp)
void initDummyFrame (JSContext *cx, JSObject &chain)
JSStackFrameprev () const
void resetGeneratorPrev (JSContext *cx)
js::Valueslots () const
js::Valuebase () const
js::ValuevarSlot (uintN i)
jsbytecodepc (JSContext *cx, JSStackFrame *next=NULL)
jsbytecodeprevpc ()
JSScriptscript () const
JSScriptfunctionScript () const
JSScriptglobalScript () const
JSScriptmaybeScript () const
size_t numFixed () const
size_t numSlots () const
size_t numGlobalVars () const
JSFunctionfun () const
JSFunctionmaybeFun () const
bool hasArgs () const
uintN numFormalArgs () const
js::ValueformalArg (uintN i) const
js::ValueformalArgs () const
js::ValueformalArgsEnd () const
js::ValuemaybeFormalArgs () const
uintN numActualArgs () const
js::ValueactualArgs () const
js::ValueactualArgsEnd () const
js::ValuecanonicalActualArg (uintN i) const
template<class Op >
void forEachCanonicalActualArg (Op op)
template<class Op >
void forEachFormalArg (Op op)
void clearMissingArgs ()
bool hasArgsObj () const
JSObjectargsObj () const
JSObjectmaybeArgsObj () const
void setArgsObj (JSObject &obj)
void clearArgsObj ()
js::ValuefunctionThis () const
JSObjectconstructorThis () const
js::ValueglobalThis () const
js::ValuethisValue () const
bool computeThis (JSContext *cx)
js::ValuecalleeValue () const
JSObjectcallee () const
JSObjectmaybeCallee () const
bool getValidCalleeObject (JSContext *cx, js::Value *vp)
JSObjectscopeChain () const
bool hasCallObj () const
JSObjectcallObj () const
JSObjectmaybeCallObj () const
void setScopeChainNoCallObj (JSObject &obj)
void setScopeChainAndCallObj (JSObject &obj)
void clearCallObj ()
bool hasImacropc () const
jsbytecodeimacropc () const
jsbytecodemaybeImacropc () const
void clearImacropc ()
void setImacropc (jsbytecode *pc)
void * annotation () const
void setAnnotation (void *annot)
bool hasHookData () const
void * hookData () const
void * maybeHookData () const
void setHookData (void *v)
const js::ValuereturnValue ()
void markReturnValue ()
void setReturnValue (const js::Value &v)
void clearReturnValue ()
void * nativeReturnAddress () const
void setNativeReturnAddress (void *addr)
void ** addressOfNativeReturnAddress ()
bool isGeneratorFrame () const
bool isFloatingGenerator () const
void initFloatingGenerator ()
void unsetFloatingGenerator ()
void setFloatingGenerator ()
bool isConstructing () const
uint32 isConstructingFlag () const
bool isDebuggerFrame () const
bool isEvalOrDebuggerFrame () const
bool hasOverriddenArgs () const
bool hasOverflowArgs () const
void setOverriddenArgs ()
bool isAssigning () const
void setAssigning ()
void clearAssigning ()
bool isYielding ()
void setYielding ()
void clearYielding ()
void setFinishedInInterpreter ()
bool finishedInInterpreter () const
JSObjectvarobj (js::StackSegment *seg) const
JSObjectvarobj (JSContext *cx) const
void * addressOfArgs ()
JSObject ** addressOfScopeChain ()
void staticAsserts ()
js::mjit::JITScript * jit ()
void methodjitStaticAsserts ()

Static Public Member Functions

static size_t offsetOfFlags ()
static size_t offsetOfExec ()
static size_t offsetOfScopeChain ()
static size_t offsetOfPrev ()
static size_t offsetOfReturnValue ()
static ptrdiff_t offsetOfncode ()
static ptrdiff_t offsetOfCallee (JSFunction *fun)
static ptrdiff_t offsetOfThis (JSFunction *fun)
static ptrdiff_t offsetOfFormalArg (JSFunction *fun, uintN i)
static size_t offsetOfFixed (uintN i)

Friends

class js::StackSpace
class js::FrameRegsIter
struct JSContext

Member Function Documentation

js::Value* JSStackFrame::actualArgs (  )  const [inline]
js::Value* JSStackFrame::actualArgsEnd (  )  const [inline]
void* JSStackFrame::addressOfArgs (  )  [inline]
void** JSStackFrame::addressOfNativeReturnAddress (  )  [inline]
JSObject** JSStackFrame::addressOfScopeChain (  )  [inline]
void* JSStackFrame::annotation (  )  const [inline]
JSObject& JSStackFrame::argsObj (  )  const [inline]
js::Value* JSStackFrame::base (  )  const [inline]
JSObject& JSStackFrame::callee (  )  const [inline]
js::Value& JSStackFrame::calleeValue (  )  const [inline]
JSObject& JSStackFrame::callObj (  )  const [inline]
js::Value& JSStackFrame::canonicalActualArg ( uintN  i  )  const [inline]
void JSStackFrame::clearArgsObj (  )  [inline]
void JSStackFrame::clearAssigning (  )  [inline]
void JSStackFrame::clearCallObj (  )  [inline]
void JSStackFrame::clearImacropc (  )  [inline]
void JSStackFrame::clearMissingArgs (  )  [inline]
void JSStackFrame::clearReturnValue (  )  [inline]
void JSStackFrame::clearYielding (  )  [inline]
bool JSStackFrame::computeThis ( JSContext cx  )  [inline]
JSObject& JSStackFrame::constructorThis (  )  const [inline]
bool JSStackFrame::finishedInInterpreter (  )  const [inline]
template<class Op >
void JSStackFrame::forEachCanonicalActualArg ( Op  op  )  [inline]
template<class Op >
void JSStackFrame::forEachFormalArg ( Op  op  )  [inline]
js::Value& JSStackFrame::formalArg ( uintN  i  )  const [inline]
js::Value* JSStackFrame::formalArgs (  )  const [inline]
js::Value* JSStackFrame::formalArgsEnd (  )  const [inline]
JSFunction* JSStackFrame::fun (  )  const [inline]
JSScript* JSStackFrame::functionScript (  )  const [inline]
js::Value& JSStackFrame::functionThis (  )  const [inline]
bool JSStackFrame::getValidCalleeObject ( JSContext cx,
js::Value vp 
)
JSScript* JSStackFrame::globalScript (  )  const [inline]
js::Value& JSStackFrame::globalThis (  )  const [inline]
bool JSStackFrame::hasArgs (  )  const [inline]
bool JSStackFrame::hasArgsObj (  )  const [inline]
bool JSStackFrame::hasCallObj (  )  const [inline]
bool JSStackFrame::hasHookData (  )  const [inline]
bool JSStackFrame::hasImacropc (  )  const [inline]
bool JSStackFrame::hasOverflowArgs (  )  const [inline]
bool JSStackFrame::hasOverriddenArgs (  )  const [inline]
void* JSStackFrame::hookData (  )  const [inline]
jsbytecode* JSStackFrame::imacropc (  )  const [inline]
void JSStackFrame::initCallFrame ( JSContext cx,
JSObject callee,
JSFunction fun,
uint32  nactual,
uint32  flags 
) [inline]
void JSStackFrame::initCallFrameCallerHalf ( JSContext cx,
uint32  flags,
void *  ncode 
) [inline]
void JSStackFrame::initCallFrameEarlyPrologue ( JSFunction fun,
uint32  nactual 
) [inline]
void JSStackFrame::initCallFrameLatePrologue (  )  [inline]
void JSStackFrame::initDummyFrame ( JSContext cx,
JSObject chain 
) [inline]
void JSStackFrame::initEvalFrame ( JSContext cx,
JSScript script,
JSStackFrame prev,
uint32  flags 
) [inline]
void JSStackFrame::initFloatingGenerator (  )  [inline]
void JSStackFrame::initGlobalFrame ( JSScript script,
JSObject chain,
uint32  flags 
) [inline]
bool JSStackFrame::isAssigning (  )  const [inline]
bool JSStackFrame::isConstructing (  )  const [inline]
uint32 JSStackFrame::isConstructingFlag (  )  const [inline]
bool JSStackFrame::isDebuggerFrame (  )  const [inline]
bool JSStackFrame::isDummyFrame (  )  const [inline]
bool JSStackFrame::isEvalFrame (  )  const [inline]
bool JSStackFrame::isEvalOrDebuggerFrame (  )  const [inline]
bool JSStackFrame::isExecuteFrame (  )  const [inline]
bool JSStackFrame::isFloatingGenerator (  )  const [inline]
bool JSStackFrame::isFunctionFrame (  )  const [inline]
bool JSStackFrame::isGeneratorFrame (  )  const [inline]
bool JSStackFrame::isGlobalFrame (  )  const [inline]
bool JSStackFrame::isScriptFrame (  )  const [inline]
bool JSStackFrame::isYielding (  )  [inline]
js::mjit::JITScript* JSStackFrame::jit (  )  [inline]
void JSStackFrame::markReturnValue (  )  [inline]
JSObject* JSStackFrame::maybeArgsObj (  )  const [inline]
JSObject* JSStackFrame::maybeCallee (  )  const [inline]
JSObject* JSStackFrame::maybeCallObj (  )  const [inline]
js::Value* JSStackFrame::maybeFormalArgs (  )  const [inline]
JSFunction* JSStackFrame::maybeFun (  )  const [inline]
void* JSStackFrame::maybeHookData (  )  const [inline]
jsbytecode* JSStackFrame::maybeImacropc (  )  const [inline]
JSScript* JSStackFrame::maybeScript (  )  const [inline]
void JSStackFrame::methodjitStaticAsserts (  ) 
void* JSStackFrame::nativeReturnAddress (  )  const [inline]
uintN JSStackFrame::numActualArgs (  )  const [inline]
size_t JSStackFrame::numFixed (  )  const [inline]
uintN JSStackFrame::numFormalArgs (  )  const [inline]
size_t JSStackFrame::numGlobalVars (  )  const [inline]
size_t JSStackFrame::numSlots (  )  const [inline]
static ptrdiff_t JSStackFrame::offsetOfCallee ( JSFunction fun  )  [inline, static]
static size_t JSStackFrame::offsetOfExec (  )  [inline, static]
static size_t JSStackFrame::offsetOfFixed ( uintN  i  )  [inline, static]
static size_t JSStackFrame::offsetOfFlags (  )  [inline, static]
static ptrdiff_t JSStackFrame::offsetOfFormalArg ( JSFunction fun,
uintN  i 
) [inline, static]
static ptrdiff_t JSStackFrame::offsetOfncode (  )  [inline, static]
static size_t JSStackFrame::offsetOfPrev (  )  [inline, static]
static size_t JSStackFrame::offsetOfReturnValue (  )  [inline, static]
static size_t JSStackFrame::offsetOfScopeChain (  )  [inline, static]
static ptrdiff_t JSStackFrame::offsetOfThis ( JSFunction fun  )  [inline, static]
jsbytecode* JSStackFrame::pc ( JSContext cx,
JSStackFrame next = NULL 
)
JSStackFrame* JSStackFrame::prev (  )  const [inline]
jsbytecode* JSStackFrame::prevpc (  )  [inline]
void JSStackFrame::resetGeneratorPrev ( JSContext cx  )  [inline]
void JSStackFrame::resetInvokeCallFrame (  )  [inline]
const js::Value& JSStackFrame::returnValue (  )  [inline]
JSObject& JSStackFrame::scopeChain (  )  const [inline]
JSScript* JSStackFrame::script (  )  const [inline]
void JSStackFrame::setAnnotation ( void *  annot  )  [inline]
void JSStackFrame::setArgsObj ( JSObject obj  )  [inline]
void JSStackFrame::setAssigning (  )  [inline]
void JSStackFrame::setFinishedInInterpreter (  )  [inline]
void JSStackFrame::setFloatingGenerator (  )  [inline]
void JSStackFrame::setHookData ( void *  v  )  [inline]
void JSStackFrame::setImacropc ( jsbytecode pc  )  [inline]
void JSStackFrame::setNativeReturnAddress ( void *  addr  )  [inline]
void JSStackFrame::setOverriddenArgs (  )  [inline]
void JSStackFrame::setReturnValue ( const js::Value v  )  [inline]
void JSStackFrame::setScopeChainAndCallObj ( JSObject obj  )  [inline]
void JSStackFrame::setScopeChainNoCallObj ( JSObject obj  )  [inline]
void JSStackFrame::setYielding (  )  [inline]
js::Value* JSStackFrame::slots (  )  const [inline]
void JSStackFrame::staticAsserts (  )  [inline]
void JSStackFrame::stealFrameAndSlots ( js::Value vp,
JSStackFrame otherfp,
js::Value othervp,
js::Value othersp 
) [inline]
js::Value& JSStackFrame::thisValue (  )  const [inline]
void JSStackFrame::unsetFloatingGenerator (  )  [inline]
JSObject& JSStackFrame::varobj ( js::StackSegment seg  )  const [inline]
JSObject& JSStackFrame::varobj ( JSContext cx  )  const [inline]
js::Value& JSStackFrame::varSlot ( uintN  i  )  [inline]

Friends And Related Function Documentation

friend class js::FrameRegsIter [friend]
friend class js::StackSpace [friend]
friend struct JSContext [friend]

Member Data Documentation


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