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

Method wasm_tail_call

crates/wasmtime/src/config.rs:891–894  ·  view source on GitHub ↗

Configures whether the WebAssembly tail calls proposal will be enabled for compilation or not. The [WebAssembly tail calls proposal] introduces the `return_call` and `return_call_indirect` instructions. These instructions allow for Wasm programs to implement some recursive algorithms with *O(1)* stack space usage. This is `true` by default except when the Winch compiler is enabled. [WebAssembly

(&mut self, enable: bool)

Source from the content-addressed store, hash-verified

889 ///
890 /// [WebAssembly tail calls proposal]: https://github.com/WebAssembly/tail-call
891 pub fn wasm_tail_call(&mut self, enable: bool) -> &mut Self {
892 self.wasm_features(WasmFeatures::TAIL_CALL, enable);
893 self
894 }
895
896 /// Configures whether the WebAssembly [branch-hinting] proposal is enabled.
897 ///

Callers 4

ref_types_moduleFunction · 0.45
test_tail_call_defaultFunction · 0.45
apply_test_configFunction · 0.45
newMethod · 0.45

Calls 1

wasm_featuresMethod · 0.80

Tested by 1

test_tail_call_defaultFunction · 0.36