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

#include <module-decoder.h>

Collaboration diagram for v8::internal::wasm::ModuleDecoder:

Public Member Functions

 ModuleDecoder (WasmEnabledFeatures enabled_features, WasmDetectedFeatures *detected_features)
 
 ~ModuleDecoder ()
 
void DecodeModuleHeader (base::Vector< const uint8_t > bytes)
 
void DecodeSection (SectionCode section_code, base::Vector< const uint8_t > bytes, uint32_t offset)
 
void StartCodeSection (WireBytesRef section_bytes)
 
bool CheckFunctionsCount (uint32_t functions_count, uint32_t error_offset)
 
void DecodeFunctionBody (uint32_t index, uint32_t size, uint32_t offset)
 
ModuleResult FinishDecoding ()
 
const std::shared_ptr< WasmModule > & shared_module () const
 
WasmModulemodule () const
 
bool ok () const
 

Static Public Member Functions

static size_t IdentifyUnknownSection (ModuleDecoder *decoder, base::Vector< const uint8_t > bytes, uint32_t offset, SectionCode *result)
 

Private Attributes

std::unique_ptr< ModuleDecoderImplimpl_
 

Detailed Description

Definition at line 167 of file module-decoder.h.

Constructor & Destructor Documentation

◆ ModuleDecoder()

v8::internal::wasm::ModuleDecoder::ModuleDecoder ( WasmEnabledFeatures enabled_features,
WasmDetectedFeatures * detected_features )
explicit

Definition at line 140 of file module-decoder.cc.

◆ ~ModuleDecoder()

v8::internal::wasm::ModuleDecoder::~ModuleDecoder ( )
default

Member Function Documentation

◆ CheckFunctionsCount()

bool v8::internal::wasm::ModuleDecoder::CheckFunctionsCount ( uint32_t functions_count,
uint32_t error_offset )

Definition at line 171 of file module-decoder.cc.

Here is the caller graph for this function:

◆ DecodeFunctionBody()

void v8::internal::wasm::ModuleDecoder::DecodeFunctionBody ( uint32_t index,
uint32_t size,
uint32_t offset )

Definition at line 162 of file module-decoder.cc.

Here is the caller graph for this function:

◆ DecodeModuleHeader()

void v8::internal::wasm::ModuleDecoder::DecodeModuleHeader ( base::Vector< const uint8_t > bytes)

Definition at line 152 of file module-decoder.cc.

Here is the caller graph for this function:

◆ DecodeSection()

void v8::internal::wasm::ModuleDecoder::DecodeSection ( SectionCode section_code,
base::Vector< const uint8_t > bytes,
uint32_t offset )

Definition at line 156 of file module-decoder.cc.

Here is the caller graph for this function:

◆ FinishDecoding()

ModuleResult v8::internal::wasm::ModuleDecoder::FinishDecoding ( )

Definition at line 176 of file module-decoder.cc.

Here is the caller graph for this function:

◆ IdentifyUnknownSection()

size_t v8::internal::wasm::ModuleDecoder::IdentifyUnknownSection ( ModuleDecoder * decoder,
base::Vector< const uint8_t > bytes,
uint32_t offset,
SectionCode * result )
static

Definition at line 178 of file module-decoder.cc.

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

◆ module()

WasmModule * v8::internal::wasm::ModuleDecoder::module ( ) const
inline

Definition at line 188 of file module-decoder.h.

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

◆ ok()

bool v8::internal::wasm::ModuleDecoder::ok ( ) const

Definition at line 189 of file module-decoder.cc.

Here is the caller graph for this function:

◆ shared_module()

const std::shared_ptr< WasmModule > & v8::internal::wasm::ModuleDecoder::shared_module ( ) const

Definition at line 148 of file module-decoder.cc.

Here is the caller graph for this function:

◆ StartCodeSection()

void v8::internal::wasm::ModuleDecoder::StartCodeSection ( WireBytesRef section_bytes)

Definition at line 167 of file module-decoder.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ impl_

std::unique_ptr<ModuleDecoderImpl> v8::internal::wasm::ModuleDecoder::impl_
private

Definition at line 202 of file module-decoder.h.


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