v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::BreakLocation Class Reference

#include <debug.h>

Collaboration diagram for v8::internal::BreakLocation:

Public Member Functions

bool IsSuspend () const
 
bool IsReturn () const
 
bool IsReturnOrSuspend () const
 
bool IsCall () const
 
bool IsDebugBreakSlot () const
 
bool IsDebuggerStatement () const
 
bool IsDebugBreakAtEntry () const
 
bool HasBreakPoint (Isolate *isolate, Handle< DebugInfo > debug_info) const
 
int generator_suspend_id ()
 
int position () const
 
int code_offset () const
 
debug::BreakLocationType type () const
 
Tagged< JSGeneratorObjectGetGeneratorObjectForSuspendedFrame (JavaScriptFrame *frame) const
 

Static Public Member Functions

static BreakLocation Invalid ()
 
static BreakLocation FromFrame (Handle< DebugInfo > debug_info, JavaScriptFrame *frame)
 
static bool IsPausedInJsFunctionEntry (JavaScriptFrame *frame)
 
static void AllAtCurrentStatement (Handle< DebugInfo > debug_info, JavaScriptFrame *frame, std::vector< BreakLocation > *result_out)
 

Private Member Functions

 BreakLocation (Handle< AbstractCode > abstract_code, DebugBreakType type, int code_offset, int position, int generator_obj_reg_index, int generator_suspend_id)
 
 BreakLocation (int position, DebugBreakType type)
 
void SetDebugBreak ()
 
void ClearDebugBreak ()
 

Static Private Member Functions

static int BreakIndexFromCodeOffset (Handle< DebugInfo > debug_info, DirectHandle< AbstractCode > abstract_code, int offset)
 

Private Attributes

Handle< AbstractCodeabstract_code_
 
int code_offset_
 
DebugBreakType type_
 
int position_
 
int generator_obj_reg_index_
 
int generator_suspend_id_
 

Friends

class BreakIterator
 

Detailed Description

Definition at line 69 of file debug.h.

Constructor & Destructor Documentation

◆ BreakLocation() [1/2]

v8::internal::BreakLocation::BreakLocation ( Handle< AbstractCode > abstract_code,
DebugBreakType type,
int code_offset,
int position,
int generator_obj_reg_index,
int generator_suspend_id )
inlineprivate

Definition at line 100 of file debug.h.

Here is the caller graph for this function:

◆ BreakLocation() [2/2]

v8::internal::BreakLocation::BreakLocation ( int position,
DebugBreakType type )
inlineprivate

Definition at line 112 of file debug.h.

Member Function Documentation

◆ AllAtCurrentStatement()

void v8::internal::BreakLocation::AllAtCurrentStatement ( Handle< DebugInfo > debug_info,
JavaScriptFrame * frame,
std::vector< BreakLocation > * result_out )
static

Definition at line 236 of file debug.cc.

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

◆ BreakIndexFromCodeOffset()

int v8::internal::BreakLocation::BreakIndexFromCodeOffset ( Handle< DebugInfo > debug_info,
DirectHandle< AbstractCode > abstract_code,
int offset )
staticprivate

Definition at line 270 of file debug.cc.

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

◆ ClearDebugBreak()

void v8::internal::BreakLocation::ClearDebugBreak ( )
private

◆ code_offset()

int v8::internal::BreakLocation::code_offset ( ) const
inline

Definition at line 92 of file debug.h.

Here is the caller graph for this function:

◆ FromFrame()

BreakLocation v8::internal::BreakLocation::FromFrame ( Handle< DebugInfo > debug_info,
JavaScriptFrame * frame )
static

Definition at line 188 of file debug.cc.

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

◆ generator_suspend_id()

int v8::internal::BreakLocation::generator_suspend_id ( )
inline

Definition at line 90 of file debug.h.

Here is the caller graph for this function:

◆ GetGeneratorObjectForSuspendedFrame()

Tagged< JSGeneratorObject > v8::internal::BreakLocation::GetGeneratorObjectForSuspendedFrame ( JavaScriptFrame * frame) const

Definition at line 258 of file debug.cc.

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

◆ HasBreakPoint()

bool v8::internal::BreakLocation::HasBreakPoint ( Isolate * isolate,
Handle< DebugInfo > debug_info ) const

Definition at line 290 of file debug.cc.

Here is the caller graph for this function:

◆ Invalid()

static BreakLocation v8::internal::BreakLocation::Invalid ( )
inlinestatic

Definition at line 71 of file debug.h.

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

◆ IsCall()

bool v8::internal::BreakLocation::IsCall ( ) const
inline

Definition at line 83 of file debug.h.

◆ IsDebugBreakAtEntry()

bool v8::internal::BreakLocation::IsDebugBreakAtEntry ( ) const
inline

Definition at line 86 of file debug.h.

Here is the caller graph for this function:

◆ IsDebugBreakSlot()

bool v8::internal::BreakLocation::IsDebugBreakSlot ( ) const
inline

Definition at line 84 of file debug.h.

◆ IsDebuggerStatement()

bool v8::internal::BreakLocation::IsDebuggerStatement ( ) const
inline

Definition at line 85 of file debug.h.

◆ IsPausedInJsFunctionEntry()

bool v8::internal::BreakLocation::IsPausedInJsFunctionEntry ( JavaScriptFrame * frame)
static

Definition at line 201 of file debug.cc.

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

◆ IsReturn()

bool v8::internal::BreakLocation::IsReturn ( ) const
inline

Definition at line 81 of file debug.h.

Here is the caller graph for this function:

◆ IsReturnOrSuspend()

bool v8::internal::BreakLocation::IsReturnOrSuspend ( ) const
inline

Definition at line 82 of file debug.h.

Here is the caller graph for this function:

◆ IsSuspend()

bool v8::internal::BreakLocation::IsSuspend ( ) const
inline

Definition at line 80 of file debug.h.

Here is the caller graph for this function:

◆ position()

int v8::internal::BreakLocation::position ( ) const
inline

Definition at line 91 of file debug.h.

Here is the caller graph for this function:

◆ SetDebugBreak()

void v8::internal::BreakLocation::SetDebugBreak ( )
private

◆ type()

debug::BreakLocationType v8::internal::BreakLocation::type ( ) const

Definition at line 311 of file debug.cc.

Friends And Related Symbol Documentation

◆ BreakIterator

friend class BreakIterator
friend

Definition at line 133 of file debug.h.

Member Data Documentation

◆ abstract_code_

Handle<AbstractCode> v8::internal::BreakLocation::abstract_code_
private

Definition at line 126 of file debug.h.

◆ code_offset_

int v8::internal::BreakLocation::code_offset_
private

Definition at line 127 of file debug.h.

◆ generator_obj_reg_index_

int v8::internal::BreakLocation::generator_obj_reg_index_
private

Definition at line 130 of file debug.h.

◆ generator_suspend_id_

int v8::internal::BreakLocation::generator_suspend_id_
private

Definition at line 131 of file debug.h.

◆ position_

int v8::internal::BreakLocation::position_
private

Definition at line 129 of file debug.h.

◆ type_

DebugBreakType v8::internal::BreakLocation::type_
private

Definition at line 128 of file debug.h.


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