mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
wasm module: globals, constant expressions and function reference types (#17950)
This commit is contained in:
@ -13,16 +13,22 @@ struct FunctionCallPatch {
|
||||
|
||||
type CallPatch = FunctionCallPatch | ImportCallPatch
|
||||
|
||||
struct Function {
|
||||
struct FunctionGlobalPatch {
|
||||
idx GlobalIndex
|
||||
pos int
|
||||
}
|
||||
|
||||
pub struct Function {
|
||||
tidx int
|
||||
idx int
|
||||
mut:
|
||||
call_patches []CallPatch
|
||||
label int
|
||||
export bool
|
||||
mod &Module
|
||||
code []u8
|
||||
locals []ValType
|
||||
call_patches []CallPatch
|
||||
global_patches []FunctionGlobalPatch
|
||||
label int
|
||||
export bool
|
||||
mod &Module = unsafe { nil }
|
||||
code []u8
|
||||
locals []ValType
|
||||
pub:
|
||||
name string
|
||||
}
|
||||
|
Reference in New Issue
Block a user