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

Method clear_context

cranelift/module/src/module.rs:857–860  ·  view source on GitHub ↗

Clear the given `Context` and reset it for use with a new function. This ensures that the `Context` is initialized with the default calling convention for the `TargetIsa`.

(&self, ctx: &mut Context)

Source from the content-addressed store, hash-verified

855 /// This ensures that the `Context` is initialized with the default calling
856 /// convention for the `TargetIsa`.
857 fn clear_context(&self, ctx: &mut Context) {
858 ctx.clear();
859 ctx.func.signature.call_conv = self.isa().default_call_conv();
860 }
861
862 /// Create a new empty `Signature` with the default calling convention for
863 /// the `TargetIsa`, to which parameter and return types can be added for

Callers

nothing calls this directly

Implementers 3

module.rscranelift/module/src/module.rs
backend.rscranelift/jit/src/backend.rs
backend.rscranelift/object/src/backend.rs

Calls 3

clearMethod · 0.45
default_call_convMethod · 0.45
isaMethod · 0.45

Tested by

no test coverage detected