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

#include <compiler-source-position-table.h>

Inheritance diagram for v8::internal::compiler::SourcePositionTable:
Collaboration diagram for v8::internal::compiler::SourcePositionTable:

Classes

class  Decorator
 
class  Scope
 

Public Member Functions

 SourcePositionTable (TFGraph *graph)
 
 SourcePositionTable (const SourcePositionTable &)=delete
 
SourcePositionTableoperator= (const SourcePositionTable &)=delete
 
void AddDecorator ()
 
void RemoveDecorator ()
 
SourcePosition GetSourcePosition (Node *node) const
 
SourcePosition GetSourcePosition (NodeId id) const
 
void SetSourcePosition (Node *node, SourcePosition position)
 
void SetCurrentPosition (const SourcePosition &pos)
 
SourcePosition GetCurrentPosition () const
 
void Disable ()
 
void Enable ()
 
bool IsEnabled () const
 
void PrintJson (std::ostream &os) const
 

Static Private Member Functions

static SourcePosition UnknownSourcePosition (Zone *zone)
 

Private Attributes

TFGraph *const graph_
 
Decoratordecorator_
 
SourcePosition current_position_
 
NodeAuxData< SourcePosition, UnknownSourcePositiontable_
 
bool enabled_ = true
 

Detailed Description

Definition at line 16 of file compiler-source-position-table.h.

Constructor & Destructor Documentation

◆ SourcePositionTable() [1/2]

v8::internal::compiler::SourcePositionTable::SourcePositionTable ( TFGraph * graph)
explicit

Definition at line 28 of file compiler-source-position-table.cc.

◆ SourcePositionTable() [2/2]

v8::internal::compiler::SourcePositionTable::SourcePositionTable ( const SourcePositionTable & )
delete

Member Function Documentation

◆ AddDecorator()

void v8::internal::compiler::SourcePositionTable::AddDecorator ( )

Definition at line 34 of file compiler-source-position-table.cc.

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

◆ Disable()

void v8::internal::compiler::SourcePositionTable::Disable ( )
inline

Definition at line 60 of file compiler-source-position-table.h.

◆ Enable()

void v8::internal::compiler::SourcePositionTable::Enable ( )
inline

Definition at line 61 of file compiler-source-position-table.h.

◆ GetCurrentPosition()

SourcePosition v8::internal::compiler::SourcePositionTable::GetCurrentPosition ( ) const
inline

Definition at line 58 of file compiler-source-position-table.h.

Here is the caller graph for this function:

◆ GetSourcePosition() [1/2]

SourcePosition v8::internal::compiler::SourcePositionTable::GetSourcePosition ( Node * node) const

Definition at line 51 of file compiler-source-position-table.cc.

Here is the caller graph for this function:

◆ GetSourcePosition() [2/2]

SourcePosition v8::internal::compiler::SourcePositionTable::GetSourcePosition ( NodeId id) const

Definition at line 54 of file compiler-source-position-table.cc.

◆ IsEnabled()

bool v8::internal::compiler::SourcePositionTable::IsEnabled ( ) const
inline

Definition at line 63 of file compiler-source-position-table.h.

Here is the caller graph for this function:

◆ operator=()

SourcePositionTable & v8::internal::compiler::SourcePositionTable::operator= ( const SourcePositionTable & )
delete

◆ PrintJson()

void v8::internal::compiler::SourcePositionTable::PrintJson ( std::ostream & os) const

Definition at line 64 of file compiler-source-position-table.cc.

◆ RemoveDecorator()

void v8::internal::compiler::SourcePositionTable::RemoveDecorator ( )

Definition at line 41 of file compiler-source-position-table.cc.

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

◆ SetCurrentPosition()

void v8::internal::compiler::SourcePositionTable::SetCurrentPosition ( const SourcePosition & pos)
inline

Definition at line 55 of file compiler-source-position-table.h.

Here is the caller graph for this function:

◆ SetSourcePosition()

void v8::internal::compiler::SourcePositionTable::SetSourcePosition ( Node * node,
SourcePosition position )

Definition at line 58 of file compiler-source-position-table.cc.

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

◆ UnknownSourcePosition()

static SourcePosition v8::internal::compiler::SourcePositionTable::UnknownSourcePosition ( Zone * zone)
inlinestaticprivate

Definition at line 70 of file compiler-source-position-table.h.

Member Data Documentation

◆ current_position_

SourcePosition v8::internal::compiler::SourcePositionTable::current_position_
private

Definition at line 76 of file compiler-source-position-table.h.

◆ decorator_

Decorator* v8::internal::compiler::SourcePositionTable::decorator_
private

Definition at line 75 of file compiler-source-position-table.h.

◆ enabled_

bool v8::internal::compiler::SourcePositionTable::enabled_ = true
private

Definition at line 78 of file compiler-source-position-table.h.

◆ graph_

TFGraph* const v8::internal::compiler::SourcePositionTable::graph_
private

Definition at line 74 of file compiler-source-position-table.h.

◆ table_

NodeAuxData<SourcePosition, UnknownSourcePosition> v8::internal::compiler::SourcePositionTable::table_
private

Definition at line 77 of file compiler-source-position-table.h.


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