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

#include <v8-debugger-script.h>

Collaboration diagram for v8_inspector::V8DebuggerScript:

Public Types

enum class  Language { JavaScript , WebAssembly }
 

Public Member Functions

virtual ~V8DebuggerScript ()
 
 V8DebuggerScript (const V8DebuggerScript &)=delete
 
V8DebuggerScriptoperator= (const V8DebuggerScript &)=delete
 
v8::Local< v8::debug::ScriptSourcescriptSource ()
 
const String16scriptId () const
 
bool hasSourceURLComment () const
 
const String16sourceURL () const
 
const String16embedderName () const
 
virtual const String16sourceMappingURL () const =0
 
virtual String16 source (size_t pos, size_t len=UINT_MAX) const =0
 
virtual Language getLanguage () const =0
 
virtual const String16hash () const =0
 
virtual String16 buildId () const =0
 
virtual int startLine () const =0
 
virtual int startColumn () const =0
 
virtual int endLine () const =0
 
virtual int endColumn () const =0
 
virtual int codeOffset () const =0
 
int executionContextId () const
 
virtual bool isLiveEdit () const =0
 
virtual bool isModule () const =0
 
virtual int length () const =0
 
void setSourceURL (const String16 &)
 
virtual void setSourceMappingURL (const String16 &)=0
 
virtual void setSource (const String16 &source, bool preview, bool allowTopFrameLiveEditing, v8::debug::LiveEditResult *result)=0
 
virtual bool getPossibleBreakpoints (const v8::debug::Location &start, const v8::debug::Location &end, bool ignoreNestedFunctions, std::vector< v8::debug::BreakLocation > *locations)=0
 
virtual void resetBlackboxedStateCache ()=0
 
virtual v8::Maybe< int > offset (int lineNumber, int columnNumber) const =0
 
virtual v8::debug::Location location (int offset) const =0
 
virtual bool setBreakpoint (const String16 &condition, v8::debug::Location *location, int *id) const =0
 
virtual void MakeWeak ()=0
 
virtual bool setInstrumentationBreakpoint (int *id) const =0
 

Static Public Member Functions

static std::unique_ptr< V8DebuggerScriptCreate (v8::Isolate *isolate, v8::Local< v8::debug::Script > script, bool isLiveEdit, V8DebuggerAgentImpl *agent, V8InspectorClient *client)
 

Protected Member Functions

 V8DebuggerScript (v8::Isolate *, String16 id, String16 url, String16 embedderName)
 
virtual v8::Local< v8::debug::Scriptscript () const =0
 

Protected Attributes

String16 m_id
 
String16 m_url
 
bool m_hasSourceURLComment = false
 
int m_executionContextId = 0
 
v8::Isolatem_isolate
 
String16 m_embedderName
 

Detailed Description

Definition at line 51 of file v8-debugger-script.h.

Member Enumeration Documentation

◆ Language

Enumerator
JavaScript 
WebAssembly 

Definition at line 53 of file v8-debugger-script.h.

Constructor & Destructor Documentation

◆ ~V8DebuggerScript()

v8_inspector::V8DebuggerScript::~V8DebuggerScript ( )
virtualdefault

◆ V8DebuggerScript() [1/2]

v8_inspector::V8DebuggerScript::V8DebuggerScript ( const V8DebuggerScript & )
delete

◆ V8DebuggerScript() [2/2]

v8_inspector::V8DebuggerScript::V8DebuggerScript ( v8::Isolate * isolate,
String16 id,
String16 url,
String16 embedderName )
protected

Definition at line 340 of file v8-debugger-script.cc.

Member Function Documentation

◆ buildId()

virtual String16 v8_inspector::V8DebuggerScript::buildId ( ) const
pure virtual
Here is the caller graph for this function:

◆ codeOffset()

virtual int v8_inspector::V8DebuggerScript::codeOffset ( ) const
pure virtual

◆ Create()

std::unique_ptr< V8DebuggerScript > v8_inspector::V8DebuggerScript::Create ( v8::Isolate * isolate,
v8::Local< v8::debug::Script > script,
bool isLiveEdit,
V8DebuggerAgentImpl * agent,
V8InspectorClient * client )
static

Definition at line 333 of file v8-debugger-script.cc.

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

◆ embedderName()

const String16 & v8_inspector::V8DebuggerScript::embedderName ( ) const
inline

Definition at line 66 of file v8-debugger-script.h.

◆ endColumn()

virtual int v8_inspector::V8DebuggerScript::endColumn ( ) const
pure virtual
Here is the caller graph for this function:

◆ endLine()

virtual int v8_inspector::V8DebuggerScript::endLine ( ) const
pure virtual
Here is the caller graph for this function:

◆ executionContextId()

int v8_inspector::V8DebuggerScript::executionContextId ( ) const
inline

Definition at line 78 of file v8-debugger-script.h.

Here is the caller graph for this function:

◆ getLanguage()

virtual Language v8_inspector::V8DebuggerScript::getLanguage ( ) const
pure virtual

