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

#include <frames.h>

Inheritance diagram for JavaScriptFrame:
Collaboration diagram for JavaScriptFrame:

Public Member Functions

virtual Type type () const
 
JSFunctionfunction () const
 
Objectreceiver () const
 
void set_receiver (Object *value)
 
Address GetParameterSlot (int index) const
 
ObjectGetParameter (int index) const
 
int ComputeParametersCount () const
 
Address GetOperandSlot (int index) const
 
ObjectGetOperand (int index) const
 
int ComputeOperandsCount () const
 
void SaveOperandStack (FixedArray *store, int *stack_handler_index) const
 
void RestoreOperandStack (FixedArray *store, int stack_handler_index)
 
void SetParameterValue (int index, Object *value) const
 
bool IsConstructor () const
 
bool has_adapted_arguments () const
 
int GetArgumentsLength () const
 
virtual void Iterate (ObjectVisitor *v) const
 
virtual void Print (StringStream *accumulator, PrintMode mode, int index) const
 
virtual Codeunchecked_code () const
 
virtual int GetInlineCount ()
 
virtual void GetFunctions (List< JSFunction * > *functions)
 
virtual void Summarize (List< FrameSummary > *frames)
 
- Public Member Functions inherited from StandardFrame
virtual bool is_standard () const
 
Objectcontext () const
 
ObjectGetExpression (int index) const
 
void SetExpression (int index, Object *value)
 
int ComputeExpressionsCount () const
 
virtual void SetCallerFp (Address caller_fp)
 
- Public Member Functions inherited from StackFrame
int GetLineNumber () const
 
int GetColumn () const
 
int GetScriptId () const
 
Local< StringGetScriptName () const
 
Local< StringGetScriptNameOrSourceURL () const
 
Local< StringGetFunctionName () const
 
bool IsEval () const
 
bool IsConstructor () const
 

Static Public Member Functions

static Register fp_register ()
 
static Register context_register ()
 
static Register constant_pool_pointer_register ()
 
static JavaScriptFramecast (StackFrame *frame)
 
static void PrintTop (Isolate *isolate, FILE *file, bool print_args, bool print_line_number)
 
- Static Public Member Functions inherited from StandardFrame
static ObjectGetExpression (Address fp, int index)
 
static StandardFramecast (StackFrame *frame)
 

Protected Member Functions

 JavaScriptFrame (StackFrameIteratorBase *iterator)
 
virtual Address GetCallerStackPointer () const
 
virtual int GetNumberOfIncomingArguments () const
 
void IterateArguments (ObjectVisitor *v) const
 
- Protected Member Functions inherited from StandardFrame
 StandardFrame (StackFrameIteratorBase *iterator)
 
virtual void ComputeCallerState (State *state) const
 
Address caller_fp () const
 
Address caller_pc () const
 
void IterateExpressions (ObjectVisitor *v) const
 
Address GetExpressionAddress (int n) const
 
bool IsExpressionInsideHandler (int n) const
 
void IterateCompiledFrame (ObjectVisitor *v) const
 

Friends

class StackFrameIteratorBase
 

Additional Inherited Members

- Static Protected Member Functions inherited from StandardFrame
static Address ComputePCAddress (Address fp)
 
static Address ComputeConstantPoolAddress (Address fp)
 
static Address GetExpressionAddress (Address fp, int n)
 
static bool IsArgumentsAdaptorFrame (Address fp)
 
static bool IsConstructFrame (Address fp)
 

Detailed Description

Definition at line 573 of file frames.h.

Constructor & Destructor Documentation

JavaScriptFrame ( StackFrameIteratorBase iterator)
inlineexplicitprotected

Definition at line 223 of file frames-inl.h.

Member Function Documentation

static JavaScriptFrame* cast ( StackFrame frame)
inlinestatic

Definition at line 635 of file frames.h.

References ASSERT.

Referenced by Isolate::CaptureSimpleStackTrace().

static Register constant_pool_pointer_register ( )
static
static Register context_register ( )
static
static Register fp_register ( )
static
Address GetCallerStackPointer ( ) const
protectedvirtual

Reimplemented in ArgumentsAdaptorFrame.

Definition at line 780 of file frames.cc.

References v8::internal::fp, and StandardFrameConstants::kCallerSPOffset.

void GetFunctions ( List< JSFunction * > *  functions)
virtual

Reimplemented in OptimizedFrame.

Definition at line 785 of file frames.cc.

References List< T, P >::Add(), and ASSERT.

virtual int GetInlineCount ( )
inlinevirtual

Reimplemented in OptimizedFrame.

Definition at line 622 of file frames.h.

int GetNumberOfIncomingArguments ( ) const
protectedvirtual

Reimplemented in ArgumentsAdaptorFrame.

Definition at line 772 of file frames.cc.

References ASSERT, and Heap::NOT_IN_GC.

Referenced by JavaScriptFrame::GetArgumentsLength().

Object * GetOperand ( int  index) const
inline
void Iterate ( ObjectVisitor *  v) const
virtual

Reimplemented in OptimizedFrame.

Definition at line 1375 of file frames.cc.

References StandardFrame::IterateExpressions().

void IterateArguments ( ObjectVisitor *  v) const
protected
void set_receiver ( Object value)
inline

Definition at line 274 of file frames-inl.h.

References JavaScriptFrame::GetParameterSlot(), and Memory::Object_at().

void SetParameterValue ( int  index,
Object value 
) const

Definition at line 742 of file frames.cc.

References JavaScriptFrame::GetParameterSlot(), and Memory::Object_at().

void Summarize ( List< FrameSummary > *  frames)
virtual
virtual Type type ( ) const
inlinevirtual
Code * unchecked_code ( ) const
virtual

Reimplemented in ArgumentsAdaptorFrame.

Definition at line 767 of file frames.cc.

References v8::internal::code().

Referenced by JavaScriptFrame::PrintTop().

Friends And Related Function Documentation

friend class StackFrameIteratorBase
friend

Definition at line 659 of file frames.h.


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