Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
xpcthreadcontext.cpp File Reference
#include "xpcprivate.h"

Go to the source code of this file.

Functions

 SafeGlobalResolve (JSContext *cx, JSObject *obj, jsval id)
static jsuword GetThreadStackLimit ()
 xpc_ThreadDataDtorCB (void *ptr)

Variables

static JSClass global_class

Function Documentation

static jsuword GetThreadStackLimit ( ) [static]

Definition at line 378 of file xpcthreadcontext.cpp.

{
    int stackDummy;
    jsuword stackLimit, currentStackAddr = (jsuword)&stackDummy;

    const jsuword kStackSize = 0x80000;   // 512k

#if JS_STACK_GROWTH_DIRECTION < 0
    stackLimit = (currentStackAddr > kStackSize)
                 ? currentStackAddr - kStackSize
                 : 0;
#else
    stackLimit = (currentStackAddr + kStackSize > currentStackAddr)
                 ? currentStackAddr + kStackSize
                 : (jsuword) -1;
#endif

  return stackLimit;
}
SafeGlobalResolve ( JSContext cx,
JSObject obj,
jsval  id 
)

Definition at line 147 of file xpcthreadcontext.cpp.

{
    JSBool resolved;
    return JS_ResolveStandardClass(cx, obj, id, &resolved);
}

Here is the call graph for this function:

Definition at line 470 of file xpcthreadcontext.cpp.

{
    XPCPerThreadData* data = (XPCPerThreadData*) ptr;
    if(data)
        delete data;
}

Here is the caller graph for this function:


Variable Documentation

Initial value:

Definition at line 153 of file xpcthreadcontext.cpp.