module.h
Include dependency graph for module.h:
This graph shows which files directly or indirectly include module.h:
Enums
-
enum ModuleLoadResult
Values:
-
enumerator MODULE_LOAD_OK
-
enumerator MODULE_ERROR_FAILED_ALLOCATION
-
enumerator MODULE_LOAD_OK
Functions
-
size_t module_get_exported_functions_count(Module *this_module)
-
uint32_t module_search_exported_function(Module *this_module, AtomString func_name, int func_arity)
-
term module_get_exported_functions(Module *this_module, Heap *heap, GlobalContext *global)
-
Module *module_new_from_iff_binary(GlobalContext *global, const void *iff_binary, unsigned long size)
-
static inline AtomString module_get_atom_string_by_id(const Module *mod, int local_atom_id)
-
const struct ExportedFunction *module_resolve_function0(Module *mod, int import_table_index, struct UnresolvedFunctionCall *unresolved)
-
static inline const struct ExportedFunction *module_resolve_function(Module *mod, int import_table_index)
-
static inline void module_get_fun(const Module *this_module, int fun_index, uint32_t *label, uint32_t *arity, uint32_t *n_freeze)
-
bool module_get_function_from_label(Module *this_module, int label, AtomString *function_name, int *arity)
-
void module_insert_line_ref_offset(Module *mod, int line_ref, int offset)
-
int module_find_line(Module *mod, unsigned int offset)
- __attribute__
-
struct LiteralEntry
Public Members
-
uint32_t size
-
void const *data
-
uint32_t size
-
struct ModuleFilename
Public Members
-
uint8_t *data
-
size_t len
-
uint8_t *data
-
struct LineRefOffset
Collaboration diagram for LineRefOffset:
-
struct Module
Collaboration diagram for Module:
Public Members
-
GlobalContext *global
-
CodeChunk *code
-
void *export_table
-
void *local_table
-
void *atom_table
-
void *fun_table
-
void *str_table
-
size_t str_table_len
-
uint16_t *line_refs
-
struct ModuleFilename *filenames
-
struct ListHead line_ref_offsets
-
const struct ExportedFunction **imported_funcs
-
void **labels
-
void *literals_data
-
struct LiteralEntry *literals_table
-
int *local_atoms_to_global_table
-
void *module_platform_data
-
int module_index
-
int end_instruction_ii
-
unsigned int free_literals_data
-
Mutex *mutex
-
GlobalContext *global