v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::StackFrame Class Reference

#include <v8-debug.h>

Collaboration diagram for v8::StackFrame:

Public Member Functions

Location GetLocation () const
 
int GetLineNumber () const
 
int GetColumn () const
 
int GetSourcePosition () const
 
int GetScriptId () const
 
Local< StringGetScriptName () const
 
Local< StringGetScriptNameOrSourceURL () const
 
Local< StringGetScriptSource () const
 
Local< StringGetScriptSourceMappingURL () const
 
Local< StringGetFunctionName () const
 
bool IsEval () const
 
bool IsConstructor () const
 
bool IsWasm () const
 
bool IsUserJavaScript () const
 

Detailed Description

A single JavaScript stack frame.

Definition at line 21 of file v8-debug.h.

Member Function Documentation

◆ GetColumn()

int v8::StackFrame::GetColumn ( ) const
inline

Returns the 1-based column offset on the line for the associated function call. This method will return Message::kNoColumnInfo if it is unable to retrieve the column number, or if kColumnOffset was not passed as an option when capturing the StackTrace.

Definition at line 43 of file v8-debug.h.

Here is the call graph for this function:

◆ GetFunctionName()

Local< String > v8::StackFrame::GetFunctionName ( ) const

Returns the name of the function associated with this stack frame.

Definition at line 3146 of file api.cc.

Here is the call graph for this function:

◆ GetLineNumber()

int v8::StackFrame::GetLineNumber ( ) const
inline

Returns the number, 1-based, of the line for the associate function call. This method will return Message::kNoLineNumberInfo if it is unable to retrieve the line number, or if kLineNumber was not passed as an option when capturing the StackTrace.

Definition at line 34 of file v8-debug.h.

Here is the call graph for this function:

◆ GetLocation()

Location v8::StackFrame::GetLocation ( ) const

Returns the source location, 0-based, for the associated function call.

Definition at line 3084 of file api.cc.

Here is the call graph for this function:

◆ GetScriptId()

int v8::StackFrame::GetScriptId ( ) const

Returns the id of the script for the function for this StackFrame. This method will return Message::kNoScriptIdInfo if it is unable to retrieve the script id, or if kScriptId was not passed as an option when capturing the StackTrace.

Definition at line 3106 of file api.cc.

Here is the call graph for this function:

◆ GetScriptName()

Local< String > v8::StackFrame::GetScriptName ( ) const

Returns the name of the resource that contains the script for the function for this StackFrame.

Definition at line 3110 of file api.cc.

Here is the call graph for this function:

◆ GetScriptNameOrSourceURL()

Local< String > v8::StackFrame::GetScriptNameOrSourceURL ( ) const

Returns the name of the resource that contains the script for the function for this StackFrame or sourceURL value if the script name is undefined and its source ends with //# sourceURL=... string or deprecated //@ sourceURL=... string.

Definition at line 3118 of file api.cc.

Here is the call graph for this function:

◆ GetScriptSource()

Local< String > v8::StackFrame::GetScriptSource ( ) const

Returns the source of the script for the function for this StackFrame.

Definition at line 3127 of file api.cc.

Here is the call graph for this function:

◆ GetScriptSourceMappingURL()

Local< String > v8::StackFrame::GetScriptSourceMappingURL ( ) const

Returns the source mapping URL (if one is present) of the script for the function for this StackFrame.

Definition at line 3137 of file api.cc.

Here is the call graph for this function:

◆ GetSourcePosition()

int v8::StackFrame::GetSourcePosition ( ) const

Returns zero based source position (character offset) for the associated function.

Definition at line 3100 of file api.cc.

Here is the call graph for this function:

◆ IsConstructor()

bool v8::StackFrame::IsConstructor ( ) const

Returns whether or not the associated function is called as a constructor via "new".

Definition at line 3160 of file api.cc.

Here is the call graph for this function:

◆ IsEval()

bool v8::StackFrame::IsEval ( ) const

Returns whether or not the associated function is compiled via a call to eval().

Definition at line 3154 of file api.cc.

Here is the call graph for this function:

◆ IsUserJavaScript()

bool v8::StackFrame::IsUserJavaScript ( ) const

Returns whether or not the associated function is defined by the user.

Definition at line 3166 of file api.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsWasm()

bool v8::StackFrame::IsWasm ( ) const

Returns whether or not the associated functions is defined in wasm.

Definition at line 3164 of file api.cc.

Here is the call graph for this function:

The documentation for this class was generated from the following files: