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

Function builder

crates/winch/src/builder.rs:16–24  ·  view source on GitHub ↗
(triple: Option<Triple>)

Source from the content-addressed store, hash-verified

14}
15
16pub fn builder(triple: Option<Triple>) -> Result<Box<dyn CompilerBuilder>> {
17 let inner = IsaBuilder::new(triple.clone(), |triple| isa::lookup(triple))?;
18 let cranelift = wasmtime_cranelift::builder(triple)?;
19 Ok(Box::new(Builder {
20 inner,
21 cranelift,
22 tunables: None,
23 }))
24}
25
26impl CompilerBuilder for Builder {
27 fn triple(&self) -> &target_lexicon::Triple {

Callers 15

connectMethod · 0.50
defaultMethod · 0.50
run_testFunction · 0.50
run_testFunction · 0.50
keyvalue_mainFunction · 0.50
wasm_bench_createFunction · 0.50
loadMethod · 0.50
newMethod · 0.50
build_compilerMethod · 0.50
run_testFunction · 0.50
try_fromMethod · 0.50

Calls 4

OkFunction · 0.85
newFunction · 0.50
lookupFunction · 0.50
cloneMethod · 0.45

Tested by 15

run_testFunction · 0.40
run_testFunction · 0.40
keyvalue_mainFunction · 0.40
newMethod · 0.40
run_testFunction · 0.40
test_response_from_httpFunction · 0.40
storeFunction · 0.40
run_wasi_httpFunction · 0.40
wasi_http_proxy_testsFunction · 0.40
do_wasi_http_hash_allFunction · 0.40
wasi_http_double_echoFunction · 0.40