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_RETIRED 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 |
| #define | JSD_HOOK_TOPLEVEL_END 1 |
| #define | JSD_HOOK_FUNCTION_CALL 2 |
| #define | JSD_HOOK_FUNCTION_RETURN 3 |
| #define | JSD_ERROR_REPORTER_PASS_ALONG 0 |
| #define | JSD_ERROR_REPORTER_RETURN 1 |
| #define | JSD_ERROR_REPORTER_DEBUG 2 |
| #define | JSD_ERROR_REPORTER_CLEAR_RETURN 3 |
| #define | JSDPD_ENUMERATE JSPD_ENUMERATE |
| #define | JSDPD_READONLY JSPD_READONLY |
| #define | JSDPD_PERMANENT JSPD_PERMANENT |
| #define | JSDPD_ALIAS JSPD_ALIAS |
| #define | JSDPD_ARGUMENT JSPD_ARGUMENT |
| #define | JSDPD_VARIABLE JSPD_VARIABLE |
| #define | JSDPD_EXCEPTION JSPD_EXCEPTION |
| #define | JSDPD_ERROR JSPD_ERROR |
| #define | JSDPD_HINTED 0x800 |
Typedefs |
| typedef struct JSDContext | JSDContext |
| typedef struct JSDScript | JSDScript |
| typedef struct JSDSourceText | JSDSourceText |
| typedef struct JSDThreadState | JSDThreadState |
| typedef struct JSDStackFrameInfo | JSDStackFrameInfo |
| typedef struct JSDValue | JSDValue |
| typedef struct JSDProperty | JSDProperty |
| typedef struct JSDObject | JSDObject |
| typedef void(* | JSD_SetContextProc )(JSDContext *jsdc, void *user) |
| typedef void(* | JSD_ScriptHookProc )(JSDContext *jsdc, JSDScript *jsdscript, JSBool creating, void *callerdata) |
| typedef uintN(* | JSD_ExecutionHookProc )(JSDContext *jsdc, JSDThreadState *jsdthreadstate, uintN type, void *callerdata, jsval *rval) |
| typedef JSBool(* | JSD_CallHookProc )(JSDContext *jsdc, JSDThreadState *jsdthreadstate, uintN type, void *callerdata) |
| typedef uintN(* | JSD_ErrorReporter )(JSDContext *jsdc, JSContext *cx, const char *message, JSErrorReport *report, void *callerdata) |
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 |
| void | JSD_SetUserCallbacks (JSRuntime *jsrt, JSD_UserCallbacks *callbacks, void *user) |
| JSDContext * | JSD_DebuggerOn (void) |
| JSDContext * | JSD_DebuggerOnForUser (JSRuntime *jsrt, JSD_UserCallbacks *callbacks, void *user) |
| JSDContext * | JSD_DebuggerOnForUserWithCompartment (JSRuntime *jsrt, JSD_UserCallbacks *callbacks, void *user, JSObject *scopeobj) |
| void | JSD_DebuggerOff (JSDContext *jsdc) |
| void | JSD_DebuggerPause (JSDContext *jsdc) |
| void | JSD_DebuggerUnpause (JSDContext *jsdc) |
| uintN | JSD_GetMajorVersion (void) |
| uintN | JSD_GetMinorVersion (void) |
| JSContext * | JSD_GetDefaultJSContext (JSDContext *jsdc) |
| void * | JSD_SetContextPrivate (JSDContext *jsdc, void *data) |
| void * | JSD_GetContextPrivate (JSDContext *jsdc) |
| void | JSD_ClearAllProfileData (JSDContext *jsdc) |
| void | JSD_SetContextFlags (JSDContext *jsdc, uint32 flags) |
| uint32 | JSD_GetContextFlags (JSDContext *jsdc) |
| void | JSD_JSContextInUse (JSDContext *jsdc, JSContext *context) |
| JSDContext * | JSD_JSDContextForJSContext (JSContext *context) |
| void | JSD_LockScriptSubsystem (JSDContext *jsdc) |
| void | JSD_UnlockScriptSubsystem (JSDContext *jsdc) |
| JSDScript * | JSD_IterateScripts (JSDContext *jsdc, JSDScript **iterp) |
| uintN | JSD_GetScriptCallCount (JSDContext *jsdc, JSDScript *script) |
| uintN | JSD_GetScriptMaxRecurseDepth (JSDContext *jsdc, JSDScript *script) |
| jsdouble | JSD_GetScriptMinExecutionTime (JSDContext *jsdc, JSDScript *script) |
| jsdouble | JSD_GetScriptMaxExecutionTime (JSDContext *jsdc, JSDScript *script) |
| jsdouble | JSD_GetScriptTotalExecutionTime (JSDContext *jsdc, JSDScript *script) |
| jsdouble | JSD_GetScriptMinOwnExecutionTime (JSDContext *jsdc, JSDScript *script) |
| jsdouble | JSD_GetScriptMaxOwnExecutionTime (JSDContext *jsdc, JSDScript *script) |
| jsdouble | JSD_GetScriptTotalOwnExecutionTime (JSDContext *jsdc, JSDScript *script) |
| void | JSD_ClearScriptProfileData (JSDContext *jsdc, JSDScript *script) |
| JSScript * | JSD_GetJSScript (JSDContext *jsdc, JSDScript *script) |
| JSFunction * | JSD_GetJSFunction (JSDContext *jsdc, JSDScript *script) |
| uint32 | JSD_GetScriptFlags (JSDContext *jsdc, JSDScript *jsdscript) |
| void | JSD_SetScriptFlags (JSDContext *jsdc, JSDScript *jsdscript, uint32 flags) |
| void * | JSD_SetScriptPrivate (JSDScript *jsdscript, void *data) |
| void * | JSD_GetScriptPrivate (JSDScript *jsdscript) |
| JSBool | JSD_IsActiveScript (JSDContext *jsdc, JSDScript *jsdscript) |
| const char * | JSD_GetScriptFilename (JSDContext *jsdc, JSDScript *jsdscript) |
| JSString * | JSD_GetScriptFunctionName (JSDContext *jsdc, JSDScript *jsdscript) |
| uintN | JSD_GetScriptBaseLineNumber (JSDContext *jsdc, JSDScript *jsdscript) |
| uintN | JSD_GetScriptLineExtent (JSDContext *jsdc, JSDScript *jsdscript) |
| JSBool | JSD_SetScriptHook (JSDContext *jsdc, JSD_ScriptHookProc hook, void *callerdata) |
| JSBool | JSD_GetScriptHook (JSDContext *jsdc, JSD_ScriptHookProc *hook, void **callerdata) |
| jsuword | JSD_GetClosestPC (JSDContext *jsdc, JSDScript *jsdscript, uintN line) |
| uintN | JSD_GetClosestLine (JSDContext *jsdc, JSDScript *jsdscript, jsuword pc) |
| void | JSD_ScriptCreated (JSDContext *jsdc, JSContext *cx, const char *filename, uintN lineno, JSScript *script, JSFunction *fun) |
| void | JSD_ScriptDestroyed (JSDContext *jsdc, JSContext *cx, JSScript *script) |
| void | JSD_LockSourceTextSubsystem (JSDContext *jsdc) |
| void | JSD_UnlockSourceTextSubsystem (JSDContext *jsdc) |
| JSDSourceText * | JSD_IterateSources (JSDContext *jsdc, JSDSourceText **iterp) |
| JSDSourceText * | JSD_FindSourceForURL (JSDContext *jsdc, const char *url) |
| const char * | JSD_GetSourceURL (JSDContext *jsdc, JSDSourceText *jsdsrc) |
| JSBool | JSD_GetSourceText (JSDContext *jsdc, JSDSourceText *jsdsrc, const char **ppBuf, intN *pLen) |
| void | JSD_ClearSourceText (JSDContext *jsdc, JSDSourceText *jsdsrc) |
| JSDSourceStatus | JSD_GetSourceStatus (JSDContext *jsdc, JSDSourceText *jsdsrc) |
| JSBool | JSD_IsSourceDirty (JSDContext *jsdc, JSDSourceText *jsdsrc) |
| void | JSD_SetSourceDirty (JSDContext *jsdc, JSDSourceText *jsdsrc, JSBool dirty) |
| uintN | JSD_GetSourceAlterCount (JSDContext *jsdc, JSDSourceText *jsdsrc) |
| uintN | JSD_IncrementSourceAlterCount (JSDContext *jsdc, JSDSourceText *jsdsrc) |
| void | JSD_DestroyAllSources (JSDContext *jsdc) |
| JSDSourceText * | JSD_NewSourceText (JSDContext *jsdc, const char *url) |
| JSDSourceText * | JSD_AppendSourceText (JSDContext *jsdc, JSDSourceText *jsdsrc, const char *text, size_t length, JSDSourceStatus status) |
| JSDSourceText * | JSD_AppendUCSourceText (JSDContext *jsdc, JSDSourceText *jsdsrc, const jschar *text, size_t length, JSDSourceStatus status) |
| JSBool | JSD_AddFullSourceText (JSDContext *jsdc, const char *text, size_t length, const char *url) |
| JSBool | JSD_SetExecutionHook (JSDContext *jsdc, JSDScript *jsdscript, jsuword pc, JSD_ExecutionHookProc hook, void *callerdata) |
| JSBool | JSD_ClearExecutionHook (JSDContext *jsdc, JSDScript *jsdscript, jsuword pc) |
| JSBool | JSD_ClearAllExecutionHooksForScript (JSDContext *jsdc, JSDScript *jsdscript) |
| JSBool | JSD_ClearAllExecutionHooks (JSDContext *jsdc) |
| JSBool | JSD_SetInterruptHook (JSDContext *jsdc, JSD_ExecutionHookProc hook, void *callerdata) |
| JSBool | JSD_EnableSingleStepInterrupts (JSDContext *jsdc, JSDScript *jsdscript, JSBool enable) |
| JSBool | JSD_ClearInterruptHook (JSDContext *jsdc) |
| JSBool | JSD_SetDebugBreakHook (JSDContext *jsdc, JSD_ExecutionHookProc hook, void *callerdata) |
| JSBool | JSD_ClearDebugBreakHook (JSDContext *jsdc) |
| JSBool | JSD_SetDebuggerHook (JSDContext *jsdc, JSD_ExecutionHookProc hook, void *callerdata) |
| JSBool | JSD_ClearDebuggerHook (JSDContext *jsdc) |
| JSBool | JSD_SetThrowHook (JSDContext *jsdc, JSD_ExecutionHookProc hook, void *callerdata) |
| JSBool | JSD_ClearThrowHook (JSDContext *jsdc) |
| JSBool | JSD_SetTopLevelHook (JSDContext *jsdc, JSD_CallHookProc hook, void *callerdata) |
| JSBool | JSD_ClearTopLevelHook (JSDContext *jsdc) |
| JSBool | JSD_SetFunctionHook (JSDContext *jsdc, JSD_CallHookProc hook, void *callerdata) |
| JSBool | JSD_ClearFunctionHook (JSDContext *jsdc) |
| uintN | JSD_GetCountOfStackFrames (JSDContext *jsdc, JSDThreadState *jsdthreadstate) |
| JSDStackFrameInfo * | JSD_GetStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate) |
| JSContext * | JSD_GetJSContext (JSDContext *jsdc, JSDThreadState *jsdthreadstate) |
| JSDStackFrameInfo * | JSD_GetCallingStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe) |
| JSDScript * | JSD_GetScriptForStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe) |
| jsuword | JSD_GetPCForStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe) |
| JSDValue * | JSD_GetCallObjectForStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe) |
| JSDValue * | JSD_GetScopeChainForStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe) |
| JSDValue * | JSD_GetThisForStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe) |
| JSString * | JSD_GetNameForStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe) |
| JSBool | JSD_IsStackFrameDebugger (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe) |
| JSBool | JSD_IsStackFrameConstructing (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe) |
| JSBool | JSD_EvaluateUCScriptInStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe, const jschar *bytes, uintN length, const char *filename, uintN lineno, jsval *rval) |
| JSBool | JSD_AttemptUCScriptInStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe, const jschar *bytes, uintN length, const char *filename, uintN lineno, jsval *rval) |
| JSBool | JSD_EvaluateScriptInStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe, const char *bytes, uintN length, const char *filename, uintN lineno, jsval *rval) |
| JSBool | JSD_AttemptScriptInStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe, const char *bytes, uintN length, const char *filename, uintN lineno, jsval *rval) |
| JSString * | JSD_ValToStringInStackFrame (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDStackFrameInfo *jsdframe, jsval val) |
| JSDValue * | JSD_GetException (JSDContext *jsdc, JSDThreadState *jsdthreadstate) |
| JSBool | JSD_SetException (JSDContext *jsdc, JSDThreadState *jsdthreadstate, JSDValue *jsdval) |
| JSBool | JSD_SetErrorReporter (JSDContext *jsdc, JSD_ErrorReporter reporter, void *callerdata) |
| JSBool | JSD_GetErrorReporter (JSDContext *jsdc, JSD_ErrorReporter *reporter, void **callerdata) |
| JSBool | JSD_IsLockingAndThreadIdSupported () |
| void * | JSD_CreateLock () |
| void | JSD_Lock (void *lock) |
| void | JSD_Unlock (void *lock) |
| JSBool | JSD_IsLocked (void *lock) |
| JSBool | JSD_IsUnlocked (void *lock) |
| void * | JSD_CurrentThread () |
| JSDValue * | JSD_NewValue (JSDContext *jsdc, jsval val) |
| void | JSD_DropValue (JSDContext *jsdc, JSDValue *jsdval) |
| jsval | JSD_GetValueWrappedJSVal (JSDContext *jsdc, JSDValue *jsdval) |
| void | JSD_RefreshValue (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_IsValueObject (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_IsValueNumber (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_IsValueInt (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_IsValueDouble (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_IsValueString (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_IsValueBoolean (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_IsValueNull (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_IsValueVoid (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_IsValuePrimitive (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_IsValueFunction (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_IsValueNative (JSDContext *jsdc, JSDValue *jsdval) |
| JSBool | JSD_GetValueBoolean (JSDContext *jsdc, JSDValue *jsdval) |
| int32 | JSD_GetValueInt (JSDContext *jsdc, JSDValue *jsdval) |
| jsdouble | JSD_GetValueDouble (JSDContext *jsdc, JSDValue *jsdval) |
| JSString * | JSD_GetValueString (JSDContext *jsdc, JSDValue *jsdval) |
| JSString * | JSD_GetValueFunctionName (JSDContext *jsdc, JSDValue *jsdval) |
| JSFunction * | JSD_GetValueFunction (JSDContext *jsdc, JSDValue *jsdval) |
| uintN | JSD_GetCountOfProperties (JSDContext *jsdc, JSDValue *jsdval) |
| JSDProperty * | JSD_IterateProperties (JSDContext *jsdc, JSDValue *jsdval, JSDProperty **iterp) |
| JSDProperty * | JSD_GetValueProperty (JSDContext *jsdc, JSDValue *jsdval, JSString *name) |
| JSDValue * | JSD_GetValuePrototype (JSDContext *jsdc, JSDValue *jsdval) |
| JSDValue * | JSD_GetValueParent (JSDContext *jsdc, JSDValue *jsdval) |
| JSDValue * | JSD_GetValueConstructor (JSDContext *jsdc, JSDValue *jsdval) |
| const char * | JSD_GetValueClassName (JSDContext *jsdc, JSDValue *jsdval) |
| JSDScript * | JSD_GetScriptForValue (JSDContext *jsdc, JSDValue *jsdval) |
| void | JSD_DropProperty (JSDContext *jsdc, JSDProperty *jsdprop) |
| JSDValue * | JSD_GetPropertyName (JSDContext *jsdc, JSDProperty *jsdprop) |
| JSDValue * | JSD_GetPropertyValue (JSDContext *jsdc, JSDProperty *jsdprop) |
| JSDValue * | JSD_GetPropertyAlias (JSDContext *jsdc, JSDProperty *jsdprop) |
| uintN | JSD_GetPropertyFlags (JSDContext *jsdc, JSDProperty *jsdprop) |
| uintN | JSD_GetPropertyVarArgSlot (JSDContext *jsdc, JSDProperty *jsdprop) |
| void | JSD_LockObjectSubsystem (JSDContext *jsdc) |
| void | JSD_UnlockObjectSubsystem (JSDContext *jsdc) |
| JSDObject * | JSD_IterateObjects (JSDContext *jsdc, JSDObject **iterp) |
| JSObject * | JSD_GetWrappedObject (JSDContext *jsdc, JSDObject *jsdobj) |
| const char * | JSD_GetObjectNewURL (JSDContext *jsdc, JSDObject *jsdobj) |
| uintN | JSD_GetObjectNewLineNumber (JSDContext *jsdc, JSDObject *jsdobj) |
| const char * | JSD_GetObjectConstructorURL (JSDContext *jsdc, JSDObject *jsdobj) |
| uintN | JSD_GetObjectConstructorLineNumber (JSDContext *jsdc, JSDObject *jsdobj) |
| const char * | JSD_GetObjectConstructorName (JSDContext *jsdc, JSDObject *jsdobj) |
| JSDObject * | JSD_GetJSDObjectForJSObject (JSDContext *jsdc, JSObject *jsobj) |
| JSDObject * | JSD_GetObjectForValue (JSDContext *jsdc, JSDValue *jsdval) |
| JSDValue * | JSD_GetValueForObject (JSDContext *jsdc, JSDObject *jsdobj) |