Kagome
Polkadot Runtime Engine in C++17
kagome::runtime::wavm::IntrinsicModuleInstance Class Referencefinal

#include <intrinsic_module_instance.hpp>

Collaboration diagram for kagome::runtime::wavm::IntrinsicModuleInstance:

Public Member Functions

 IntrinsicModuleInstance (WAVM::Runtime::GCPointer< WAVM::Runtime::Instance > module_instance, std::shared_ptr< const CompartmentWrapper > compartment, WAVM::IR::MemoryType intrinsic_memory_type)
 
 ~IntrinsicModuleInstance ()
 
WAVM::Runtime::Memory * getExportedMemory () const
 
WAVM::Runtime::Function * getExportedFunction (const std::string &name, WAVM::IR::FunctionType const &type) const
 

Private Attributes

WAVM::Runtime::GCPointer< WAVM::Runtime::Instance > module_instance_
 
const std::shared_ptr< const CompartmentWrappercompartment_
 
WAVM::IR::MemoryType intrinsic_memory_type_
 

Detailed Description

A wrapper around WAVM's intrinsic module instance Exposes the host memory and Host API functions

Definition at line 29 of file intrinsic_module_instance.hpp.

Constructor & Destructor Documentation

kagome::runtime::wavm::IntrinsicModuleInstance::IntrinsicModuleInstance ( WAVM::Runtime::GCPointer< WAVM::Runtime::Instance >  module_instance,
std::shared_ptr< const CompartmentWrapper compartment,
WAVM::IR::MemoryType  intrinsic_memory_type 
)

Definition at line 16 of file intrinsic_module_instance.cpp.

kagome::runtime::wavm::IntrinsicModuleInstance::~IntrinsicModuleInstance ( )
inline

Definition at line 36 of file intrinsic_module_instance.hpp.

Member Function Documentation

WAVM::Runtime::Function * kagome::runtime::wavm::IntrinsicModuleInstance::getExportedFunction ( const std::string &  name,
WAVM::IR::FunctionType const &  type 
) const

Definition at line 33 of file intrinsic_module_instance.cpp.

WAVM::Runtime::Memory * kagome::runtime::wavm::IntrinsicModuleInstance::getExportedMemory ( ) const

Definition at line 27 of file intrinsic_module_instance.cpp.

Member Data Documentation

const std::shared_ptr<const CompartmentWrapper> kagome::runtime::wavm::IntrinsicModuleInstance::compartment_
private

Definition at line 48 of file intrinsic_module_instance.hpp.

WAVM::IR::MemoryType kagome::runtime::wavm::IntrinsicModuleInstance::intrinsic_memory_type_
private

Definition at line 49 of file intrinsic_module_instance.hpp.

WAVM::Runtime::GCPointer<WAVM::Runtime::Instance> kagome::runtime::wavm::IntrinsicModuleInstance::module_instance_
private

Definition at line 47 of file intrinsic_module_instance.hpp.


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