Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations | Functions | Variables
jsdebug.h File Reference
#include "jstypes.h"
#include "jsapi.h"
#include "jsdbgapi.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  JSD_UserCallbacks

Defines

#define JSD_PUBLIC_API(t)   JS_IMPORT_API(t)
#define JSD_PUBLIC_DATA(t)   JS_IMPORT_DATA(t)
#define JSD_FRIEND_API(t)   JSD_PUBLIC_API(t)
#define JSD_FRIEND_DATA(t)   JSD_PUBLIC_DATA(t)
#define JSD_INCLUDE_NATIVE_FRAMES   0x01
#define JSD_PROFILE_WHEN_SET   0x02
#define JSD_DEBUG_WHEN_SET   0x04
#define JSD_COLLECT_PROFILE_DATA   0x08
#define JSD_HIDE_DISABLED_FRAMES   0x10
#define JSD_MASK_TOP_FRAME_ONLY   0x20
#define JSD_DISABLE_OBJECT_TRACE   0x40
#define JSD_SCRIPT_PROFILE_BIT   0x01
#define JSD_SCRIPT_DEBUG_BIT   0x02
#define JSD_HOOK_INTERRUPTED   0
#define JSD_HOOK_BREAKPOINT   1
#define JSD_HOOK_DEBUG_REQUESTED   2
#define JSD_HOOK_DEBUGGER_KEYWORD   3
#define JSD_HOOK_THROW   4
#define JSD_HOOK_RETURN_HOOK_ERROR   0
#define JSD_HOOK_RETURN_CONTINUE   1
#define JSD_HOOK_RETURN_ABORT   2
#define JSD_HOOK_RETURN_RET_WITH_VAL   3
#define JSD_HOOK_RETURN_THROW_WITH_VAL   4
#define JSD_HOOK_RETURN_CONTINUE_THROW   5
#define JSD_HOOK_TOPLEVEL_START   0 /* about to evaluate top level script */
#define JSD_HOOK_TOPLEVEL_END   1 /* done evaluting top level script */
#define JSD_HOOK_FUNCTION_CALL   2 /* about to call a function */
#define JSD_HOOK_FUNCTION_RETURN   3 /* done calling function */
#define JSD_ERROR_REPORTER_PASS_ALONG   0 /* pass along to regular reporter */
#define JSD_ERROR_REPORTER_RETURN   1 /* don't pass to error reporter */
#define JSD_ERROR_REPORTER_DEBUG   2 /* force call to DebugBreakHook */
#define JSD_ERROR_REPORTER_CLEAR_RETURN   3 /* clear exception and don't pass */
#define JSDPD_ENUMERATE   JSPD_ENUMERATE /* visible to for/in loop */
#define JSDPD_READONLY   JSPD_READONLY /* assignment is error */
#define JSDPD_PERMANENT   JSPD_PERMANENT /* property cannot be deleted */
#define JSDPD_ALIAS   JSPD_ALIAS /* property has an alias id */
#define JSDPD_ARGUMENT   JSPD_ARGUMENT /* argument to function */
#define JSDPD_VARIABLE   JSPD_VARIABLE /* local variable in function */
#define JSDPD_EXCEPTION   JSPD_EXCEPTION /* exception occurred looking up */
#define JSDPD_ERROR   JSPD_ERROR /* native getter returned JS_FALSE */
#define JSDPD_HINTED   0x800 /* found via explicit lookup */

Typedefs

typedef struct JSDContext
typedef struct JSDScript
typedef struct JSDSourceText
typedef struct JSDThreadState
typedef struct JSDStackFrameInfo
typedef struct JSDValue
typedef struct JSDProperty
typedef struct JSDObject
typedef void(* JS_DLL_CALLBACK )(JSDContext *jsdc, void *user)

Enumerations

enum  JSDSourceStatus {
  JSD_SOURCE_INITED = 0, JSD_SOURCE_PARTIAL = 1, JSD_SOURCE_COMPLETED = 2, JSD_SOURCE_ABORTED = 3,
  JSD_SOURCE_FAILED = 4, JSD_SOURCE_CLEARED = 5
}

