[scriptable, uuid(b1b7f95d-85f9-431e-afb0-936f91c27244)]
Constants
FLAG_* values need to be kept in sync with JSD_SCRIPT_* #defines in jsdebug.h. Determines whether or not to collect profile information for this script. The context flag FLAG_PROFILE_WHEN_SET decides the logic.
Determines whether or not to ignore breakpoints, etc. in this script. The context flag JSD_DEBUG_WHEN_SET decides the logic.
Attributes
Script object. In JavaScript engine terms, there's a single script for each function, and one for the top level script. Internal use only. */
Line number in source file containing the first line of this script. This data is copied from the underlying structure when the jsdIScript instance is created and is therefore available even after the script is invalidated.
Filename given for this script when it was compiled. This data is copied from the underlying structure when the jsdIScript instance is created and is therefore available even after the script is invalidated.
Function name for this script. "anonymous" for unnamed functions (or a function actually named anonymous), empty for top level scripts. This data is copied from the underlying structure when the jsdIScript instance is created and is therefore available even after the script is invalidated.
Fetch the function object as a jsdIValue.
Source code for this script, without function declaration.
Total number of lines in this script. This data is copied from the underlying structure when the jsdIScript instance is created and is therefore available even after the script is invalidated.
Longest execution time recorded, in milliseconds, excluding time spent in other called code.
Number of times this script called itself, directly or indirectly.
Shortest execution time recorded, in milliseconds, excluding time spent in other called code.
Tag value guaranteed unique among jsdIScript objects. Useful as a hash key in script.
Total time spent in this function, in milliseconds, excluding time spent in other called code.
Methods
Determine is a particular line is executable, like checking that lineToPc == pcToLine, except in one call. The |pcmap| argument specifies which pc to source line map to use.
Get the first PC associated with a line. The |pcmap| argument specifies which pc to source line map to use.
Get the closest line number to a given PC. The |pcmap| argument specifies which pc to source line map to use.
Compare to:
