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

#include <string-builder-multiline.h>

Inheritance diagram for v8::internal::wasm::MultiLineStringBuilder:
Collaboration diagram for v8::internal::wasm::MultiLineStringBuilder:

Classes

struct  Line
 

Public Member Functions

 MultiLineStringBuilder ()
 
void NextLine (uint32_t byte_offset)
 
size_t line_number ()
 
void set_current_line_bytecode_offset (uint32_t offset)
 
uint32_t current_line_bytecode_offset ()
 
void PatchLabel (LabelInfo &label, const char *label_source)
 
void ToDisassemblyCollector (v8::debug::DisassemblyCollector *collector)
 
void WriteTo (std::ostream &out, bool print_offsets, std::vector< uint32_t > *collect_offsets=nullptr)
 
size_t ApproximateSizeMB ()
 
- Public Member Functions inherited from v8::internal::wasm::StringBuilder
 StringBuilder ()
 
 StringBuilder (const StringBuilder &)=delete
 
StringBuilderoperator= (const StringBuilder &)=delete
 
 ~StringBuilder ()
 
char * allocate (size_t n)
 
void write (const uint8_t *data, size_t n)
 
void write (const char *data, size_t n)
 
const char * start () const
 
const char * cursor () const
 
size_t length () const
 
void rewind_to_start ()
 
void backspace ()
 

Private Attributes

std::vector< Linelines_
 
uint32_t pending_bytecode_offset_ = 0
 

Additional Inherited Members

- Protected Types inherited from v8::internal::wasm::StringBuilder
enum  OnGrowth : bool { kKeepOldChunks , kReplacePreviousChunk }
 
- Protected Member Functions inherited from v8::internal::wasm::StringBuilder
 StringBuilder (OnGrowth on_growth)
 
void start_here ()
 
size_t approximate_size_mb ()
 

Detailed Description

Definition at line 48 of file string-builder-multiline.h.

Constructor & Destructor Documentation

◆ MultiLineStringBuilder()

v8::internal::wasm::MultiLineStringBuilder::MultiLineStringBuilder ( )
inline

Definition at line 50 of file string-builder-multiline.h.

Member Function Documentation

◆ ApproximateSizeMB()

size_t v8::internal::wasm::MultiLineStringBuilder::ApproximateSizeMB ( )
inline

Definition at line 178 of file string-builder-multiline.h.

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

◆ current_line_bytecode_offset()

uint32_t v8::internal::wasm::MultiLineStringBuilder::current_line_bytecode_offset ( )
inline

Definition at line 64 of file string-builder-multiline.h.

Here is the caller graph for this function:

◆ line_number()

size_t v8::internal::wasm::MultiLineStringBuilder::line_number ( )
inline

Definition at line 59 of file string-builder-multiline.h.

◆ NextLine()

void v8::internal::wasm::MultiLineStringBuilder::NextLine ( uint32_t byte_offset)
inline

Definition at line 52 of file string-builder-multiline.h.

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

◆ PatchLabel()

void v8::internal::wasm::MultiLineStringBuilder::PatchLabel ( LabelInfo & label,
const char * label_source )
inline

Definition at line 74 of file string-builder-multiline.h.

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

◆ set_current_line_bytecode_offset()

void v8::internal::wasm::MultiLineStringBuilder::set_current_line_bytecode_offset ( uint32_t offset)
inline

Definition at line 61 of file string-builder-multiline.h.

Here is the caller graph for this function:

◆ ToDisassemblyCollector()

void v8::internal::wasm::MultiLineStringBuilder::ToDisassemblyCollector ( v8::debug::DisassemblyCollector * collector)

Definition at line 59 of file wasm-disassembler.cc.

Here is the call graph for this function:

◆ WriteTo()

void v8::internal::wasm::MultiLineStringBuilder::WriteTo ( std::ostream & out,
bool print_offsets,
std::vector< uint32_t > * collect_offsets = nullptr )
inline

Definition at line 126 of file string-builder-multiline.h.

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

Member Data Documentation

◆ lines_

std::vector<Line> v8::internal::wasm::MultiLineStringBuilder::lines_
private

Definition at line 189 of file string-builder-multiline.h.

◆ pending_bytecode_offset_

uint32_t v8::internal::wasm::MultiLineStringBuilder::pending_bytecode_offset_ = 0
private

Definition at line 190 of file string-builder-multiline.h.


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