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

Method make_context

cranelift/module/src/module.rs:847–851  ·  view source on GitHub ↗

Create a new `Context` initialized for use with this `Module`. This ensures that the `Context` is initialized with the default calling convention for the `TargetIsa`.

(&self)

Source from the content-addressed store, hash-verified

845 /// This ensures that the `Context` is initialized with the default calling
846 /// convention for the `TargetIsa`.
847 fn make_context(&self) -> Context {
848 let mut ctx = Context::new();
849 ctx.func.signature.call_conv = self.isa().default_call_conv();
850 ctx
851 }
852
853 /// Clear the given `Context` and reset it for use with a new function.
854 ///

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

newFunction · 0.50
default_call_convMethod · 0.45
isaMethod · 0.45

Tested by

no test coverage detected