V8 Project
|
#include <frames.h>
Public Member Functions | |
virtual Type | type () const |
virtual void | Iterate (ObjectVisitor *v) const |
virtual int | GetInlineCount () |
virtual void | GetFunctions (List< JSFunction * > *functions) |
virtual void | Summarize (List< FrameSummary > *frames) |
DeoptimizationInputData * | GetDeoptimizationData (int *deopt_index) |
![]() | |
JSFunction * | function () const |
Object * | receiver () const |
void | set_receiver (Object *value) |
Address | GetParameterSlot (int index) const |
Object * | GetParameter (int index) const |
int | ComputeParametersCount () const |
Address | GetOperandSlot (int index) const |
Object * | GetOperand (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 | Print (StringStream *accumulator, PrintMode mode, int index) const |
virtual Code * | unchecked_code () const |
![]() | |
virtual bool | is_standard () const |
Object * | context () const |
Object * | GetExpression (int index) const |
void | SetExpression (int index, Object *value) |
int | ComputeExpressionsCount () const |
virtual void | SetCallerFp (Address caller_fp) |
![]() | |
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... | |
Protected Member Functions | |
OptimizedFrame (StackFrameIteratorBase *iterator) | |
![]() | |
JavaScriptFrame (StackFrameIteratorBase *iterator) | |
virtual Address | GetCallerStackPointer () const |
virtual int | GetNumberOfIncomingArguments () const |
void | IterateArguments (ObjectVisitor *v) const |
![]() | |
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 |
Private Member Functions | |
JSFunction * | LiteralAt (FixedArray *literal_array, int literal_id) |
Friends | |
class | StackFrameIteratorBase |
Additional Inherited Members | |
![]() | |
static Register | fp_register () |
static Register | context_register () |
static Register | constant_pool_pointer_register () |
static JavaScriptFrame * | cast (StackFrame *frame) |
static void | PrintFunctionAndOffset (JSFunction *function, Code *code, Address pc, FILE *file, bool print_line_number) |
static void | PrintTop (Isolate *isolate, FILE *file, bool print_args, bool print_line_number) |
![]() | |
static Object * | GetExpression (Address fp, int index) |
static StandardFrame * | cast (StackFrame *frame) |
![]() | |
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) |
|
inlineexplicitprotected |
Definition at line 275 of file frames-inl.h.
DeoptimizationInputData * v8::internal::OptimizedFrame::GetDeoptimizationData | ( | int * | deopt_index | ) |
Definition at line 1034 of file frames.cc.
References v8::internal::JSFunction::code(), v8::internal::Code::contains(), DCHECK, v8::internal::Code::GetSafepointEntry(), v8::internal::Isolate::inner_pointer_to_code_cache(), v8::internal::Code::kind(), NULL, and v8::internal::pc.
Referenced by GetFunctions(), GetInlineCount(), and Summarize().
|
virtual |
Reimplemented from v8::internal::JavaScriptFrame.
Definition at line 1082 of file frames.cc.
References v8::internal::List< T, AllocationPolicy >::Add(), DCHECK, GetDeoptimizationData(), v8::internal::JavaScriptFrame::GetFunctions(), v8::internal::compiler::JS_FRAME, and LiteralAt().
|
virtual |
Reimplemented from v8::internal::JavaScriptFrame.
Definition at line 1059 of file frames.cc.
References DCHECK, GetDeoptimizationData(), v8::internal::JavaScriptFrame::GetInlineCount(), and USE().
|
virtual |
Reimplemented from v8::internal::JavaScriptFrame.
Definition at line 708 of file frames.cc.
References DCHECK, and v8::internal::StandardFrame::IterateCompiledFrame().
|
private |
Definition at line 921 of file frames.cc.
References v8::internal::FixedArray::get().
Referenced by GetFunctions(), and Summarize().
|
virtual |
Reimplemented from v8::internal::JavaScriptFrame.
Definition at line 931 of file frames.cc.
References v8::internal::List< T, AllocationPolicy >::Add(), v8::internal::JavaScriptFrame::ComputeParametersCount(), DCHECK, v8::internal::BitFieldBase< T, shift, size, U >::decode(), v8::internal::JavaScriptFrame::function(), v8::internal::FixedArray::get(), GetDeoptimizationData(), v8::internal::StandardFrame::GetExpression(), v8::internal::Deoptimizer::GetOutputInfo(), v8::internal::JavaScriptFrame::GetParameter(), v8::internal::Isolate::heap(), v8::internal::JavaScriptFrame::IsConstructor(), v8::internal::compiler::JS_FRAME, v8::internal::Code::kHeaderSize, LiteralAt(), NULL, v8::internal::JavaScriptFrame::receiver(), and v8::internal::JavaScriptFrame::Summarize().
|
inlinevirtual |
Reimplemented from v8::internal::JavaScriptFrame.
|
friend |