| /wasmtime-44.0.1/crates/misc/component-async-tests/tests/scenario/ |
| H A D | util.rs | 122 if let Ok(compiled) = fs::read(cwasm_path).await { in make_component() 123 return Ok(compiled); in make_component() 136 let compiled = compile(engine, components).await?; in make_component() localVariable 138 fs::write(cwasm_path, &compiled).await?; in make_component() 140 Ok(compiled) in make_component() 146 let compiled = { in make_component() localVariable 164 Ok(unsafe { Component::deserialize(&engine, &*compiled)? }) in make_component()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | profiling.rs | 134 let compiled = module.compiled_module(); in new() localVariable 139 let start = compiled.finished_function_ranges().next()?.1.start; in new() 140 let end = compiled.finished_function_ranges().last()?.1.end; in new() 265 let compiled = module.compiled_module(); in module_symbols() localVariable 271 let loc = compiled.func_loc(defined_idx); in module_symbols() 272 let func_idx = compiled.module().func_index(defined_idx); in module_symbols() 276 compiled.func_name(func_idx), in module_symbols()
|
| /wasmtime-44.0.1/cranelift/src/ |
| H A D | run.rs | 91 let compiled = tfc.compile()?; in run_file_contents() localVariable 96 let trampoline = compiled.get_trampoline(&func).unwrap(); in run_file_contents() 99 .run(|_, args| Ok(trampoline.call(&compiled, args))) in run_file_contents()
|
| /wasmtime-44.0.1/docs/ |
| H A D | examples-pre-compiling-wasm.md | 14 * **Less Memory Usage:** Pre-compiled Wasm programs can be lazily `mmap`ed from 17 resident. This means that running pre-compiled Wasm programs lowers overall 21 *only* run Wasm programs that were pre-compiled elsewhere. These builds will 28 and with only support for running pre-compiled Wasm programs, can be useful 52 This must be done with a Wasmtime build that can run pre-compiled Wasm programs,
|
| H A D | contributing-conditional-compilation.md | 31 compiled with `cargo test` (or `rustc`'s `--test` flag). There are many other 35 that the code was compiled for. 37 that the code was compiled for. 138 In addition to being repetitive when defining conditionally compiled code 139 there's also a risk of being quite repetitive when using conditionally compiled 140 code as well. In its most basic form any usage of a conditionally compiled piece 162 Conditionally compiled code does not always interact well with ecosystem tooling 193 compiled code. Much of these are meant to address some of the hazards above. 204 1. **Separate files** - try to put conditionally compiled code into separate 239 conditionally compiled parts are tested one way or another. [all …]
|
| H A D | examples-fast-execution.md | 58 that pre-compiled Wasm program on another machine, then during compilation 60 the machine on which you actually execute the pre-compiled Wasm 62 architecture that will run the pre-compiled Wasm programs can have a large
|
| H A D | contributing-architecture.md | 120 * `wasmtime::Module` - this is the representation of a compiled WebAssembly 130 functions themselves are actually compiled. This holds the internal type 157 No inter-procedural analysis is done and each function is compiled as its 189 Note that the property of sharing a module's compiled code across all 190 instantiations has interesting implications on what the compiled code can 195 many stores its same function type may take on many values, so the compiled 197 information later). The general gist though is that compiled code leans 207 is compiled with native ABIs (e.g. params/results in registers according to 226 Each compiled module contains its own set of trampolines, and if two compiled 253 Once a module has been compiled it's typically then instantiated to actually [all …]
|
| H A D | examples-serialize.md | 10 This example shows how to compile a module once and serialize its compiled representation to disk a…
|
| H A D | wmemcheck.md | 31 compiled with WASI-SDK via
|
| H A D | cli-options.md | 26 module. This means that the module will be compiled to native code, 206 a "compiled wasm" (.cwasm) file. 208 The `wasmtime run` subcommand can then be used to run a AOT-compiled WebAssembly module: 215 AOT-compiled modules can be run from hosts that are compatible with the target
|
| H A D | examples-wasip2.md | 17 For this WASI example, this Hello World program is compiled to a WebAssembly component using the WA…
|
| /wasmtime-44.0.1/cranelift/jit/src/ |
| H A D | backend.rs | 219 Some(compiled) => return compiled.ptr(), in get_address() 228 Some(compiled) => return compiled.ptr(), in get_address() 253 Some(compiled) => return compiled.ptr().wrapping_add(*offset as usize), in get_address() 286 let compiled = info in get_finalized_data() localVariable 290 (compiled.ptr(), compiled.size()) in get_finalized_data()
|
| /wasmtime-44.0.1/crates/wasi-preview1-component-adapter/byte-array-literals/ |
| H A D | README.md | 5 source code, but the resulting binary (when compiled for 10 data section, at least when compiled with opt-level='s' on today's rustc
|
| /wasmtime-44.0.1/fuzz/fuzz_targets/ |
| H A D | cranelift-fuzzgen.rs | 290 compiled: &CompiledTestFile, in run_in_host() 294 let res = trampoline.call(compiled, args); in run_in_host() 417 let compiled = compiler.compile().unwrap(); localVariable 418 let trampoline = compiled.get_trampoline(testcase.main()).unwrap(); 420 run_test_inputs(&testcase, |args| run_in_host(&compiled, &trampoline, args));
|
| /wasmtime-44.0.1/crates/test-util/ |
| H A D | Cargo.toml | 28 # NB: this crate is compiled both in as a dependency of a proc-macro and as a 30 # compiled twice. Try to ensure "big" dependencies are optional and feature
|
| /wasmtime-44.0.1/cranelift/filetests/filetests/isa/x64/ |
| H A D | atomic_cas_const_addr.clif | 3 ;; We just want to verify that this can be compiled successfully.
|
| /wasmtime-44.0.1/cranelift/isle/isle/ |
| H A D | README.md | 8 rules get compiled down into Rust source test that uses a tree of `match`
|
| /wasmtime-44.0.1/cranelift/control/ |
| H A D | Cargo.toml | 23 # Without this feature, a zero-sized dummy will be compiled
|
| /wasmtime-44.0.1/cranelift/filetests/src/ |
| H A D | function_runner.rs | 420 pub fn call(&self, compiled: &CompiledTestFile, arguments: &[DataValue]) -> Vec<DataValue> { in call() 427 COMPILED_TEST_FILE.set(compiled as *const _); in call() 876 let compiled = compiler.compile().unwrap(); in nop() localVariable 877 let trampoline = compiled.get_trampoline(&function).unwrap(); in nop() 878 let returned = trampoline.call(&compiled, &[]); in nop()
|
| /wasmtime-44.0.1/fuzz/ |
| H A D | README.md | 56 the same results when compiled to the host and when using the Cranelift 59 to its source, yielding a function A', and checks that A compiled + 60 incremental compilation generates the same machine code as if A' was compiled
|
| /wasmtime-44.0.1/tests/disas/ |
| H A D | conditional-traps.wat | 5 ;; This function body should ideally get compiled down into a single `trapz`
|
| /wasmtime-44.0.1/crates/wasi-preview1-component-adapter/provider/ |
| H A D | README.md | 58 Code compiled to WebAssembly as described by the [base WebAssembly Spec][wasm-spec] is considered a… 62 To standardize underlying system interoperability (ex. reading files, system time) in code compiled…
|
| /wasmtime-44.0.1/crates/wasmtime/src/ |
| H A D | compile.rs | 570 let mut compiled = f(compiler)?; in compile() localVariable 572 &mut compiled.function, in compile() 573 compiled.func_body.take(), in compile() 574 &compiled.symbol, in compile() 576 Ok(compiled) in compile()
|
| /wasmtime-44.0.1/crates/wasi-nn/ |
| H A D | README.md | 38 the [wasi-nn] APIs and is compiled to the `wasm32-wasip1` target using the
|
| /wasmtime-44.0.1/tests/disas/component-model/ |
| H A D | unsafe-intrinsics-used.wat | 6 ;; Test that only the intrinsics that we actually use get compiled.
|