◆ getPossibleBreakpoints()

virtual bool v8_inspector::V8DebuggerScript::getPossibleBreakpoints ( const v8::debug::Location & start,
const v8::debug::Location & end,
bool ignoreNestedFunctions,
std::vector< v8::debug::BreakLocation > * locations )
pure virtual

◆ hash()

virtual const String16 & v8_inspector::V8DebuggerScript::hash ( ) const
pure virtual
Here is the caller graph for this function:

◆ hasSourceURLComment()

bool v8_inspector::V8DebuggerScript::hasSourceURLComment ( ) const
inline

Definition at line 64 of file v8-debugger-script.h.

◆ isLiveEdit()

virtual bool v8_inspector::V8DebuggerScript::isLiveEdit ( ) const
pure virtual
Here is the caller graph for this function:

◆ isModule()

virtual bool v8_inspector::V8DebuggerScript::isModule ( ) const
pure virtual

◆ length()

virtual int v8_inspector::V8DebuggerScript::length ( ) const
pure virtual
Here is the caller graph for this function:

◆ location()

virtual v8::debug::Location v8_inspector::V8DebuggerScript::location ( int offset) const
pure virtual

◆ MakeWeak()

virtual void v8_inspector::V8DebuggerScript::MakeWeak ( )
pure virtual

◆ offset()

virtual v8::Maybe< int > v8_inspector::V8DebuggerScript::offset ( int lineNumber,
int columnNumber ) const
pure virtual

◆ operator=()

V8DebuggerScript & v8_inspector::V8DebuggerScript::operator= ( const V8DebuggerScript & )
delete

◆ resetBlackboxedStateCache()

virtual void v8_inspector::V8DebuggerScript::resetBlackboxedStateCache ( )
pure virtual
Here is the caller graph for this function:

◆ script()

virtual v8::Local< v8::debug::Script > v8_inspector::V8DebuggerScript::script ( ) const
protectedpure virtual

◆ scriptId()

const String16 & v8_inspector::V8DebuggerScript::scriptId ( ) const
inline

Definition at line 63 of file v8-debugger-script.h.

Here is the caller graph for this function:

◆ scriptSource()

v8::Local< v8::debug::ScriptSource > v8_inspector::V8DebuggerScript::scriptSource ( )

◆ setBreakpoint()

virtual bool v8_inspector::V8DebuggerScript::setBreakpoint ( const String16 & condition,
v8::debug::Location * location,
int * id ) const
pure virtual

◆ setInstrumentationBreakpoint()

virtual bool v8_inspector::V8DebuggerScript::setInstrumentationBreakpoint ( int * id) const
pure virtual
Here is the caller graph for this function:

◆ setSource()

virtual void v8_inspector::V8DebuggerScript::setSource ( const String16 & source,
bool preview,
bool allowTopFrameLiveEditing,
v8::debug::LiveEditResult * result )
pure virtual

◆ setSourceMappingURL()

virtual void v8_inspector::V8DebuggerScript::setSourceMappingURL ( const String16 & )
pure virtual

◆ setSourceURL()

void v8_inspector::V8DebuggerScript::setSourceURL ( const String16 & sourceURL)

Definition at line 349 of file v8-debugger-script.cc.

Here is the call graph for this function:

◆ source()

virtual String16 v8_inspector::V8DebuggerScript::source ( size_t pos,
size_t len = UINT_MAX ) const
pure virtual

◆ sourceMappingURL()

virtual const String16 & v8_inspector::V8DebuggerScript::sourceMappingURL ( ) const
pure virtual
Here is the caller graph for this function:

◆ sourceURL()

const String16 & v8_inspector::V8DebuggerScript::sourceURL ( ) const
inline

Definition at line 65 of file v8-debugger-script.h.

Here is the caller graph for this function:

◆ startColumn()

virtual int v8_inspector::V8DebuggerScript::startColumn ( ) const
pure virtual
Here is the caller graph for this function:

◆ startLine()

virtual int v8_inspector::V8DebuggerScript::startLine ( ) const
pure virtual
Here is the caller graph for this function:

Member Data Documentation

◆ m_embedderName

String16 v8_inspector::V8DebuggerScript::m_embedderName
protected

Definition at line 124 of file v8-debugger-script.h.

◆ m_executionContextId

int v8_inspector::V8DebuggerScript::m_executionContextId = 0
protected

Definition at line 121 of file v8-debugger-script.h.

◆ m_hasSourceURLComment

bool v8_inspector::V8DebuggerScript::m_hasSourceURLComment = false
protected

Definition at line 120 of file v8-debugger-script.h.

◆ m_id

String16 v8_inspector::V8DebuggerScript::m_id
protected

Definition at line 118 of file v8-debugger-script.h.

◆ m_isolate

v8::Isolate* v8_inspector::V8DebuggerScript::m_isolate
protected

Definition at line 123 of file v8-debugger-script.h.

◆ m_url

String16 v8_inspector::V8DebuggerScript::m_url
protected

Definition at line 119 of file v8-debugger-script.h.


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