V8 Project
v8::internal::FrameInspector Class Reference
+ Collaboration diagram for v8::internal::FrameInspector:

Public Member Functions

 FrameInspector (JavaScriptFrame *frame, int inlined_jsframe_index, Isolate *isolate)
 
 ~FrameInspector ()
 
int GetParametersCount ()
 
int expression_count ()
 
ObjectGetFunction ()
 
ObjectGetParameter (int index)
 
ObjectGetExpression (int index)
 
int GetSourcePosition ()
 
bool IsConstructor ()
 
ObjectGetContext ()
 
void SetArgumentsFrame (JavaScriptFrame *frame)
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (FrameInspector)
 

Private Attributes

JavaScriptFrameframe_
 
DeoptimizedFrameInfodeoptimized_frame_
 
Isolateisolate_
 
bool is_optimized_
 
bool is_bottommost_
 
bool has_adapted_arguments_
 

Detailed Description

Definition at line 5705 of file runtime.cc.

Constructor & Destructor Documentation

◆ FrameInspector()

v8::internal::FrameInspector::FrameInspector ( JavaScriptFrame frame,
int  inlined_jsframe_index,
Isolate isolate 
)
inline

Definition at line 5707 of file runtime.cc.

5709  : frame_(frame), deoptimized_frame_(NULL), isolate_(isolate) {
5710  // Calculate the deoptimized frame.
5711  if (frame->is_optimized()) {
5713  frame, inlined_jsframe_index, isolate);
5714  }
5716  is_bottommost_ = inlined_jsframe_index == 0;
5717  is_optimized_ = frame_->is_optimized();
5718  }
static DeoptimizedFrameInfo * DebuggerInspectableFrame(JavaScriptFrame *frame, int jsframe_index, Isolate *isolate)
Definition: deoptimizer.cc:136
JavaScriptFrame * frame_
Definition: runtime.cc:5767
DeoptimizedFrameInfo * deoptimized_frame_
Definition: runtime.cc:5768
bool has_adapted_arguments() const
Definition: frames-inl.h:260
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL

References v8::internal::Deoptimizer::DebuggerInspectableFrame(), deoptimized_frame_, frame_, v8::internal::JavaScriptFrame::has_adapted_arguments(), has_adapted_arguments_, is_bottommost_, and is_optimized_.

+ Here is the call graph for this function:

◆ ~FrameInspector()

v8::internal::FrameInspector::~FrameInspector ( )
inline

Definition at line 5720 of file runtime.cc.

5720  {
5721  // Get rid of the calculated deoptimized frame if any.
5722  if (deoptimized_frame_ != NULL) {
5724  }
5725  }
static void DeleteDebuggerInspectableFrame(DeoptimizedFrameInfo *info, Isolate *isolate)
Definition: deoptimizer.cc:224

References v8::internal::Deoptimizer::DeleteDebuggerInspectableFrame(), deoptimized_frame_, isolate_, and NULL.

+ Here is the call graph for this function:

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

v8::internal::FrameInspector::DISALLOW_COPY_AND_ASSIGN ( FrameInspector  )
private

◆ expression_count()

int v8::internal::FrameInspector::expression_count ( )
inline

Definition at line 5731 of file runtime.cc.

References deoptimized_frame_, and v8::internal::DeoptimizedFrameInfo::expression_count().

+ Here is the call graph for this function:

◆ GetContext()

Object* v8::internal::FrameInspector::GetContext ( )
inline

Definition at line 5753 of file runtime.cc.

5753  {
5755  }
Object * context() const
Definition: frames-inl.h:164

References v8::internal::StandardFrame::context(), deoptimized_frame_, frame_, v8::internal::DeoptimizedFrameInfo::GetContext(), and is_optimized_.

Referenced by v8::internal::RUNTIME_FUNCTION().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetExpression()

Object* v8::internal::FrameInspector::GetExpression ( int  index)
inline

Definition at line 5740 of file runtime.cc.

5740  {
5742  : frame_->GetExpression(index);
5743  }
Object * GetExpression(int index)
Definition: deoptimizer.h:954
Object * GetExpression(int index) const
Definition: frames-inl.h:154

