pub(super) struct EmitWasmPass<'a> {
pub(super) mir: &'a MirProgram,
pub(super) source_text: &'a str,
}Expand description
Emit WASM/WAT artifacts from MIR.
This pass computes a function-line map from source text and emits browser artifacts, including WAT, optional WASM bytes, and diagnostics.
Input: MirProgram and source text.
Output: codegen::wasm::WasmArtifacts.
Pass name: codegen.wasm.emit_program.
Fields§
§mir: &'a MirProgramMIR program to emit.
source_text: &'a strSource text used to derive function line map.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EmitWasmPass<'a>
impl<'a> RefUnwindSafe for EmitWasmPass<'a>
impl<'a> Send for EmitWasmPass<'a>
impl<'a> Sync for EmitWasmPass<'a>
impl<'a> Unpin for EmitWasmPass<'a>
impl<'a> UnwindSafe for EmitWasmPass<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more