| /wasmtime-44.0.1/examples/fib-debug/ |
| H A D | main.c | 81 wasm_byte_vec_t binary; in main() local 82 wasm_byte_vec_new_uninitialized(&binary, file_size); in main() 83 if (fread(binary.data, file_size, 1, file) != 1) { in main() 93 wasmtime_module_new(engine, (uint8_t *)binary.data, binary.size, &module); in main() 96 wasm_byte_vec_delete(&binary); in main()
|
| /wasmtime-44.0.1/ |
| H A D | .gitattributes | 5 *.png binary 6 *.ico binary 7 *.wasm binary
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | module.rs | 36 binary: &wasm_byte_vec_t, in wasm_module_new() 38 match Module::from_binary(store.store.context().engine(), binary.as_slice()) { in wasm_module_new() 48 binary: &wasm_byte_vec_t, in wasm_module_validate() 50 Module::validate(store.store.context().engine(), binary.as_slice()).is_ok() in wasm_module_validate() 121 binary: &wasm_byte_vec_t, in wasm_module_deserialize() 123 match Module::deserialize(store.store.context().engine(), binary.as_slice()) { in wasm_module_deserialize() 180 let binary = crate::slice_from_raw_parts(wasm, len); in wasmtime_module_validate() localVariable 181 handle_result(Module::validate(&engine.engine, binary), |()| {}) in wasmtime_module_validate()
|
| H A D | wasi.rs | 123 binary: &mut wasm_byte_vec_t, in wasi_config_set_stdin_bytes() 125 let binary = binary.take(); in wasi_config_set_stdin_bytes() localVariable 126 let binary = wasmtime_wasi::p2::pipe::MemoryInputPipe::new(binary); in wasi_config_set_stdin_bytes() localVariable 127 config.builder.stdin(binary); in wasi_config_set_stdin_bytes()
|
| /wasmtime-44.0.1/cranelift/codegen/meta/src/shared/ |
| H A D | instructions.rs | 441 &formats.binary, in define_simd_lane_access() 465 &formats.binary, in define_simd_lane_access() 536 &formats.binary, in define_simd_arithmetic() 548 &formats.binary, in define_simd_arithmetic() 560 &formats.binary, in define_simd_arithmetic() 572 &formats.binary, in define_simd_arithmetic() 596 &formats.binary, in define_simd_arithmetic() 612 &formats.binary, in define_simd_arithmetic() 630 &formats.binary, in define_simd_arithmetic() 646 &formats.binary, in define_simd_arithmetic() [all …]
|
| /wasmtime-44.0.1/examples/ |
| H A D | multi.c | 85 wasm_byte_vec_t binary; in main() local 86 wasmtime_error_t *error = wasmtime_wat2wasm(wat.data, wat.size, &binary); in main() 95 wasmtime_module_new(engine, (uint8_t *)binary.data, binary.size, &module); in main() 98 wasm_byte_vec_delete(&binary); in main()
|
| H A D | threads.c | 144 wasm_byte_vec_t binary; in main() local 145 wasmtime_error_t *error = wasmtime_wat2wasm(wat.data, wat.size, &binary); in main() 152 own wasm_module_t *module = wasm_module_new(store, &binary); in main() 158 wasm_byte_vec_delete(&binary); in main()
|
| H A D | memory.c | 146 wasm_byte_vec_t binary; in main() local 147 wasmtime_error_t *error = wasmtime_wat2wasm(wat.data, wat.size, &binary); in main() 156 wasmtime_module_new(engine, (uint8_t *)binary.data, binary.size, &module); in main() 159 wasm_byte_vec_delete(&binary); in main()
|
| H A D | multimemory.c | 149 wasm_byte_vec_t binary; in main() local 150 wasmtime_error_t *error = wasmtime_wat2wasm(wat.data, wat.size, &binary); in main() 159 wasmtime_module_new(engine, (uint8_t *)binary.data, binary.size, &module); in main() 162 wasm_byte_vec_delete(&binary); in main()
|
| /wasmtime-44.0.1/tests/misc_testsuite/ |
| H A D | empty.wast | 5 (module binary 18 (module binary 33 (module binary
|
| H A D | no-panic-on-invalid.wast | 3 (module binary
|
| /wasmtime-44.0.1/cranelift/interpreter/src/ |
| H A D | step.rs | 640 binary(DataValueExt::udiv, inc, two)? in step() 642 Opcode::Iadd => binary(DataValueExt::add, arg(0), arg(1))?, in step() 655 Opcode::Isub => binary(DataValueExt::sub, arg(0), arg(1))?, in step() 685 Opcode::Imul => binary(DataValueExt::mul, arg(0), arg(1))?, in step() 802 Opcode::Band => binary(DataValueExt::and, arg(0), arg(1))?, in step() 803 Opcode::Bor => binary(DataValueExt::or, arg(0), arg(1))?, in step() 804 Opcode::Bxor => binary(DataValueExt::xor, arg(0), arg(1))?, in step() 866 Opcode::Fadd => binary(DataValueExt::add, arg(0), arg(1))?, in step() 867 Opcode::Fsub => binary(DataValueExt::sub, arg(0), arg(1))?, in step() 868 Opcode::Fmul => binary(DataValueExt::mul, arg(0), arg(1))?, in step() [all …]
|
| /wasmtime-44.0.1/crates/wizer/.github/actions/binary-compatible-builds/ |
| H A D | README.md | 1 # binary-compatible-builds 4 Rust projects to be "more binary compatible". On Windows and macOS this
|
| /wasmtime-44.0.1/crates/wasi-preview1-component-adapter/verify/ |
| H A D | README.md | 3 The `wasi-preview1-component-adapter` crate must compile to a wasm binary that 7 There are a limited set of wasm sections allowed in the binary, and a limited
|
| /wasmtime-44.0.1/tests/all/component_model/ |
| H A D | aot.rs | 174 let binary = wat::parse_str( in truncated_component_binaries_dont_panic() localVariable 205 for i in 1..binary.len() - 1 { in truncated_component_binaries_dont_panic() 206 let _ = Component::from_binary(&engine, &binary[0..i]); in truncated_component_binaries_dont_panic()
|
| /wasmtime-44.0.1/docs/ |
| H A D | introduction.md | 6 [WebAssembly] (abbreviated Wasm) is a binary instruction format that is designed 9 the textual representation of the binary files, which have a `.wat` file 16 [The Component Model] is a Wasm architecture that provides a binary format for
|
| H A D | examples-minimal.md | 3 Wasmtime embeddings may wish to optimize for binary size and runtime footprint 19 > release of Wasmtime][dev] where the `min/lib/libwasmtime.so` binary 77 At this point the next line of tricks to apply to minimize binary size are 98 pass this flag since by the end it will produce a smaller binary than the 248 to a 700K binary for the `libwasmtime.so` binary of the C API. Similar steps 253 This is a listing of some example sources of binary size. Some sources of binary 261 binary will often be much smaller than `libwasmtime.so`. Similarly 272 project to produce a smaller executable. Just how much of the final binary 289 contributes ~200k of binary size to the final executable which would likely 295 binary footprint but this comes at a cost of the final binary not [all …]
|
| H A D | contributing-implementing-wasm-proposals.md | 12 * [ ] [`wasmparser`] - binary decoding and validation 13 * [ ] [`wasmprinter`] - binary-to-text 14 * [ ] [`wasm-encoder`] - binary encoding
|
| /wasmtime-44.0.1/examples/min-platform/src/ |
| H A D | main.rs | 32 let binary = std::fs::read(&embedding_so_path)?; in main() localVariable 33 let object = object::File::parse(&binary[..])?; in main()
|
| /wasmtime-44.0.1/crates/c-api/src/component/ |
| H A D | component.rs | 59 let binary = unsafe { crate::slice_from_raw_parts(buf, len) }; in wasmtime_component_deserialize() localVariable 61 unsafe { Component::deserialize(&engine.engine, binary) }, in wasmtime_component_deserialize()
|
| /wasmtime-44.0.1/crates/wasi-preview1-component-adapter/provider/ |
| H A D | README.md | 19 For example, if you wanted to write the adapter bytes back into a `.wasm` binary: 68 …re WebAssembly binaries that contain logic that can take any WebAssembly binary implemented in ter… 70 This crate contains the binary content of those the adapter WebAssembly binaries, made accessible a…
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | traps.rs | 371 let binary = wat::parse_str( in trap_start_function_import() localVariable 380 let module = Module::new(store.engine(), &binary)?; in trap_start_function_import() 391 let binary = wat::parse_str( in rust_panic_import() localVariable 402 let module = Module::new(store.engine(), &binary)?; in rust_panic_import() 430 let binary = wat::parse_str( in rust_catch_panic_import() localVariable 445 let module = Module::new(store.engine(), &binary)?; in rust_catch_panic_import() 482 let binary = wat::parse_str( in rust_panic_start_function() localVariable 491 let module = Module::new(store.engine(), &binary)?; in rust_panic_start_function() 515 let binary = wat::parse_str( in mismatched_arguments() localVariable 523 let module = Module::new(store.engine(), &binary)?; in mismatched_arguments() [all …]
|
| /wasmtime-44.0.1/crates/c-api/tests/ |
| H A D | CMakeLists.txt | 62 # into the current binary directory which tests that if the header is included 66 # compilations together. This binary doesn't actually run any tests itself but
|
| /wasmtime-44.0.1/examples/wasip1/ |
| H A D | main.cc | 23 std::ifstream file(path, std::ios::in | std::ios::binary); in read_binary_file()
|
| /wasmtime-44.0.1/cranelift/docs/ |
| H A D | compare-llvm.md | 19 representation. (LLVM also has a binary bitcode format; Cranelift doesn't.) 28 binary machine code: 31 This is the primary intermediate representation which has textual, binary, and 69 - Emitting assembly or binary object code. 171 Since Cranelift instructions are used all the way until the binary machine code
|