| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | vm.rs | 97 pub use crate::runtime::vm::always_mut::*; 98 pub use crate::runtime::vm::export::*; 99 pub use crate::runtime::vm::gc::*; 101 pub use crate::runtime::vm::instance::{ 106 pub use crate::runtime::vm::instance::{ 110 pub use crate::runtime::vm::interpreter::*; 111 pub use crate::runtime::vm::memory::{ 115 pub use crate::runtime::vm::provenance::*; 117 pub use crate::runtime::vm::store_box::*; 124 pub use crate::runtime::vm::throw::*; [all …]
|
| H A D | trap.rs | 81 runtime_trap: Box<crate::runtime::vm::Trap>, in from_runtime_box() 83 let crate::runtime::vm::Trap { in from_runtime_box() 90 crate::runtime::vm::TrapReason::Exception => (ThrownException.into(), None), in from_runtime_box() 104 crate::runtime::vm::TrapReason::User(error) => (error, None), in from_runtime_box() 105 crate::runtime::vm::TrapReason::Jit { in from_runtime_box() 208 _runtime_trace: crate::runtime::vm::Backtrace, 264 crate::runtime::vm::Backtrace::new(store.0), in capture() 272 _runtime_trace: crate::runtime::vm::Backtrace::empty(), in capture() 292 crate::runtime::vm::Backtrace::new(store.0), in force_capture() 300 runtime_trace: crate::runtime::vm::Backtrace, in from_captured() [all …]
|
| H A D | externals.rs | 129 wasmtime_export: crate::runtime::vm::Export, in from_wasmtime_export() 133 crate::runtime::vm::Export::Function(f) => Extern::Func(f), in from_wasmtime_export() 134 crate::runtime::vm::Export::Memory(m) => Extern::Memory(m), in from_wasmtime_export() 135 crate::runtime::vm::Export::SharedMemory(m, _) => { in from_wasmtime_export() 138 crate::runtime::vm::Export::Global(g) => Extern::Global(g), in from_wasmtime_export() 139 crate::runtime::vm::Export::Table(t) => Extern::Table(t), in from_wasmtime_export() 140 crate::runtime::vm::Export::Tag(t) => Extern::Tag(t), in from_wasmtime_export()
|
| H A D | memory.rs | 3 use crate::runtime::vm::{self, ExportMemory}; 15 pub use crate::runtime::vm::WaitResult; 666 pub(crate) fn vmimport(&self, store: &StoreOpaque) -> crate::runtime::vm::VMMemoryImport { in vmimport() 826 vm: crate::runtime::vm::SharedMemory, 842 let memory = crate::runtime::vm::SharedMemory::new(engine, ty)?; in new() 1025 pub(crate) fn vmimport(&self, store: &mut StoreOpaque) -> crate::runtime::vm::VMMemoryImport { in vmimport() 1043 pub(crate) fn from_raw(vm: crate::runtime::vm::SharedMemory, engine: Engine) -> Self { in from_raw()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/enabled/ |
| H A D | i31.rs | 7 use crate::runtime::vm::{VMGcRef, ValRaw}; 79 pub struct I31(crate::runtime::vm::I31); 90 impl From<crate::runtime::vm::I31> for I31 { 92 fn from(value: crate::runtime::vm::I31) -> Self { in from() 97 impl From<I31> for crate::runtime::vm::I31 { 106 pub(crate) fn runtime_i31(self) -> crate::runtime::vm::I31 { in runtime_i31() 127 crate::runtime::vm::I31::new_u32(value).map(Self) in new_u32() 147 crate::runtime::vm::I31::new_i32(value).map(Self) in new_i32() 169 Self(crate::runtime::vm::I31::wrapping_u32(value)) in wrapping_u32() 191 Self(crate::runtime::vm::I31::wrapping_i32(value)) in wrapping_i32()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/ |
| H A D | on_demand.rs | 5 use crate::runtime::vm::CompiledModuleId; 6 use crate::runtime::vm::instance::RuntimeMemoryCreator; 7 use crate::runtime::vm::memory::{DefaultMemoryCreator, Memory}; 8 use crate::runtime::vm::mpk::ProtectionKey; 9 use crate::runtime::vm::table::Table; 16 use crate::runtime::vm::{GcHeap, GcHeapAllocationIndex, GcRuntime}; 124 crate::runtime::box_future(async move { in allocate_memory() 160 crate::runtime::box_future(async move { in allocate_table() 245 mut gc_heap: Box<dyn crate::runtime::vm::GcHeap>, in deallocate_gc_heap()
|
| /wasmtime-44.0.1/crates/wasmtime/src/ |
| H A D | engine.rs | 5 pub use crate::runtime::code_memory::CustomCodeMemory; 7 use crate::runtime::type_registry::TypeRegistry; 9 use crate::runtime::vm::{GcRuntime, ModuleRuntimeInfo}; 115 crate::runtime::vm::init_traps(config.macos_use_mach_ports); in new() 118 crate::runtime::vm::debug_builtins::init(); in new() 774 crate::runtime::vm::tls_eager_initialize(); in tls_eager_initialize() 782 crate::runtime::vm::PoolingAllocatorMetrics::new(self) in pooling_allocator_metrics() 884 crate::runtime::vm::MmapVec::from_slice_with_alignment( in load_code_bytes() 925 crate::runtime::vm::MmapVec::from_file(file) in load_code_file() 933 mmap: crate::runtime::vm::MmapVec, in load_code() [all …]
|
| H A D | lib.rs | 487 mod runtime; module 489 pub use runtime::*; 553 pub use crate::runtime::vm::MmapVec;
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/memory/ |
| H A D | shared_memory_disabled.rs | 3 use crate::runtime::vm::memory::LocalMemory; 4 use crate::runtime::vm::{VMMemoryDefinition, WaitResult}; 22 pub fn as_memory(self) -> crate::runtime::vm::Memory { in as_memory()
|
| H A D | shared_memory.rs | 3 use crate::runtime::vm::memory::{LocalMemory, MmapMemory, validate_atomic_addr}; 4 use crate::runtime::vm::parking_spot::{ParkingSpot, Waiter}; 5 use crate::runtime::vm::{self, Memory, VMMemoryDefinition, WaitResult}; 40 let boxed: Box<dyn crate::runtime::vm::RuntimeLinearMemory> = in new()
|
| H A D | static_.rs | 5 use crate::runtime::vm::MemoryBase; 6 use crate::runtime::vm::memory::RuntimeLinearMemory;
|
| /wasmtime-44.0.1/.github/ |
| H A D | labeler.yml | 84 - "crates/wasmtime/src/runtime/gc.rs" 85 - "crates/wasmtime/src/runtime/gc/**" 86 - "crates/wasmtime/src/runtime/vm/gc.rs" 87 - "crates/wasmtime/src/runtime/vm/gc/**"
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/traphandlers/ |
| H A D | coredump_disabled.rs | 1 use crate::runtime::vm::VMStoreContext; 2 use crate::runtime::vm::traphandlers::CallThreadState;
|
| /wasmtime-44.0.1/crates/wasi/src/ |
| H A D | runtime.rs | 27 pub(crate) static RUNTIME: LazyLock<tokio::runtime::Runtime> = LazyLock::new(|| { 28 tokio::runtime::Builder::new_multi_thread() 105 match tokio::runtime::Handle::try_current() { in in_tokio() 164 match tokio::runtime::Handle::try_current() { in with_ambient_tokio_runtime()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/custom/ |
| H A D | vm.rs | 3 use crate::runtime::vm::SendSyncPtr; 4 use crate::runtime::vm::sys::capi; 10 pub use crate::runtime::vm::pagemap_disabled::{PageMap, reset_with_pagemap};
|
| H A D | traphandlers.rs | 12 crate::runtime::vm::sys::capi::wasmtime_init_traps(handle_trap); in new() 22 use crate::runtime::vm::traphandlers::{TrapRegisters, TrapTest, tls}; in handle_trap()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/externals/ |
| H A D | tag.rs | 2 use crate::runtime::types::TagType; 50 pub(crate) fn vmimport(&self, store: &StoreOpaque) -> crate::runtime::vm::VMTagImport { in vmimport() 52 crate::runtime::vm::VMTagImport { in vmimport()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/ |
| H A D | store.rs | 3 use crate::runtime::component::ResourceTable; 4 use crate::runtime::component::concurrent::ConcurrentState; 5 use crate::runtime::component::{HostResourceData, Instance}; 6 use crate::runtime::vm; 8 use crate::runtime::vm::VMStore; 9 use crate::runtime::vm::component::{
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/stack_switching/stack/ |
| H A D | dummy.rs | 4 use crate::runtime::vm::stack_switching::VMHostArray; 5 use crate::runtime::vm::{VMContext, VMFuncRef, ValRaw};
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/miri/ |
| H A D | mmap.rs | 9 use crate::runtime::vm::sys::vm::MemoryImageSource; 10 use crate::runtime::vm::{HostAlignedByteCount, SendSyncPtr}; 146 Layout::from_size_align(size, crate::runtime::vm::host_page_size()).unwrap() in make_layout()
|
| /wasmtime-44.0.1/crates/wasi-tls/src/p2/ |
| H A D | io.rs | 16 use wasmtime_wasi::runtime::AbortOnDropJoinHandle; 41 wasmtime_wasi::runtime::spawn(async move { fut.await }), in spawn() 300 *self = WriteState::Writing(wasmtime_wasi::runtime::spawn(async move { in write() 320 *self = WriteState::Flushing(wasmtime_wasi::runtime::spawn(async move { in flush() 331 *self = WriteState::Flushing(wasmtime_wasi::runtime::spawn(async move { in flush() 366 *self = WriteState::Closing(wasmtime_wasi::runtime::spawn(async move { in close() 373 *self = WriteState::Closing(wasmtime_wasi::runtime::spawn(async move { in close()
|
| /wasmtime-44.0.1/crates/wasmtime/ |
| H A D | Cargo.toml | 5 description = "High-level API to expose the Wasmtime runtime" 148 'runtime', 164 # An on-by-default feature enabling runtime compilation of WebAssembly modules 212 "runtime", 217 "runtime", 250 # Enables support for demangling WebAssembly function names at runtime in 255 coredump = ["dep:wasm-encoder", "runtime", "std"] 264 runtime = [ 315 # Enable runtime support for the WebAssembly threads proposal. 323 "runtime", [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/stack_switching/ |
| H A D | stack.rs | 7 use crate::runtime::vm::stack_switching::VMHostArray; 8 use crate::runtime::vm::{VMContext, VMFuncRef, ValRaw};
|
| /wasmtime-44.0.1/src/commands/ |
| H A D | wizer.rs | 41 let runtime = tokio::runtime::Builder::new_multi_thread() in execute() localVariable 45 runtime.block_on(self.execute_async()) in execute()
|
| /wasmtime-44.0.1/docs/ |
| H A D | contributing-conditional-compilation.md | 4 runtime configuration (e.g. `Config::*`) and compile-time configuration (Cargo 207 that Wasmtime's internal `runtime` module is [feature gated][file-gate] at 227 types (e.g. `enum Foo {}`) to ensure there is no runtime overhead. An 250 5. **Use `#[cfg]` for anything that requires a new runtime dependency** - one of 252 dependencies at runtime on pieces of functionality. For example if the 257 requires the standard library, but `runtime` does not. 261 integration with Cranelift. The runtime size or runtime features required to 265 `#[cfg]` is only use for WebAssembly runtime features, not compilation of 275 …iance/wasmtime/blob/24620d9ff4cfd3a2a5f681181119eb8b0edaeab5/crates/wasmtime/src/runtime.rs#L55-L56 276 [dummy-enabled]: https://github.com/bytecodealliance/wasmtime/blob/main/crates/wasmtime/src/runtime… [all …]
|