6 #ifndef KAGOME_CORE_RUNTIME_WAVM_IMPL_INTRINSIC_MODULE_INSTANCE_HPP 7 #define KAGOME_CORE_RUNTIME_WAVM_IMPL_INTRINSIC_MODULE_INSTANCE_HPP 11 #include <WAVM/IR/Types.h> 12 #include <WAVM/Runtime/Intrinsics.h> 13 #include <WAVM/Runtime/Runtime.h> 22 class CompartmentWrapper;
32 WAVM::Runtime::GCPointer<WAVM::Runtime::Instance> module_instance,
33 std::shared_ptr<const CompartmentWrapper> compartment,
34 WAVM::IR::MemoryType intrinsic_memory_type);
39 module_instance_ =
nullptr;
42 WAVM::Runtime::Memory *getExportedMemory()
const;
43 WAVM::Runtime::Function *getExportedFunction(
44 const std::string &name, WAVM::IR::FunctionType
const &type)
const;
54 #endif // KAGOME_CORE_RUNTIME_WAVM_IMPL_INTRINSIC_MODULE_INSTANCE_HPP
~IntrinsicModuleInstance()
const std::shared_ptr< const CompartmentWrapper > compartment_
WAVM::Runtime::GCPointer< WAVM::Runtime::Instance > module_instance_
WAVM::IR::MemoryType intrinsic_memory_type_