Module wasm_encoder::reencode::utils
source · Available on crate feature
wasmparser
only.Functions§
- Converts the input
section
given from thewasmparser
crate into an encoded custom section. - A hook method that is called inside
Reencode::parse_core_module
before and after every non-custom core wasm section. - Create a new
crate::Function
by parsing the locals declarations from the providedwasmparser::FunctionBody
. - Parses the input
section
given from thewasmparser
crate and adds all the code to thecode
section. - Parses the input
section
given from thewasmparser
crate and adds the custom section to themodule
. - Parses a single
wasmparser::Data
and adds it to thedata
section. - Parses the input
section
given from thewasmparser
crate and adds all the data to thedata
section. - Parses the single
wasmparser::Element
provided and adds it to theelement
section. - Parses the input
section
given from thewasmparser
crate and adds all the elements to theelement
section. - Parses the single
wasmparser::Export
provided and adds it to theexports
section. - Parses the input
section
given from thewasmparser
crate and adds all the exports to theexports
section. - Parses a single
wasmparser::FunctionBody
and adds it to thecode
section. - Parses the input
section
given from thewasmparser
crate and adds all the functions to thefunctions
section. - Parses the single
wasmparser::Global
provided and adds it to theglobals
section. - Parses the input
section
given from thewasmparser
crate and adds all the globals to theglobals
section. - Parses the single
wasmparser::Import
provided and adds it to theimport
section. - Parses the input
section
given from thewasmparser
crate and adds all the imports to theimport
section. - Parses a single instruction from
reader
and adds it tofunction
. - Parses the input
section
given from thewasmparser
crate and adds all the memories to thememories
section. - Parses a single
wasmparser::RecGroup
and adds it to thetypes
section. - Parses a single
wasmparser::Table
and adds it to thetables
section. - Parses the input
section
given from thewasmparser
crate and adds all the tables to thetables
section. - Parses the input
section
given from thewasmparser
crate and adds all the tags to thetags
section. - Parses the input
section
given from thewasmparser
crate and adds all the types to thetypes
section.