v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StackFrame Class Reference

#include <v8.h>

Inheritance diagram for StackFrame:

Public Member Functions

int GetLineNumber () const
 
int GetColumn () const
 
Local< StringGetScriptName () const
 
Local< StringGetScriptNameOrSourceURL () const
 
Local< StringGetFunctionName () const
 
bool IsEval () const
 
bool IsConstructor () const
 

Detailed Description

A single JavaScript stack frame.

Definition at line 812 of file v8.h.

Member Function Documentation

int 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 2037 of file api.cc.

References Smi::cast(), ENTER_V8, v8::internal::GetProperty(), Message::kNoColumnInfo, and Smi::value().

Referenced by checkStackFrame().

Local< String > GetFunctionName ( ) const

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

Definition at line 2085 of file api.cc.

References HandleScope::Close(), ENTER_V8, v8::internal::GetProperty(), and Utils::ToLocal().

Referenced by checkStackFrame().

int 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 2021 of file api.cc.

References Smi::cast(), ENTER_V8, v8::internal::GetProperty(), Message::kNoLineNumberInfo, and Smi::value().

Referenced by checkStackFrame().

Local< String > GetScriptName ( ) const

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

Definition at line 2053 of file api.cc.

References HandleScope::Close(), ENTER_V8, v8::internal::GetProperty(), and Utils::ToLocal().

Referenced by checkStackFrame().

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=... string.

Definition at line 2069 of file api.cc.

References HandleScope::Close(), ENTER_V8, v8::internal::GetProperty(), and Utils::ToLocal().

bool IsConstructor ( ) const

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

Definition at line 2112 of file api.cc.

References ENTER_V8, and v8::internal::GetProperty().

Referenced by checkStackFrame().

bool IsEval ( ) const

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

Definition at line 2101 of file api.cc.

References ENTER_V8, and v8::internal::GetProperty().

Referenced by checkStackFrame().


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