V8 Project
|
#include <frames.h>
Public Member Functions | |
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... | |
Static Public Member Functions | |
static Object * | GetExpression (Address fp, int index) |
static StandardFrame * | cast (StackFrame *frame) |
Protected Member Functions | |
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 |
Static Protected Member Functions | |
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) |
Friends | |
class | StackFrame |
class | SafeStackFrameIterator |
|
inlineexplicitprotected |
Definition at line 149 of file frames-inl.h.
|
inlineprotected |
Definition at line 170 of file frames-inl.h.
References v8::internal::Memory::Address_at(), v8::internal::fp, and v8::internal::StandardFrameConstants::kCallerFPOffset.
Referenced by ComputeCallerState(), v8::internal::JavaScriptFrame::GetArgumentsLength(), v8::internal::JavaScriptFrame::has_adapted_arguments(), v8::internal::JavaScriptFrame::IsConstructor(), and SetCallerFp().
|
inlineprotected |
Definition at line 175 of file frames-inl.h.
References v8::internal::Memory::Address_at(), ComputePCAddress(), and v8::internal::fp.
|
inlinestatic |
Definition at line 469 of file frames.h.
References DCHECK.
|
protectedvirtual |
Definition at line 591 of file frames.cc.
References caller_fp(), ComputeConstantPoolAddress(), ComputePCAddress(), and v8::internal::fp.
Definition at line 185 of file frames-inl.h.
References v8::internal::fp, and v8::internal::StandardFrameConstants::kConstantPoolOffset.
Referenced by ComputeCallerState().
int v8::internal::StandardFrame::ComputeExpressionsCount | ( | ) | const |
Definition at line 580 of file frames.cc.
References DCHECK, v8::internal::fp, v8::internal::StandardFrameConstants::kExpressionsOffset, v8::internal::kPointerSize, and v8::internal::sp.
Referenced by v8::internal::Debug::PrepareStep(), and v8::internal::JavaScriptFrame::Print().
Definition at line 180 of file frames-inl.h.
References v8::internal::fp, and v8::internal::StandardFrameConstants::kCallerPCOffset.
Referenced by caller_pc(), ComputeCallerState(), and v8::internal::SafeStackFrameIterator::SafeStackFrameIterator().
|
inline |
Definition at line 164 of file frames-inl.h.
References v8::internal::fp, v8::internal::StandardFrameConstants::kContextOffset, and v8::internal::Memory::Object_at().
Referenced by v8::internal::Isolate::GetCallingNativeContext(), v8::internal::FrameInspector::GetContext(), v8::internal::MaterializeLocalContext(), v8::internal::JavaScriptFrame::Print(), v8::internal::RUNTIME_FUNCTION(), and v8::internal::SetLocalVariableValue().
Definition at line 569 of file frames.cc.
References v8::internal::fp, GetExpressionAddress(), and v8::internal::Memory::Object_at().
Definition at line 154 of file frames-inl.h.
References GetExpressionAddress(), and v8::internal::Memory::Object_at().
Referenced by v8::internal::JavaScriptFrame::GetArgumentsLength(), v8::internal::FrameInspector::GetExpression(), v8::internal::GetFunctionArguments(), v8::internal::ArgumentsAdaptorFrame::GetNumberOfIncomingArguments(), v8::internal::AstTyper::ObserveTypesAtOsrEntry(), v8::internal::Debug::PrepareStep(), v8::internal::JavaScriptFrame::Print(), v8::internal::OptimizedFrame::Summarize(), and v8::internal::UpdateStackLocalsFromMaterializedObject().
Definition at line 574 of file frames.cc.
References v8::internal::fp, v8::internal::StandardFrameConstants::kExpressionsOffset, and v8::internal::kPointerSize.
Definition at line 563 of file frames.cc.
References v8::internal::fp, v8::internal::StandardFrameConstants::kExpressionsOffset, and v8::internal::kPointerSize.
Referenced by GetExpression(), IsExpressionInsideHandler(), and SetExpression().
|
inlinevirtual |
Definition at line 190 of file frames-inl.h.
References v8::internal::compiler::ARGUMENTS_ADAPTOR, v8::internal::fp, v8::internal::Smi::FromInt(), v8::internal::StandardFrameConstants::kContextOffset, and v8::internal::Memory::Object_at().
Referenced by v8::internal::JavaScriptFrame::has_adapted_arguments().
Definition at line 197 of file frames-inl.h.
References v8::internal::fp, v8::internal::Smi::FromInt(), v8::internal::StandardFrameConstants::kMarkerOffset, and v8::internal::Memory::Object_at().
Referenced by v8::internal::JavaScriptFrame::IsConstructor().
Definition at line 607 of file frames.cc.
References GetExpressionAddress().
Referenced by v8::internal::JavaScriptFrame::Print().
|
protected |
Definition at line 616 of file frames.cc.
References DCHECK, v8::internal::fp, v8::internal::kBitsPerByte, v8::internal::kBitsPerByteLog2, v8::internal::kDoubleSize, v8::internal::JavaScriptFrameConstants::kFunctionOffset, v8::internal::StandardFrameConstants::kMarkerOffset, v8::internal::kNumSafepointRegisters, v8::internal::kPointerSize, v8::internal::DwVfpRegister::NumAllocatableRegisters(), v8::internal::Memory::Object_at(), v8::internal::pc, v8::internal::MacroAssembler::SafepointRegisterStackIndex(), and v8::internal::sp.
Referenced by v8::internal::StubFrame::Iterate(), and v8::internal::OptimizedFrame::Iterate().
|
protected |
Definition at line 1349 of file frames.cc.
References v8::internal::fp, v8::internal::StandardFrameConstants::kLastObjectOffset, v8::internal::StackHandlerConstants::kSize, v8::internal::Memory::Object_at(), and v8::internal::sp.
Referenced by v8::internal::JavaScriptFrame::Iterate(), and v8::internal::InternalFrame::Iterate().
|
virtual |
Definition at line 601 of file frames.cc.
References v8::internal::Memory::Address_at(), caller_fp(), v8::internal::fp, and v8::internal::StandardFrameConstants::kCallerFPOffset.
Definition at line 159 of file frames-inl.h.
References GetExpressionAddress(), and v8::internal::Memory::Object_at().
Referenced by v8::internal::SetLocalVariableValue(), and v8::internal::UpdateStackLocalsFromMaterializedObject().
|
friend |
|
friend |