v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <frames.h>
Public Member Functions | |
virtual Type | type () const |
Object * | function () const |
Object * | receiver () const |
void | set_receiver (Object *value) |
Address | GetParameterSlot (int index) const |
Object * | GetParameter (int index) const |
int | ComputeParametersCount () 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 Code * | unchecked_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 |
Object * | context () const |
Object * | GetExpression (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 |
Local< String > | GetScriptName () const |
Local< String > | GetScriptNameOrSourceURL () const |
Local< String > | GetFunctionName () const |
bool | IsEval () const |
bool | IsConstructor () const |
Static Public Member Functions | |
static JavaScriptFrame * | cast (StackFrame *frame) |
static void | PrintTop (FILE *file, bool print_args, bool print_line_number) |
Static Public Member Functions inherited from StandardFrame | |
static Object * | GetExpression (Address fp, int index) |
static StandardFrame * | cast (StackFrame *frame) |
Protected Member Functions | |
JavaScriptFrame (StackFrameIterator *iterator) | |
virtual Address | GetCallerStackPointer () const |
virtual int | GetNumberOfIncomingArguments () const |
void | IterateArguments (ObjectVisitor *v) const |
Protected Member Functions inherited from StandardFrame | |
StandardFrame (StackFrameIterator *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 |
Friends | |
class | StackFrameIterator |
class | StackTracer |
Additional Inherited Members | |
Static Protected Member Functions inherited from StandardFrame | |
static Address | ComputePCAddress (Address fp) |
static Address | GetExpressionAddress (Address fp, int n) |
static bool | IsArgumentsAdaptorFrame (Address fp) |
static bool | IsConstructFrame (Address fp) |
|
inlineexplicitprotected |
Definition at line 198 of file frames-inl.h.
|
inlinestatic |
Definition at line 532 of file frames.h.
References ASSERT.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 499 of file frames.h.
Referenced by Accessors::FunctionGetArguments(), JavaScriptFrame::GetParameterSlot(), JavaScriptFrame::Print(), ArgumentsAdaptorFrame::Print(), JavaScriptFrame::PrintTop(), v8::internal::RUNTIME_FUNCTION(), and OptimizedFrame::Summarize().
|
inline |
Definition at line 231 of file frames-inl.h.
References ASSERT.
Referenced by Isolate::ComputeLocation(), Deoptimizer::MaterializeHeapObjects(), RuntimeProfiler::OptimizeNow(), JavaScriptFrame::Print(), ArgumentsAdaptorFrame::Print(), Isolate::PrintCurrentStackTrace(), JavaScriptFrame::PrintTop(), v8::internal::RUNTIME_FUNCTION(), OptimizedFrame::Summarize(), and ActivationsFinder::VisitThread().
int GetArgumentsLength | ( | ) | const |
Definition at line 705 of file frames.cc.
References StandardFrame::caller_fp(), Smi::cast(), StandardFrame::GetExpression(), JavaScriptFrame::GetNumberOfIncomingArguments(), JavaScriptFrame::has_adapted_arguments(), and Smi::value().
|
protectedvirtual |
Reimplemented in ArgumentsAdaptorFrame.
Definition at line 730 of file frames.cc.
References v8::internal::fp, and StandardFrameConstants::kCallerSPOffset.
|
virtual |
Reimplemented in OptimizedFrame.
Definition at line 735 of file frames.cc.
References List< T, P >::Add(), ASSERT, and JSFunction::cast().
Referenced by Accessors::FunctionGetArguments().
|
inlinevirtual |
Reimplemented in OptimizedFrame.
|
protectedvirtual |
Reimplemented in ArgumentsAdaptorFrame.
Definition at line 721 of file frames.cc.
References ASSERT, JSFunction::cast(), and Heap::NOT_IN_GC.
Referenced by JavaScriptFrame::GetArgumentsLength().
|
inline |
Definition at line 211 of file frames-inl.h.
References JavaScriptFrame::GetParameterSlot(), and Memory::Object_at().
Referenced by Accessors::FunctionGetArguments(), JavaScriptFrame::Print(), ArgumentsAdaptorFrame::Print(), JavaScriptFrame::PrintTop(), JavaScriptFrame::receiver(), v8::internal::RUNTIME_FUNCTION(), and OptimizedFrame::Summarize().
|
inline |
Definition at line 203 of file frames-inl.h.
References ASSERT, JavaScriptFrame::ComputeParametersCount(), and v8::internal::kPointerSize.
Referenced by JavaScriptFrame::GetParameter(), and JavaScriptFrame::set_receiver().
|
inline |
Definition at line 226 of file frames-inl.h.
References StandardFrame::caller_fp(), and StandardFrame::IsArgumentsAdaptorFrame().
Referenced by JavaScriptFrame::GetArgumentsLength(), JavaScriptFrame::IsConstructor(), and Deoptimizer::MaterializeHeapObjects().
bool IsConstructor | ( | ) | const |
Definition at line 695 of file frames.cc.
References Memory::Address_at(), StandardFrame::caller_fp(), JavaScriptFrame::has_adapted_arguments(), StandardFrame::IsConstructFrame(), and StandardFrameConstants::kCallerFPOffset.
Referenced by JavaScriptFrame::Print(), JavaScriptFrame::PrintTop(), JavaScriptFrame::Summarize(), and OptimizedFrame::Summarize().
|
virtual |
Reimplemented in OptimizedFrame.
Definition at line 1260 of file frames.cc.
References StandardFrame::IterateExpressions().
|
protected |
|
virtual |
Reimplemented in ArgumentsAdaptorFrame.
Definition at line 1052 of file frames.cc.
References StringStream::Add(), Context::cast(), Script::cast(), JSFunction::cast(), StandardFrame::ComputeExpressionsCount(), JavaScriptFrame::ComputeParametersCount(), StandardFrame::context(), ScopeInfo::Empty(), JavaScriptFrame::function(), FixedArray::get(), StandardFrame::GetExpression(), JavaScriptFrame::GetParameter(), v8::internal::GetScriptLineNumberSafe(), Code::instruction_end(), Code::instruction_start(), JavaScriptFrame::IsConstructor(), StandardFrame::IsExpressionInsideHandler(), Code::kind(), Context::MIN_CONTEXT_SLOTS, v8::internal::NULL, v8::internal::pc, StringStream::PrintFunction(), StringStream::PrintName(), StringStream::PrintSecurityTokenIfChanged(), JavaScriptFrame::receiver(), SharedFunctionInfo::SourceCodePrint(), and Code::SourcePosition().
|
static |
Definition at line 754 of file frames.cc.
References Code::cast(), Script::cast(), JSFunction::cast(), String::cast(), JavaScriptFrame::ComputeParametersCount(), v8::internal::DISALLOW_NULLS, JavaScriptFrame::function(), JavaScriptFrame::GetParameter(), v8::internal::GetScriptLineNumberSafe(), Code::instruction_start(), JavaScriptFrame::IsConstructor(), v8::internal::PrintF(), JSFunction::PrintName(), JavaScriptFrame::receiver(), v8::internal::ROBUST_STRING_TRAVERSAL, Object::ShortPrint(), Code::SourcePosition(), String::ToCString(), and JavaScriptFrame::unchecked_code().
Referenced by JSObject::PrintElementsTransition().
|
inline |
Definition at line 216 of file frames-inl.h.
References JavaScriptFrame::GetParameter().
Referenced by JavaScriptFrame::Print(), Isolate::PrintCurrentStackTrace(), JavaScriptFrame::PrintTop(), JavaScriptFrame::Summarize(), and OptimizedFrame::Summarize().
|
inline |
Definition at line 221 of file frames-inl.h.
References JavaScriptFrame::GetParameterSlot(), and Memory::Object_at().
|
virtual |
Reimplemented in OptimizedFrame.
Definition at line 741 of file frames.cc.
References List< T, P >::Add(), ASSERT, JSFunction::cast(), JavaScriptFrame::IsConstructor(), v8::internal::pc, and JavaScriptFrame::receiver().
Referenced by Isolate::CaptureCurrentStackTrace(), v8::internal::RUNTIME_FUNCTION(), and OptimizedFrame::Summarize().
|
inlinevirtual |
Reimplemented in ArgumentsAdaptorFrame, and OptimizedFrame.
|
virtual |
Reimplemented in ArgumentsAdaptorFrame.
Definition at line 715 of file frames.cc.
References JSFunction::cast().
Referenced by JavaScriptFrame::PrintTop().
|
friend |