Functions

 JSD_PUBLIC_API (void) JSD_SetUserCallbacks(JSRuntime *jsrt
 JSD_PUBLIC_API (JSDContext *) JSD_DebuggerOn(void)
 JSD_PUBLIC_API (uintN) JSD_GetMajorVersion(void)
 JSD_PUBLIC_API (JSContext *) JSD_GetDefaultJSContext(JSDContext *jsdc)
 JSD_PUBLIC_API (void *) JSD_SetContextPrivate(JSDContext *jsdc
 JSD_PUBLIC_API (uint32) JSD_GetContextFlags(JSDContext *jsdc)
 JSD_PUBLIC_API (JSDScript *) JSD_IterateScripts(JSDContext *jsdc
 JSD_PUBLIC_API (jsdouble) JSD_GetScriptMinExecutionTime(JSDContext *jsdc
 JSD_PUBLIC_API (JSScript *) JSD_GetJSScript(JSDContext *jsdc
 JSD_PUBLIC_API (JSFunction *) JSD_GetJSFunction(JSDContext *jsdc
 JSD_PUBLIC_API (JSBool) JSD_IsActiveScript(JSDContext *jsdc
 JSD_PUBLIC_API (const char *) JSD_GetScriptFilename(JSDContext *jsdc
 JSD_PUBLIC_API (JSDSourceText *) JSD_IterateSources(JSDContext *jsdc
 JSD_PUBLIC_API (JSDSourceStatus) JSD_GetSourceStatus(JSDContext *jsdc
 JSD_PUBLIC_API (JSDStackFrameInfo *) JSD_GetStackFrame(JSDContext *jsdc
 JSD_PUBLIC_API (JSDValue *) JSD_GetCallObjectForStackFrame(JSDContext *jsdc
 JSD_PUBLIC_API (JSString *) JSD_ValToStringInStackFrame(JSDContext *jsdc
 JSD_PUBLIC_API (jsval) JSD_GetValueWrappedJSVal(JSDContext *jsdc
 JSD_PUBLIC_API (jsdouble *) JSD_GetValueDouble(JSDContext *jsdc
 JSD_PUBLIC_API (JSDProperty *) JSD_IterateProperties(JSDContext *jsdc
 JSD_PUBLIC_API (JSDObject *) JSD_IterateObjects(JSDContext *jsdc
 JSD_PUBLIC_API (JSObject *) JSD_GetWrappedObject(JSDContext *jsdc

Variables

JSD_UserCallbackscallbacks
JSD_UserCallbacks voiduser
voiddata
uint32 flags
JSContextcontext
JSDScript ** iterp
JSDScriptscript
JSDScriptjsdscript
JSD_ScriptHookProc hook
JSD_ScriptHookProc voidcallerdata
JSDScript uintN line
JSDScript jsuword pc
JSContextcx
JSContext const char * filename
JSContext const char uintN lineno
JSContext const char uintN
JSScript JSFunction
fun
const char * url
JSDSourceTextjsdsrc
JSDSourceText const char ** ppBuf
JSDSourceText const char intNpLen
JSDSourceText JSBool dirty
JSDSourceText const char * text
JSDSourceText const char size_t length
JSDSourceText const char
size_t JSDSourceStatus 
status
JSDThreadStatejsdthreadstate
JSDThreadState JSDStackFrameInfojsdframe
JSDThreadState
JSDStackFrameInfo const jschar
bytes
JSDThreadState
JSDStackFrameInfo const jschar
uintN const char uintN jsval
rval
JSDThreadState
JSDStackFrameInfo jsval 
val
JSDThreadState JSDValuejsdval
JSD_ErrorReporter reporter
JSDValue JSStringname
JSDPropertyjsdprop
JSDObjectjsdobj
JSObjectjsobj

Class Documentation

struct JSD_UserCallbacks

Definition at line 114 of file jsdebug.h.

Class Members
JSD_SetContextProc setContext
uintN size

Define Documentation

Definition at line 210 of file jsdebug.h.

Definition at line 206 of file jsdebug.h.

Definition at line 237 of file jsdebug.h.

#define JSD_ERROR_REPORTER_CLEAR_RETURN   3 /* clear exception and don't pass */

Definition at line 1047 of file jsdebug.h.

#define JSD_ERROR_REPORTER_DEBUG   2 /* force call to DebugBreakHook */

Definition at line 1046 of file jsdebug.h.

#define JSD_ERROR_REPORTER_PASS_ALONG   0 /* pass along to regular reporter */

Definition at line 1044 of file jsdebug.h.

Definition at line 1045 of file jsdebug.h.

Definition at line 81 of file jsdebug.h.

Definition at line 82 of file jsdebug.h.

Definition at line 215 of file jsdebug.h.

Definition at line 699 of file jsdebug.h.

Definition at line 700 of file jsdebug.h.

Definition at line 701 of file jsdebug.h.

Definition at line 725 of file jsdebug.h.

Definition at line 726 of file jsdebug.h.

Definition at line 698 of file jsdebug.h.

Definition at line 707 of file jsdebug.h.

Definition at line 706 of file jsdebug.h.

Definition at line 710 of file jsdebug.h.

Definition at line 705 of file jsdebug.h.

Definition at line 708 of file jsdebug.h.

Definition at line 709 of file jsdebug.h.

Definition at line 702 of file jsdebug.h.

#define JSD_HOOK_TOPLEVEL_END   1 /* done evaluting top level script */

Definition at line 724 of file jsdebug.h.

#define JSD_HOOK_TOPLEVEL_START   0 /* about to evaluate top level script */

Definition at line 723 of file jsdebug.h.

Definition at line 194 of file jsdebug.h.

Definition at line 232 of file jsdebug.h.

Definition at line 200 of file jsdebug.h.

Definition at line 77 of file jsdebug.h.

Definition at line 78 of file jsdebug.h.

Definition at line 378 of file jsdebug.h.

Definition at line 373 of file jsdebug.h.

#define JSDPD_ALIAS   JSPD_ALIAS /* property has an alias id */

Definition at line 1348 of file jsdebug.h.

Definition at line 1349 of file jsdebug.h.

Definition at line 1345 of file jsdebug.h.

#define JSDPD_ERROR   JSPD_ERROR /* native getter returned JS_FALSE */

Definition at line 1353 of file jsdebug.h.

#define JSDPD_EXCEPTION   JSPD_EXCEPTION /* exception occurred looking up */

Definition at line 1351 of file jsdebug.h.

#define JSDPD_HINTED   0x800 /* found via explicit lookup */

Definition at line 1356 of file jsdebug.h.

#define JSDPD_PERMANENT   JSPD_PERMANENT /* property cannot be deleted */

Definition at line 1347 of file jsdebug.h.

#define JSDPD_READONLY   JSPD_READONLY /* assignment is error */

Definition at line 1346 of file jsdebug.h.

Definition at line 1350 of file jsdebug.h.


Typedef Documentation

typedef JSIntn(* JS_DLL_CALLBACK)(JSJHashEntry *he, JSIntn i, void *arg)

Definition at line 111 of file jsdebug.h.

typedef struct JSDContext

Definition at line 87 of file jsdebug.h.

typedef struct JSDObject

Definition at line 94 of file jsdebug.h.

typedef struct JSDProperty

Definition at line 93 of file jsdebug.h.

typedef struct JSDScript

Definition at line 88 of file jsdebug.h.

typedef struct JSDSourceText

Definition at line 89 of file jsdebug.h.

typedef struct JSDStackFrameInfo

Definition at line 91 of file jsdebug.h.

typedef struct JSDThreadState

Definition at line 90 of file jsdebug.h.

typedef struct JSDValue

Definition at line 92 of file jsdebug.h.


Enumeration Type Documentation

Enumerator:
JSD_SOURCE_INITED 
JSD_SOURCE_PARTIAL 
JSD_SOURCE_COMPLETED 
JSD_SOURCE_ABORTED 
JSD_SOURCE_FAILED 
JSD_SOURCE_CLEARED 

Definition at line 520 of file jsdebug.h.

{
    JSD_SOURCE_INITED       = 0, /* initialized, but contains no source yet */
    JSD_SOURCE_PARTIAL      = 1, /* some source loaded, more expected */
    JSD_SOURCE_COMPLETED    = 2, /* all source finished loading */
    JSD_SOURCE_ABORTED      = 3, /* user aborted loading, some may be loaded */
    JSD_SOURCE_FAILED       = 4, /* loading failed, some may be loaded */
    JSD_SOURCE_CLEARED      = 5  /* text has been cleared by debugger */
} JSDSourceStatus;

Function Documentation

JSD_PUBLIC_API ( const char *  )

Variable Documentation

char * bytes

Definition at line 974 of file jsdebug.h.

Definition at line 128 of file jsdebug.h.

JSDestroyScriptHook void * callerdata

Definition at line 448 of file jsdebug.h.

Definition at line 252 of file jsdebug.h.

Definition at line 487 of file jsdebug.h.

Definition at line 175 of file jsdebug.h.

Definition at line 610 of file jsdebug.h.

Definition at line 487 of file jsdebug.h.

Definition at line 240 of file jsdebug.h.

Definition at line 487 of file jsdebug.h.

JSDebugErrorHook hook

Definition at line 448 of file jsdebug.h.

Definition at line 298 of file jsdebug.h.

Definition at line 886 of file jsdebug.h.

Definition at line 1447 of file jsdebug.h.

Definition at line 1363 of file jsdebug.h.

Definition at line 381 of file jsdebug.h.

Definition at line 569 of file jsdebug.h.

Definition at line 867 of file jsdebug.h.

Definition at line 1032 of file jsdebug.h.

Definition at line 1495 of file jsdebug.h.

Definition at line 655 of file jsdebug.h.

Definition at line 466 of file jsdebug.h.

Definition at line 487 of file jsdebug.h.

Definition at line 1306 of file jsdebug.h.

Definition at line 474 of file jsdebug.h.

Definition at line 579 of file jsdebug.h.

Definition at line 579 of file jsdebug.h.

JSD_ErrorReporter * reporter

Definition at line 1062 of file jsdebug.h.

Definition at line 974 of file jsdebug.h.

Definition at line 304 of file jsdebug.h.

Definition at line 655 of file jsdebug.h.

const char * text

Definition at line 655 of file jsdebug.h.

const char size_t const char* url

Definition at line 563 of file jsdebug.h.

Definition at line 128 of file jsdebug.h.

Definition at line 1015 of file jsdebug.h.