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

#include <source-position-table.h>

Collaboration diagram for v8::internal::SourcePositionTableBuilder:

Public Types

enum  RecordingMode { OMIT_SOURCE_POSITIONS , LAZY_SOURCE_POSITIONS , RECORD_SOURCE_POSITIONS }
 

Public Member Functions

 SourcePositionTableBuilder (Zone *zone, RecordingMode mode=RECORD_SOURCE_POSITIONS)
 
void AddPosition (size_t code_offset, SourcePosition source_position, bool is_statement)
 
template<typename IsolateT >
Handle< TrustedByteArrayToSourcePositionTable (IsolateT *isolate)
 
base::OwnedVector< uint8_t > ToSourcePositionTableVector ()
 
bool Omit () const
 
bool Lazy () const
 

Private Member Functions

void AddEntry (const PositionTableEntry &entry)
 

Private Attributes

RecordingMode mode_
 
ZoneVector< uint8_t > bytes_
 
PositionTableEntry previous_
 

Detailed Description

Definition at line 35 of file source-position-table.h.

Member Enumeration Documentation

◆ RecordingMode

Enumerator
OMIT_SOURCE_POSITIONS 
LAZY_SOURCE_POSITIONS 
RECORD_SOURCE_POSITIONS 

Definition at line 37 of file source-position-table.h.

Constructor & Destructor Documentation

◆ SourcePositionTableBuilder()

v8::internal::SourcePositionTableBuilder::SourcePositionTableBuilder ( Zone * zone,
SourcePositionTableBuilder::RecordingMode mode = RECORD_SOURCE_POSITIONS )
explicit

Definition at line 143 of file source-position-table.cc.

Member Function Documentation

◆ AddEntry()

V8_INLINE void v8::internal::SourcePositionTableBuilder::AddEntry ( const PositionTableEntry & entry)
private

Definition at line 162 of file source-position-table.cc.

Here is the caller graph for this function:

◆ AddPosition()

void v8::internal::SourcePositionTableBuilder::AddPosition ( size_t code_offset,
SourcePosition source_position,
bool is_statement )

Definition at line 153 of file source-position-table.cc.

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

◆ Lazy()

bool v8::internal::SourcePositionTableBuilder::Lazy ( ) const
inline

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

◆ Omit()

bool v8::internal::SourcePositionTableBuilder::Omit ( ) const
inline

Definition at line 59 of file source-position-table.h.

Here is the caller graph for this function:

◆ ToSourcePositionTable()

template<typename IsolateT >
Handle< TrustedByteArray > v8::internal::SourcePositionTableBuilder::ToSourcePositionTable ( IsolateT * isolate)

Definition at line 174 of file source-position-table.cc.

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

◆ ToSourcePositionTableVector()

base::OwnedVector< uint8_t > v8::internal::SourcePositionTableBuilder::ToSourcePositionTableVector ( )
Here is the caller graph for this function:

Member Data Documentation

◆ bytes_

ZoneVector<uint8_t> v8::internal::SourcePositionTableBuilder::bytes_
private

Definition at line 66 of file source-position-table.h.

◆ mode_

RecordingMode v8::internal::SourcePositionTableBuilder::mode_
private

Definition at line 65 of file source-position-table.h.

◆ previous_

PositionTableEntry v8::internal::SourcePositionTableBuilder::previous_
private

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


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