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

Method save_context

crates/winch/src/compiler.rs:64–67  ·  view source on GitHub ↗

Save a compilation context.

(&self, mut context: CompilationContext, allocs: FuncValidatorAllocations)

Source from the content-addressed store, hash-verified

62
63 /// Save a compilation context.
64 fn save_context(&self, mut context: CompilationContext, allocs: FuncValidatorAllocations) {
65 context.allocations = allocs;
66 self.contexts.lock().unwrap().push(context);
67 }
68
69 /// Emit unwind info into the [`CompiledFunction`].
70 fn emit_unwind_info(

Callers 1

compile_functionMethod · 0.80

Calls 3

pushMethod · 0.45
unwrapMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected