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

Function isa

cranelift/jit/tests/basic.rs:10–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8use cranelift_module::*;
9
10fn isa() -> Option<OwnedTargetIsa> {
11 let mut flag_builder = settings::builder();
12 flag_builder.set("use_colocated_libcalls", "false").unwrap();
13 // FIXME set back to true once the x64 backend supports it.
14 flag_builder.set("is_pic", "false").unwrap();
15 let isa_builder = cranelift_native::builder().ok()?;
16 isa_builder.finish(settings::Flags::new(flag_builder)).ok()
17}
18
19#[test]
20fn error_on_incompatible_sig_in_declare_function() {

Callers 4

libcall_functionFunction · 0.85
empty_data_objectFunction · 0.85

Calls 6

builderFunction · 0.50
newFunction · 0.50
unwrapMethod · 0.45
setMethod · 0.45
okMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected