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

#include <names-provider.h>

Collaboration diagram for v8::internal::wasm::CanonicalTypeNamesProvider:

Public Member Functions

 CanonicalTypeNamesProvider ()=default
 
void DecodeNameSections ()
 
void DecodeNames (NativeModule *native_module)
 
void PrintTypeName (StringBuilder &out, CanonicalTypeIndex type_index, NamesProvider::IndexAsComment index_as_comment=NamesProvider::kDontPrintIndex)
 
void PrintValueType (StringBuilder &out, CanonicalValueType type)
 
void PrintFieldName (StringBuilder &out, CanonicalTypeIndex struct_index, uint32_t field_index)
 
size_t EstimateCurrentMemoryConsumption () const
 

Private Types

using StringT = base::OwnedVector<char>
 

Private Member Functions

size_t DetectInlineStringThreshold ()
 

Private Attributes

std::vector< StringTtype_names_
 
std::map< uint32_t, std::vector< StringT > > field_names_
 
base::Mutex mutex_
 
size_t payload_size_estimate_ {0}
 

Detailed Description

Definition at line 105 of file names-provider.h.

Member Typedef Documentation

◆ StringT

Constructor & Destructor Documentation

◆ CanonicalTypeNamesProvider()

v8::internal::wasm::CanonicalTypeNamesProvider::CanonicalTypeNamesProvider ( )
default

Member Function Documentation

◆ DecodeNames()

void v8::internal::wasm::CanonicalTypeNamesProvider::DecodeNames ( NativeModule * native_module)

Definition at line 472 of file names-provider.cc.

Here is the call graph for this function:

◆ DecodeNameSections()

void v8::internal::wasm::CanonicalTypeNamesProvider::DecodeNameSections ( )

Definition at line 465 of file names-provider.cc.

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

◆ DetectInlineStringThreshold()

size_t v8::internal::wasm::CanonicalTypeNamesProvider::DetectInlineStringThreshold ( )
private

Definition at line 549 of file names-provider.cc.

◆ EstimateCurrentMemoryConsumption()

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

Definition at line 451 of file names-provider.cc.

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

◆ PrintFieldName()

void v8::internal::wasm::CanonicalTypeNamesProvider::PrintFieldName ( StringBuilder & out,
CanonicalTypeIndex struct_index,
uint32_t field_index )

Definition at line 527 of file names-provider.cc.

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

◆ PrintTypeName()

void v8::internal::wasm::CanonicalTypeNamesProvider::PrintTypeName ( StringBuilder & out,
CanonicalTypeIndex type_index,
NamesProvider::IndexAsComment index_as_comment = NamesProvider::kDontPrintIndex )

Definition at line 485 of file names-provider.cc.

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

◆ PrintValueType()

void v8::internal::wasm::CanonicalTypeNamesProvider::PrintValueType ( StringBuilder & out,
CanonicalValueType type )

Definition at line 504 of file names-provider.cc.

Here is the call graph for this function:

Member Data Documentation

◆ field_names_

std::map<uint32_t, std::vector<StringT> > v8::internal::wasm::CanonicalTypeNamesProvider::field_names_
private

Definition at line 129 of file names-provider.h.

◆ mutex_

base::Mutex v8::internal::wasm::CanonicalTypeNamesProvider::mutex_
mutableprivate

Definition at line 130 of file names-provider.h.

◆ payload_size_estimate_

size_t v8::internal::wasm::CanonicalTypeNamesProvider::payload_size_estimate_ {0}
private

Definition at line 131 of file names-provider.h.

◆ type_names_

std::vector<StringT> v8::internal::wasm::CanonicalTypeNamesProvider::type_names_
private

Definition at line 128 of file names-provider.h.


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