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

#include <debug-interface.h>

Inheritance diagram for v8::debug::ScopeIterator:
Collaboration diagram for v8::debug::ScopeIterator:

Public Types

enum  ScopeType {
  ScopeTypeGlobal = 0 , ScopeTypeLocal , ScopeTypeWith , ScopeTypeClosure ,
  ScopeTypeCatch , ScopeTypeBlock , ScopeTypeScript , ScopeTypeEval ,
  ScopeTypeModule , ScopeTypeWasmExpressionStack
}
 

Public Member Functions

 ScopeIterator ()=default
 
virtual ~ScopeIterator ()=default
 
 ScopeIterator (const ScopeIterator &)=delete
 
ScopeIteratoroperator= (const ScopeIterator &)=delete
 
virtual bool Done ()=0
 
virtual void Advance ()=0
 
virtual ScopeType GetType ()=0
 
virtual v8::Local< v8::ObjectGetObject ()=0
 
virtual v8::Local< v8::ValueGetFunctionDebugName ()=0
 
virtual int GetScriptId ()=0
 
virtual bool HasLocationInfo ()=0
 
virtual debug::Location GetStartLocation ()=0
 
virtual debug::Location GetEndLocation ()=0
 
virtual bool SetVariableValue (v8::Local< v8::String > name, v8::Local< v8::Value > value)=0
 

Static Public Member Functions

static std::unique_ptr< ScopeIteratorCreateForFunction (v8::Isolate *isolate, v8::Local< v8::Function > func)
 
static std::unique_ptr< ScopeIteratorCreateForGeneratorObject (v8::Isolate *isolate, v8::Local< v8::Object > generator)
 

Detailed Description

Definition at line 473 of file debug-interface.h.

Member Enumeration Documentation

◆ ScopeType

Enumerator
ScopeTypeGlobal 
ScopeTypeLocal 
ScopeTypeWith 
ScopeTypeClosure 
ScopeTypeCatch 
ScopeTypeBlock 
ScopeTypeScript 
ScopeTypeEval 
ScopeTypeModule 
ScopeTypeWasmExpressionStack 

Definition at line 485 of file debug-interface.h.

Constructor & Destructor Documentation

◆ ScopeIterator() [1/2]

v8::debug::ScopeIterator::ScopeIterator ( )
default

◆ ~ScopeIterator()

virtual v8::debug::ScopeIterator::~ScopeIterator ( )
virtualdefault

◆ ScopeIterator() [2/2]

v8::debug::ScopeIterator::ScopeIterator ( const ScopeIterator & )
delete

Member Function Documentation

◆ Advance()

virtual void v8::debug::ScopeIterator::Advance ( )
pure virtual

◆ CreateForFunction()

std::unique_ptr< debug::ScopeIterator > v8::debug::ScopeIterator::CreateForFunction ( v8::Isolate * isolate,
v8::Local< v8::Function > func )
static

Definition at line 13 of file debug-scope-iterator.cc.

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

◆ CreateForGeneratorObject()

std::unique_ptr< debug::ScopeIterator > v8::debug::ScopeIterator::CreateForGeneratorObject ( v8::Isolate * isolate,
v8::Local< v8::Object > generator )
static

Definition at line 31 of file debug-scope-iterator.cc.

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

◆ Done()

virtual bool v8::debug::ScopeIterator::Done ( )
pure virtual

◆ GetEndLocation()

virtual debug::Location v8::debug::ScopeIterator::GetEndLocation ( )
pure virtual

◆ GetFunctionDebugName()

virtual v8::Local< v8::Value > v8::debug::ScopeIterator::GetFunctionDebugName ( )
pure virtual

◆ GetObject()

virtual v8::Local< v8::Object > v8::debug::ScopeIterator::GetObject ( )
pure virtual

◆ GetScriptId()

virtual int v8::debug::ScopeIterator::GetScriptId ( )
pure virtual

◆ GetStartLocation()

virtual debug::Location v8::debug::ScopeIterator::GetStartLocation ( )
pure virtual

◆ GetType()

virtual ScopeType v8::debug::ScopeIterator::GetType ( )
pure virtual

◆ HasLocationInfo()

virtual bool v8::debug::ScopeIterator::HasLocationInfo ( )
pure virtual

◆ operator=()

ScopeIterator & v8::debug::ScopeIterator::operator= ( const ScopeIterator & )
delete

◆ SetVariableValue()

virtual bool v8::debug::ScopeIterator::SetVariableValue ( v8::Local< v8::String > name,
v8::Local< v8::Value > value )
pure virtual

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