References deoptimized_frame_, frame_, v8::internal::DeoptimizedFrameInfo::GetExpression(), v8::internal::StandardFrame::GetExpression(), and is_optimized_.

Referenced by v8::internal::MaterializeStackLocalsWithFrameInspector(), and v8::internal::RUNTIME_FUNCTION().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFunction()

Object* v8::internal::FrameInspector::GetFunction ( )
inline

Definition at line 5732 of file runtime.cc.

5732  {
5734  : frame_->function();
5735  }
JSFunction * function() const
Definition: frames-inl.h:265

References deoptimized_frame_, frame_, v8::internal::JavaScriptFrame::function(), v8::internal::DeoptimizedFrameInfo::GetFunction(), and is_optimized_.

Referenced by v8::internal::MaterializeLocalScope(), and v8::internal::RUNTIME_FUNCTION().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetParameter()

Object* v8::internal::FrameInspector::GetParameter ( int  index)
inline

Definition at line 5736 of file runtime.cc.

5736  {
5738  : frame_->GetParameter(index);
5739  }
Object * GetParameter(int index)
Definition: deoptimizer.h:948
Object * GetParameter(int index) const
Definition: frames-inl.h:217

References deoptimized_frame_, frame_, v8::internal::DeoptimizedFrameInfo::GetParameter(), v8::internal::JavaScriptFrame::GetParameter(), and is_optimized_.

Referenced by v8::internal::MaterializeStackLocalsWithFrameInspector(), and v8::internal::RUNTIME_FUNCTION().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetParametersCount()

int v8::internal::FrameInspector::GetParametersCount ( )
inline

Definition at line 5727 of file runtime.cc.

References v8::internal::JavaScriptFrame::ComputeParametersCount(), deoptimized_frame_, frame_, is_optimized_, and v8::internal::DeoptimizedFrameInfo::parameters_count().

Referenced by v8::internal::RUNTIME_FUNCTION().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSourcePosition()

int v8::internal::FrameInspector::GetSourcePosition ( )
inline

Definition at line 5744 of file runtime.cc.

5744  {
5746  : frame_->LookupCode()->SourcePosition(frame_->pc());
5747  }

References deoptimized_frame_, frame_, v8::internal::DeoptimizedFrameInfo::GetSourcePosition(), and is_optimized_.

Referenced by v8::internal::RUNTIME_FUNCTION().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsConstructor()

bool v8::internal::FrameInspector::IsConstructor ( )
inline

Definition at line 5748 of file runtime.cc.

5748  {
5749  return is_optimized_ && !is_bottommost_
5751  : frame_->IsConstructor();
5752  }
bool IsConstructor() const
Definition: frames.cc:724

References deoptimized_frame_, frame_, v8::internal::DeoptimizedFrameInfo::HasConstructStub(), is_bottommost_, is_optimized_, and v8::internal::JavaScriptFrame::IsConstructor().

Referenced by v8::internal::RUNTIME_FUNCTION().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetArgumentsFrame()

void v8::internal::FrameInspector::SetArgumentsFrame ( JavaScriptFrame frame)
inline

Definition at line 5759 of file runtime.cc.

5759  {
5761  frame_ = frame;
5762  is_optimized_ = frame_->is_optimized();
5764  }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, frame_, has_adapted_arguments_, and is_optimized_.

Referenced by v8::internal::RUNTIME_FUNCTION().

+ Here is the caller graph for this function:

Member Data Documentation

◆ deoptimized_frame_

◆ frame_

◆ has_adapted_arguments_

bool v8::internal::FrameInspector::has_adapted_arguments_
private

Definition at line 5772 of file runtime.cc.

Referenced by FrameInspector(), and SetArgumentsFrame().

◆ is_bottommost_

bool v8::internal::FrameInspector::is_bottommost_
private

Definition at line 5771 of file runtime.cc.

Referenced by FrameInspector(), and IsConstructor().

◆ is_optimized_

bool v8::internal::FrameInspector::is_optimized_
private

◆ isolate_

Isolate* v8::internal::FrameInspector::isolate_
private

Definition at line 5769 of file runtime.cc.

Referenced by ~FrameInspector().


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