MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / global_section

Function global_section

crates/wizer/src/parse.rs:97–105  ·  view source on GitHub ↗
(
    module: &mut ModuleContext<'a>,
    globals: wasmparser::GlobalSectionReader<'a>,
)

Source from the content-addressed store, hash-verified

95}
96
97fn global_section<'a>(
98 module: &mut ModuleContext<'a>,
99 globals: wasmparser::GlobalSectionReader<'a>,
100) -> wasmtime::Result<()> {
101 for g in globals {
102 module.push_defined_global(g?.ty);
103 }
104 Ok(())
105}
106
107fn export_section<'a>(
108 module: &mut ModuleContext<'a>,

Callers 1

parse_withFunction · 0.85

Calls 2

OkFunction · 0.85
push_defined_globalMethod · 0.80

Tested by

no test coverage detected