Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Runtime::ModuleInstance Struct Reference

#include <RuntimePrivate.h>

Inheritance diagram for Runtime::ModuleInstance:
Collaboration diagram for Runtime::ModuleInstance:

Public Member Functions

 ModuleInstance (std::vector< FunctionInstance * > &&inFunctionImports, std::vector< TableInstance * > &&inTableImports, std::vector< MemoryInstance * > &&inMemoryImports, std::vector< GlobalInstance * > &&inGlobalImports)
 
 ~ModuleInstance () override
 
- Public Member Functions inherited from Runtime::GCObject
 GCObject (ObjectKind inKind)
 
 ~GCObject () override
 
- Public Member Functions inherited from Runtime::ObjectInstance
 ObjectInstance (IR::ObjectKind inKind)
 
virtual ~ObjectInstance ()
 

Public Attributes

std::map< std::string, ObjectInstance * > exportMap
 
std::vector< FunctionInstance * > functionDefs
 
std::vector< FunctionInstance * > functions
 
std::vector< TableInstance * > tables
 
std::vector< MemoryInstance * > memories
 
std::vector< GlobalInstance * > globals
 
MemoryInstancedefaultMemory
 
TableInstancedefaultTable
 
LLVMJIT::JITModuleBasejitModule
 
Uptr startFunctionIndex = UINTPTR_MAX
 
- Public Attributes inherited from Runtime::ObjectInstance
const IR::ObjectKind kind
 

Detailed Description

Definition at line 108 of file RuntimePrivate.h.

Constructor & Destructor Documentation

◆ ModuleInstance()

Runtime::ModuleInstance::ModuleInstance ( std::vector< FunctionInstance * > && inFunctionImports,
std::vector< TableInstance * > && inTableImports,
std::vector< MemoryInstance * > && inMemoryImports,
std::vector< GlobalInstance * > && inGlobalImports )
inline

Definition at line 126 of file RuntimePrivate.h.

132 : GCObject(ObjectKind::module)
133 , functions(inFunctionImports)
134 , tables(inTableImports)
135 , memories(inMemoryImports)
136 , globals(inGlobalImports)
137 , defaultMemory(nullptr)
138 , defaultTable(nullptr)
139 , jitModule(nullptr)
140 {}
GCObject(ObjectKind inKind)
Definition ObjectGC.cpp:26
MemoryInstance * defaultMemory
TableInstance * defaultTable
std::vector< GlobalInstance * > globals
LLVMJIT::JITModuleBase * jitModule
std::vector< TableInstance * > tables
std::vector< FunctionInstance * > functions
std::vector< MemoryInstance * > memories

◆ ~ModuleInstance()

Runtime::ModuleInstance::~ModuleInstance ( )
override

Member Data Documentation

◆ defaultMemory

MemoryInstance* Runtime::ModuleInstance::defaultMemory

Definition at line 119 of file RuntimePrivate.h.

◆ defaultTable

TableInstance* Runtime::ModuleInstance::defaultTable

Definition at line 120 of file RuntimePrivate.h.

◆ exportMap

std::map<std::string,ObjectInstance*> Runtime::ModuleInstance::exportMap

Definition at line 110 of file RuntimePrivate.h.

◆ functionDefs

std::vector<FunctionInstance*> Runtime::ModuleInstance::functionDefs

Definition at line 112 of file RuntimePrivate.h.

◆ functions

std::vector<FunctionInstance*> Runtime::ModuleInstance::functions

Definition at line 114 of file RuntimePrivate.h.

◆ globals

std::vector<GlobalInstance*> Runtime::ModuleInstance::globals

Definition at line 117 of file RuntimePrivate.h.

◆ jitModule

LLVMJIT::JITModuleBase* Runtime::ModuleInstance::jitModule

Definition at line 122 of file RuntimePrivate.h.

◆ memories

std::vector<MemoryInstance*> Runtime::ModuleInstance::memories

Definition at line 116 of file RuntimePrivate.h.

◆ startFunctionIndex

Uptr Runtime::ModuleInstance::startFunctionIndex = UINTPTR_MAX

Definition at line 124 of file RuntimePrivate.h.

◆ tables

std::vector<TableInstance*> Runtime::ModuleInstance::tables

Definition at line 115 of file RuntimePrivate.h.


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