Kagome
Polkadot Runtime Engine in C++17
intrinsic_functions.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <stack>
9 
10 #include <WAVM/IR/Module.h>
11 #include <WAVM/IR/Types.h>
12 #include <WAVM/IR/Value.h>
13 #include <WAVM/Runtime/Intrinsics.h>
14 #include <WAVM/Runtime/Runtime.h>
15 
16 #include "host_api/host_api.hpp"
17 #include "log/logger.hpp"
19 
20 namespace kagome::runtime {}
21 
22 namespace kagome::runtime::wavm {
23 
24  class IntrinsicModule;
25 
26  std::shared_ptr<host_api::HostApi> peekHostApi();
27 
29  std::shared_ptr<ModuleInstance> borrowed_runtime_instance);
31  std::shared_ptr<ModuleInstance> peekBorrowedRuntimeInstance();
32 
33  extern log::Logger logger;
34 
35  void registerHostApiMethods(IntrinsicModule &module);
36 
37 } // namespace kagome::runtime::wavm
std::shared_ptr< ModuleInstance > peekBorrowedRuntimeInstance()
std::shared_ptr< soralog::Logger > Logger
Definition: logger.hpp:23
std::shared_ptr< host_api::HostApi > peekHostApi()
void registerHostApiMethods(IntrinsicModule &module)
void pushBorrowedRuntimeInstance(std::shared_ptr< ModuleInstance > borrowed_runtime_instance)