V8 Project
|
A single JavaScript stack frame. More...
#include <v8.h>
Public Member Functions | |
int | GetLineNumber () const |
Returns the number, 1-based, of the line for the associate function call. More... | |
int | GetColumn () const |
Returns the 1-based column offset on the line for the associated function call. More... | |
int | GetScriptId () const |
Returns the id of the script for the function for this StackFrame. More... | |
Local< String > | GetScriptName () const |
Returns the name of the resource that contains the script for the function for this StackFrame. More... | |
Local< String > | 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=... More... | |
Local< String > | GetFunctionName () const |
Returns the name of the function associated with this stack frame. More... | |
bool | IsEval () const |
Returns whether or not the associated function is compiled via a call to eval(). More... | |
bool | IsConstructor () const |
Returns whether or not the associated function is called as a constructor via "new". More... | |
int v8::StackFrame::GetColumn | ( | ) | const |
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 2306 of file api.cc.
References v8::getIntProperty(), and v8::Message::kNoColumnInfo.
Returns the name of the function associated with this stack frame.
Definition at line 2340 of file api.cc.
References v8::getStringProperty().
int v8::StackFrame::GetLineNumber | ( | ) | const |
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 2301 of file api.cc.
References v8::getIntProperty(), and v8::Message::kNoLineNumberInfo.
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 2311 of file api.cc.
References v8::getIntProperty(), and v8::Message::kNoScriptIdInfo.
Returns the name of the resource that contains the script for the function for this StackFrame.
Definition at line 2330 of file api.cc.
References v8::getStringProperty().
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 2335 of file api.cc.
References v8::getStringProperty().
bool v8::StackFrame::IsConstructor | ( | ) | const |
Returns whether or not the associated function is called as a constructor via "new".
Definition at line 2358 of file api.cc.
References v8::getBoolProperty().
bool v8::StackFrame::IsEval | ( | ) | const |
Returns whether or not the associated function is compiled via a call to eval().
Definition at line 2355 of file api.cc.
References v8::getBoolProperty().