| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | externals.rs | 9 pub use table::Table; 29 Table(Table), enumerator 67 pub fn into_table(self) -> Option<Table> { in into_table() argument 69 Extern::Table(table) => Some(table), in into_table() 122 Extern::Table(tt) => ExternType::Table(tt.ty(store)), in ty() 139 crate::runtime::vm::Export::Table(t) => Extern::Table(t), in from_wasmtime_export() 150 Extern::Table(t) => t.comes_from_same_store(store), in comes_from_same_store() 180 impl From<Table> for Extern { 181 fn from(r: Table) -> Self { in from() 182 Extern::Table(r) in from() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | table.rs | 212 pub enum Table { enum 221 impl From<StaticTable> for Table { implementation 248 impl From<DynamicTable> for Table { implementation 329 impl Table { implementation 492 Table::Static(StaticTable::Func(_)) | Table::Dynamic(DynamicTable::Func(_)) => { in element_type() 495 Table::Static(StaticTable::GcRef(_)) | Table::Dynamic(DynamicTable::GcRef(_)) => { in element_type() 498 Table::Static(StaticTable::Cont(_)) | Table::Dynamic(DynamicTable::Cont(_)) => { in element_type() 842 dst: &mut Table, in copy_to() argument 879 src: &Table, in validate_copy() argument 880 dst: &Table, in validate_copy() argument [all …]
|
| H A D | export.rs | 9 Table(crate::Table), enumerator
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | table.rs | 6 use wasmtime::{Extern, Ref, RootScope, Table, TableType, format_err}; 21 Extern::Table(_) => Some(unsafe { &*(e as *const _ as *const _) }), in try_from() 26 fn table(&self) -> Table { in table() argument 28 Extern::Table(t) => t, in table() 47 let table = Table::new(store.store.context_mut(), tt, init).ok()?; in wasm_table_new() 121 out: &mut Table, in wasmtime_table_new() argument 128 .and_then(|init| Table::new(scope, tt.ty().ty.clone(), init)), in wasmtime_table_new() 136 table: &Table, in wasmtime_table_type() argument 144 table: &Table, in wasmtime_table_get() argument 161 table: &Table, in wasmtime_table_set() argument [all …]
|
| H A D | extern.rs | 6 use wasmtime::{Extern, Func, Global, Memory, SharedMemory, Table, Tag}; 21 Extern::Table(_) => crate::WASM_EXTERN_TABLE, in wasm_extern_kind() 94 pub table: Table, 116 WASMTIME_EXTERN_TABLE => Extern::Table(self.of.table), in to_extern() 136 Extern::Table(table) => wasmtime_extern_t { in from()
|
| /wasmtime-44.0.1/crates/fuzzing/tests/oom/ |
| H A D | table.rs | 3 use wasmtime::{Config, Engine, Ref, RefType, Result, Store, Table, TableType}; 20 let _table = wasmtime::Table::new(&mut store, ty, Ref::Func(None))?; in table_new() 35 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_grow() 51 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_set() 67 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_copy() 68 Table::copy(&mut store, &table, 0, &table, 2, 2)?; in table_copy() 83 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_fill() 99 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_get() 116 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_ty() 132 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_size()
|
| /wasmtime-44.0.1/cranelift/interpreter/src/ |
| H A D | address.rs | 71 Table, enumerator 81 2 => AddressRegion::Table, in decode() 91 AddressRegion::Table => 2, in encode() 149 (AddressSize::_32, AddressRegion::Table) => 5, in entry_bits() 152 (AddressSize::_64, AddressRegion::Table) => 10, in entry_bits() 251 AddressRegion::Table, in address_region_roundtrip_encode_decode() 271 (AddressSize::_32, AddressRegion::Table, 0, 0), in address_roundtrip() 272 (AddressSize::_32, AddressRegion::Table, 1, 1), in address_roundtrip() 273 (AddressSize::_32, AddressRegion::Table, 31, 0x1FF_FFFF), in address_roundtrip() 289 (AddressSize::_64, AddressRegion::Table, 0, 0), in address_roundtrip() [all …]
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | table.rs | 7 let table = Table::new(&mut store, ty, Ref::Func(None)).unwrap(); in get_none() 19 let table = Table::new(&mut store, ty, Ref::Func(None)).unwrap(); in fill_wrong() 29 let table = Table::new(&mut store, ty, Ref::Extern(None)).unwrap(); in fill_wrong() 43 let table1 = Table::new(&mut store, ty, Ref::Func(None)).unwrap(); in copy_wrong() 47 Table::copy(&mut store, &table1, 0, &table2, 0, 1) in copy_wrong() 59 let table = Table::new(&mut store, ty, Ref::Func(None))?; in null_elem_segment_works_with_imported_table() 103 Table::new(&mut store, table_ty.clone(), init)?; in i31ref_table_new() 223 let table = Table::new(&mut store, table_ty, init)?; in i31ref_table_grow() 260 let table = Table::new(&mut store, table_ty, Ref::Any(None))?; in i31ref_table_fill() 312 Table::copy( in i31ref_table_copy() [all …]
|
| H A D | externals.rs | 73 let table = Table::new(&mut store2, ty, Ref::Func(None))?; in cross_store() 253 let table = Table::new(&mut store, table_ty, init)?; in create_get_set_funcref_tables_via_api() 270 let table = Table::new(&mut store, table_ty, Ref::Func(None))?; in fill_funcref_tables_via_api() 297 let table = Table::new(&mut store, table_ty, Ref::Func(None))?; in grow_funcref_tables_via_api() 315 let table = Table::new(&mut store, table_ty, init.into())?; in create_get_set_externref_tables_via_api() 608 match Table::new( in new_table_func_subtyping() 638 let table = Table::new( in table_set_func_subtyping() 681 let table = Table::new( in table_grow_func_subtyping() 726 let table = Table::new( in table_fill_func_subtyping() 767 let dest_table = Table::new( in table_copy_func_subtyping() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/externals/ |
| H A D | table.rs | 31 pub struct Table { struct 45 assert!(core::mem::offset_of!(Table, instance) == 0); 48 impl Table { impl 111 ) -> Result<Table> { in new_async() argument 121 ) -> Result<Table> { in _new() argument 151 ) -> (&'a mut vm::Table, Option<&'a mut GcStore>) { in wasmtime_table() argument 374 dst_table: &Table, in copy() argument 376 src_table: &Table, in copy() argument 411 dst_table: &Table, in copy_raw() argument 413 src_table: &Table, in copy_raw() argument [all …]
|
| /wasmtime-44.0.1/crates/c-api/tests/ |
| H A D | table.cc | 8 TEST(Table, Smoke) { in TEST() argument 11 Table::create(store, TableType(ValKind::FuncRef, 1), 3.0).err(); in TEST() 14 Table t = Table::create(store, TableType(ValKind::FuncRef, 1), null).unwrap(); in TEST()
|
| H A D | instance.cc | 11 Table t = Table::create(store, TableType(ValKind::FuncRef, 1), in TEST() 37 t = std::get<Table>(*i.get(store, "t")); in TEST()
|
| /wasmtime-44.0.1/crates/c-api/include/wasmtime/ |
| H A D | table.hh | 31 class Table { class 37 Table(wasmtime_table_t table) : table(table) {} in Table() function in wasmtime::Table 48 static Result<Table> create(Store::Context cx, const TableType &ty, in create() 55 return Table(table); in create()
|
| H A D | extern_declare.hh | 14 class Table; 19 typedef std::variant<Func, Global, Memory, Table, Tag> Extern;
|
| H A D | extern.hh | 30 return Table(e.of.table); in cvt_extern() 44 } else if (const auto *table = std::get_if<Table>(&e)) { in cvt_extern()
|
| /wasmtime-44.0.1/crates/c-api/src/types/ |
| H A D | extern.rs | 18 Table(CTableType), enumerator 28 ExternType::Table(f) => CExternType::Table(CTableType::new(f)), in new() 60 CExternType::Table(_) => WASM_EXTERN_TABLE, in wasm_externtype_kind()
|
| /wasmtime-44.0.1/crates/wasi-common/src/ |
| H A D | ctx.rs | 6 use crate::table::Table; 30 pub table: Table, 38 table: Table, in new() argument 77 pub fn table(&self) -> &Table { in table() argument 81 pub fn table_mut(&mut self) -> Option<&mut Table> { in table_mut() argument
|
| H A D | table.rs | 13 pub struct Table(RwLock<Inner>); struct 20 impl Table { impl 23 Table(RwLock::new(Inner { in new()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/ |
| H A D | table_pool.rs | 7 InstanceAllocationRequest, Mmap, PoolingInstanceAllocatorConfig, SendSyncPtr, Table, 136 ty: &wasmtime_environ::Table, in allocate() argument 137 ) -> Result<(TableAllocationIndex, Table)> { in allocate() argument 160 Table::new_static( in allocate() 202 table: Table, in deallocate() argument 228 table: &mut Table, in reset_table_pages_to_zero() argument
|
| H A D | decommit_queue.rs | 12 use crate::vm::{MemoryAllocationIndex, MemoryImageSlot, Table, TableAllocationIndex}; 56 tables: SmallVec<[(TableAllocationIndex, Table, usize); 1]>, 142 table: Table, in push_table() argument
|
| /wasmtime-44.0.1/crates/wasi-nn/src/ |
| H A D | witx.rs | 36 pub(crate) graphs: Table<GraphId, Graph>, 37 pub(crate) executions: Table<GraphExecutionContextId, ExecutionContext>, 47 graphs: Table::default(), in new() 48 executions: Table::default(), in new() 54 pub struct Table<K, V> { struct 59 impl<K, V> Default for Table<K, V> { implementation 68 impl<K, V> Table<K, V> impl
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/types/ |
| H A D | matching.rs | 4 EntityType, Global, IndexType, Memory, Table, Tag, TypeTrace, VMSharedTypeIndex, WasmHeapType, 25 EntityType::Table(expected) => match actual { in definition() 26 DefinitionType::Table(actual, cur_size) => { in definition() 84 EntityType::Table(expected) => match actual { in entity_ty() 85 EntityType::Table(actual) => table_ty(expected, actual, None), in entity_ty() 126 fn table_ty(expected: &Table, actual: &Table, actual_runtime_size: Option<u64>) -> Result<()> { in table_ty() argument 417 EntityType::Table(_) => "table", in entity_desc()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/ |
| H A D | on_demand.rs | 9 use crate::runtime::vm::table::Table; 157 ty: &'a wasmtime_environ::Table, in allocate_table() argument 159 ) -> Pin<Box<dyn Future<Output = Result<(TableAllocationIndex, Table)>> + Send + 'a>> { in allocate_table() 162 let table = Table::new_dynamic( in allocate_table() 176 _table: Table, in deallocate_table() argument
|
| /wasmtime-44.0.1/cranelift/codegen/src/ |
| H A D | constant_hash.rs | 17 pub trait Table<K: Copy + Eq> { trait 33 pub fn probe<K: Copy + Eq, T: Table<K> + ?Sized>( in probe()
|
| /wasmtime-44.0.1/cranelift/codegen/src/ir/ |
| H A D | memflags.rs | 29 Table = 0b10, enumerator 38 0b10 => Some(Self::Table), in from_bits() 193 self.with_alias_region(Some(AliasRegion::Table)) in set_by_name() 407 Some(AliasRegion::Table) => write!(f, " table")?, in fmt() 443 let mut big = MemFlags::new().with_alias_region(Some(AliasRegion::Table)); in only_one_region()
|