Home
last modified time | relevance | path

Searched refs:compiled (Results 1 – 25 of 92) sorted by relevance

1234

/wasmtime-44.0.1/crates/misc/component-async-tests/tests/scenario/
H A Dutil.rs122 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 Dprofiling.rs134 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 Drun.rs91 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 Dexamples-pre-compiling-wasm.md14 * **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 Dcontributing-conditional-compilation.md31 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 Dexamples-fast-execution.md58 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 Dcontributing-architecture.md120 * `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 Dexamples-serialize.md10 This example shows how to compile a module once and serialize its compiled representation to disk a…
H A Dwmemcheck.md31 compiled with WASI-SDK via
H A Dcli-options.md26 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 Dexamples-wasip2.md17 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 Dbackend.rs219 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 DREADME.md5 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 Dcranelift-fuzzgen.rs290 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 DCargo.toml28 # 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 Datomic_cas_const_addr.clif3 ;; We just want to verify that this can be compiled successfully.
/wasmtime-44.0.1/cranelift/isle/isle/
H A DREADME.md8 rules get compiled down into Rust source test that uses a tree of `match`
/wasmtime-44.0.1/cranelift/control/
H A DCargo.toml23 # Without this feature, a zero-sized dummy will be compiled
/wasmtime-44.0.1/cranelift/filetests/src/
H A Dfunction_runner.rs420 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 DREADME.md56 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 Dconditional-traps.wat5 ;; This function body should ideally get compiled down into a single `trapz`
/wasmtime-44.0.1/crates/wasi-preview1-component-adapter/provider/
H A DREADME.md58 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 Dcompile.rs570 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 DREADME.md38 the [wasi-nn] APIs and is compiled to the `wasm32-wasip1` target using the
/wasmtime-44.0.1/tests/disas/component-model/
H A Dunsafe-intrinsics-used.wat6 ;; Test that only the intrinsics that we actually use get compiled.

1234