diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-01-23 13:56:31 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-01-23 13:56:31 +0100 |
| commit | 1617d7a24fc454130215336b986c0607bec374de (patch) | |
| tree | ef083f17c0dae8b9e8c50381783e736506e835cf /crates/types | |
| parent | 5d7f3bca95afb465b12b699df031b3f6139982da (diff) | |
core: attach types to functions
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types')
| -rw-r--r-- | crates/types/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs index 96866d3..87581e1 100644 --- a/crates/types/src/lib.rs +++ b/crates/types/src/lib.rs @@ -42,7 +42,7 @@ pub struct TinyWasmModule { pub start_func: Option<FuncAddr>, /// The functions of the WebAssembly module. - pub funcs: Box<[WasmFunction]>, + pub funcs: Box<[(u32, WasmFunction)]>, /// The types of the WebAssembly module. pub func_types: Box<[FuncType]>, @@ -355,9 +355,9 @@ impl FuncType { #[derive(Debug, Clone)] pub struct WasmFunction { - pub ty_addr: TypeAddr, pub instructions: Box<[Instruction]>, pub locals: Box<[ValType]>, + pub ty: FuncType, } /// A WebAssembly Module Export |
