Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::webassembly::eosvmoc::eosvmoc_instantiated_module Class Reference
Inheritance diagram for sysio::chain::webassembly::eosvmoc::eosvmoc_instantiated_module:
Collaboration diagram for sysio::chain::webassembly::eosvmoc::eosvmoc_instantiated_module:

Public Member Functions

 eosvmoc_instantiated_module (const digest_type &code_hash, const uint8_t &vm_version, eosvmoc_runtime &wr)
 
 ~eosvmoc_instantiated_module ()
 
void apply (apply_context &context) override
 
- Public Member Functions inherited from sysio::chain::wasm_instantiated_module_interface
virtual void fast_shutdown ()
 
virtual ~wasm_instantiated_module_interface ()
 

Public Attributes

const digest_type _code_hash
 
const uint8_t _vm_version
 
eosvmoc_runtime_eosvmoc_runtime
 

Detailed Description

Definition at line 13 of file sys-vm-oc.cpp.

Constructor & Destructor Documentation

◆ eosvmoc_instantiated_module()

sysio::chain::webassembly::eosvmoc::eosvmoc_instantiated_module::eosvmoc_instantiated_module ( const digest_type & code_hash,
const uint8_t & vm_version,
eosvmoc_runtime & wr )
inline

◆ ~eosvmoc_instantiated_module()

sysio::chain::webassembly::eosvmoc::eosvmoc_instantiated_module::~eosvmoc_instantiated_module ( )
inline

Definition at line 23 of file sys-vm-oc.cpp.

23 {
25 }
void free_code(const digest_type &code_id, const uint8_t &vm_version)
Here is the call graph for this function:

Member Function Documentation

◆ apply()

void sysio::chain::webassembly::eosvmoc::eosvmoc_instantiated_module::apply ( apply_context & context)
inlineoverridevirtual

Implements sysio::chain::wasm_instantiated_module_interface.

Definition at line 27 of file sys-vm-oc.cpp.

27 {
28 const code_descriptor* const cd = _eosvmoc_runtime.cc.get_descriptor_for_code_sync(_code_hash, _vm_version);
29 SYS_ASSERT(cd, wasm_execution_error, "SYS VM OC instantiation failed");
30
32 }
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
Definition exceptions.hpp:7
const code_descriptor *const get_descriptor_for_code_sync(const digest_type &code_id, const uint8_t &vm_version)
void execute(const code_descriptor &code, memory &mem, apply_context &context)
Definition executor.cpp:152
Here is the call graph for this function:

Member Data Documentation

◆ _code_hash

const digest_type sysio::chain::webassembly::eosvmoc::eosvmoc_instantiated_module::_code_hash

Definition at line 34 of file sys-vm-oc.cpp.

◆ _eosvmoc_runtime

eosvmoc_runtime& sysio::chain::webassembly::eosvmoc::eosvmoc_instantiated_module::_eosvmoc_runtime

Definition at line 36 of file sys-vm-oc.cpp.

◆ _vm_version

const uint8_t sysio::chain::webassembly::eosvmoc::eosvmoc_instantiated_module::_vm_version

Definition at line 35 of file sys-vm-oc.cpp.


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