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

#include <wasm-module-sourcemap.h>

Collaboration diagram for v8::internal::wasm::WasmModuleSourceMap:

Public Member Functions

 WasmModuleSourceMap (v8::Isolate *v8_isolate, v8::Local< v8::String > src_map_str)
 
bool IsValid () const
 
bool HasSource (size_t start, size_t end) const
 
bool HasValidEntry (size_t start, size_t addr) const
 
size_t GetSourceLine (size_t wasm_offset) const
 
std::string GetFilename (size_t wasm_offset) const
 
size_t EstimateCurrentMemoryConsumption () const
 

Private Member Functions

bool DecodeMapping (const std::string &s)
 

Private Attributes

std::vector< size_toffsets
 
std::vector< std::string > filenames
 
std::vector< size_tfile_idxs
 
std::vector< size_tsource_row
 
bool valid_ = false
 

Detailed Description

Definition at line 38 of file wasm-module-sourcemap.h.

Constructor & Destructor Documentation

◆ WasmModuleSourceMap()

v8::internal::wasm::WasmModuleSourceMap::WasmModuleSourceMap ( v8::Isolate * v8_isolate,
v8::Local< v8::String > src_map_str )

Definition at line 24 of file wasm-module-sourcemap.cc.

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

Member Function Documentation

◆ DecodeMapping()

bool v8::internal::wasm::WasmModuleSourceMap::DecodeMapping ( const std::string & s)
private

Definition at line 123 of file wasm-module-sourcemap.cc.

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

◆ EstimateCurrentMemoryConsumption()

size_t v8::internal::wasm::WasmModuleSourceMap::EstimateCurrentMemoryConsumption ( ) const

Definition at line 161 of file wasm-module-sourcemap.cc.

Here is the call graph for this function:

◆ GetFilename()

std::string v8::internal::wasm::WasmModuleSourceMap::GetFilename ( size_t wasm_offset) const

Definition at line 100 of file wasm-module-sourcemap.cc.

◆ GetSourceLine()

size_t v8::internal::wasm::WasmModuleSourceMap::GetSourceLine ( size_t wasm_offset) const

Definition at line 92 of file wasm-module-sourcemap.cc.

◆ HasSource()

bool v8::internal::wasm::WasmModuleSourceMap::HasSource ( size_t start,
size_t end ) const

Definition at line 109 of file wasm-module-sourcemap.cc.

◆ HasValidEntry()

bool v8::internal::wasm::WasmModuleSourceMap::HasValidEntry ( size_t start,
size_t addr ) const

Definition at line 113 of file wasm-module-sourcemap.cc.

◆ IsValid()

bool v8::internal::wasm::WasmModuleSourceMap::IsValid ( ) const
inline

Definition at line 45 of file wasm-module-sourcemap.h.

Member Data Documentation

◆ file_idxs

std::vector<size_t> v8::internal::wasm::WasmModuleSourceMap::file_idxs
private

Definition at line 80 of file wasm-module-sourcemap.h.

◆ filenames

std::vector<std::string> v8::internal::wasm::WasmModuleSourceMap::filenames
private

Definition at line 79 of file wasm-module-sourcemap.h.

◆ offsets

std::vector<size_t> v8::internal::wasm::WasmModuleSourceMap::offsets
private

Definition at line 78 of file wasm-module-sourcemap.h.

◆ source_row

std::vector<size_t> v8::internal::wasm::WasmModuleSourceMap::source_row
private

Definition at line 81 of file wasm-module-sourcemap.h.

◆ valid_

bool v8::internal::wasm::WasmModuleSourceMap::valid_ = false
private

Definition at line 85 of file wasm-module-sourcemap.h.


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