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

Function store_with_padding

tests/all/relocs.rs:22–34  ·  view source on GitHub ↗
(padding: usize)

Source from the content-addressed store, hash-verified

20};
21
22fn store_with_padding(padding: usize) -> Result<Store<()>> {
23 let mut config = Config::new();
24 // This is an internal debug-only setting specifically recognized for
25 // basically just this set of tests.
26 unsafe {
27 config.cranelift_flag_set(
28 "wasmtime_linkopt_padding_between_functions",
29 &padding.to_string(),
30 );
31 }
32 let engine = Engine::new(&config)?;
33 Ok(Store::new(&engine, ()))
34}
35
36#[test]
37fn forward_call_works() -> Result<()> {

Callers 3

forward_call_worksFunction · 0.85
backwards_call_worksFunction · 0.85
mixedFunction · 0.85

Calls 4

OkFunction · 0.85
newFunction · 0.50
cranelift_flag_setMethod · 0.45
to_stringMethod · 0.45

Tested by 3

forward_call_worksFunction · 0.68
backwards_call_worksFunction · 0.68
mixedFunction · 0.68