6 #ifndef KAGOME_CORE_RUNTIME_WAVM_IMPL_MODULE_HPP 7 #define KAGOME_CORE_RUNTIME_WAVM_IMPL_MODULE_HPP 25 class IntrinsicResolver;
26 class InstanceEnvironmentFactory;
27 class CompartmentWrapper;
28 class IntrinsicModule;
33 static std::unique_ptr<ModuleImpl> compileFrom(
34 std::shared_ptr<CompartmentWrapper> compartment,
36 std::shared_ptr<IntrinsicModule> intrinsic_module,
37 std::shared_ptr<const InstanceEnvironmentFactory> env_factory,
38 gsl::span<const uint8_t> code,
41 outcome::result<std::shared_ptr<ModuleInstance>> instantiate()
45 ModuleImpl(std::shared_ptr<CompartmentWrapper> compartment,
46 std::shared_ptr<const IntrinsicModule> intrinsic_module,
47 std::shared_ptr<const InstanceEnvironmentFactory> env_factory,
48 std::shared_ptr<WAVM::Runtime::Module> module,
56 std::shared_ptr<WAVM::Runtime::Module>
module_;
63 #endif // KAGOME_CORE_RUNTIME_WAVM_IMPL_MODULE_HPP std::vector< Object * > ImportBindings
Global parameters for module instantiation. Currently contains only memory type that may be changed o...
std::shared_ptr< soralog::Logger > Logger
std::shared_ptr< const InstanceEnvironmentFactory > env_factory_
std::shared_ptr< CompartmentWrapper > compartment_
std::shared_ptr< const IntrinsicModule > intrinsic_module_
std::shared_ptr< WAVM::Runtime::Module > module_
const common::Hash256 code_hash_