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

Method name_builtin

winch/codegen/src/codegen/env.rs:368–372  ·  view source on GitHub ↗

Creates a name to reference the `builtin` provided.

(&mut self, builtin: BuiltinFunctionIndex)

Source from the content-addressed store, hash-verified

366
367 /// Creates a name to reference the `builtin` provided.
368 pub fn name_builtin(&mut self, builtin: BuiltinFunctionIndex) -> UserExternalNameRef {
369 let key = FuncKey::WasmToBuiltinTrampoline(builtin);
370 let (namespace, index) = key.into_raw_parts();
371 self.intern_name(UserExternalName { namespace, index })
372 }
373
374 /// Creates a name to reference the wasm function `index` provided.
375 pub fn name_wasm(&mut self, def_func: DefinedFuncIndex) -> UserExternalNameRef {

Callers 1

lower_builtinMethod · 0.80

Calls 2

intern_nameMethod · 0.80
into_raw_partsMethod · 0.45

Tested by

no test coverage detected