| /wasmtime-44.0.1/crates/c-api/tests/ |
| H A D | table.cc | 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() 18 EXPECT_EQ(val.kind(), ValKind::FuncRef); in TEST() 24 EXPECT_EQ(t.type(store)->element().kind(), ValKind::FuncRef); in TEST()
|
| H A D | types.cc | 20 EXPECT_EQ(ValType(ValKind::FuncRef)->kind(), ValKind::FuncRef); in TEST() 43 TableType t(ValKind::FuncRef, 1); in TEST() 47 EXPECT_EQ(t->element().kind(), ValKind::FuncRef); in TEST() 54 GlobalType t(ValKind::FuncRef, true); in TEST() 56 EXPECT_EQ(t->content().kind(), ValKind::FuncRef); in TEST()
|
| H A D | table_type.cc | 8 TableType ty(ValKind::FuncRef, 1); in TEST() 11 EXPECT_EQ(ty->element().kind(), ValKind::FuncRef); in TEST()
|
| H A D | val_type.cc | 19 ty = ValKind::FuncRef; in TEST() 20 EXPECT_EQ(ty->kind(), ValKind::FuncRef); in TEST()
|
| H A D | func.cc | 116 FuncType ty({ValKind::FuncRef, ValKind::FuncRef}, in TEST() 117 {ValKind::FuncRef, ValKind::FuncRef}); in TEST() 205 assert_func_type(f.type(store), {}, {ValKind::FuncRef}); in TEST() 232 assert_func_type(f.type(store), {ValKind::FuncRef}, {}); in TEST()
|
| H A D | val.cc | 64 EXPECT_EQ(val.kind(), ValKind::FuncRef); in TEST() 73 EXPECT_EQ(val.kind(), ValKind::FuncRef); in TEST() 76 EXPECT_EQ(val.kind(), ValKind::FuncRef); in TEST()
|
| /wasmtime-44.0.1/crates/wast/src/ |
| H A D | core.rs | 16 FuncRef { in val() 17 value: None | Some(json_from_wast::FuncRef::Null), in val() 18 } => Val::FuncRef(None), in val() 91 | (Val::FuncRef(_), CoreConst::FuncRef { value: None }) in match_val() 95 | (Val::FuncRef(None), CoreConst::NullFuncRef) in match_val() 99 Val::FuncRef(None), in match_val() 100 CoreConst::FuncRef { in match_val() 101 value: Some(json_from_wast::FuncRef::Null), in match_val() 126 Val::FuncRef(Some(_)), in match_val() 127 CoreConst::FuncRef { in match_val() [all …]
|
| /wasmtime-44.0.1/crates/fuzzing/src/generators/ |
| H A D | value.rs | 17 FuncRef { null: bool }, enumerator 32 DiffValue::FuncRef { .. } => DiffValueType::FuncRef, in ty() 190 FuncRef => DiffValue::FuncRef { null: true }, in arbitrary_of_type() 239 DiffValue::FuncRef { null } => null.hash(state), in hash() 276 (Self::FuncRef { null: a }, Self::FuncRef { null: b }) => a == b, in eq() 295 FuncRef, enumerator 313 (true, HeapType::Func) => Ok(Self::FuncRef), in try_from()
|
| /wasmtime-44.0.1/cranelift/codegen/src/ir/ |
| H A D | entities.rs | 277 pub struct FuncRef(u32); struct 278 entity_impl!(FuncRef, "fn"); 280 impl FuncRef { implementation 389 FuncRef(FuncRef), enumerator 411 Self::FuncRef(r) => r.fmt(f), in fmt() 479 impl From<FuncRef> for AnyEntity { 480 fn from(r: FuncRef) -> Self { in from() 481 Self::FuncRef(r) in from()
|
| H A D | instructions.rs | 21 self, Block, ExceptionTable, ExceptionTables, FuncRef, MemFlags, SigRef, StackSlot, Type, 682 Direct(FuncRef, &'a [Value]), 690 DirectWithSig(FuncRef, SigRef, &'a [Value]), 1068 fn map_func_ref(&mut self, func_ref: FuncRef) -> FuncRef; in map_func_ref() argument 1121 fn map_func_ref(&mut self, func_ref: FuncRef) -> FuncRef { in map_func_ref() argument 1343 fn map_func_ref(&mut self, func_ref: FuncRef) -> FuncRef { in instruction_data_map() argument 1344 FuncRef::from_u32(func_ref.as_u32() + 1) in instruction_data_map() 1389 let func_ref = FuncRef::from_u32(99); in instruction_data_map() 1404 assert_eq!(func_ref, FuncRef::from_u32(100)); in instruction_data_map() 1437 func_ref: FuncRef::from_u32(0), in instruction_data_map() [all …]
|
| H A D | libcall.rs | 4 ir::{AbiParam, ExternalName, FuncRef, Function, Signature, Type, types}, 189 pub fn get_probestack_funcref(func: &mut Function) -> Option<FuncRef> { in get_probestack_funcref() argument 194 fn find_funcref(libcall: LibCall, func: &Function) -> Option<FuncRef> { in find_funcref() argument
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | funcref.rs | 26 func.call(&mut store, &[Val::FuncRef(Some(func))], &mut results)?; in pass_funcref_in_and_out_of_wasm() 36 func.call(&mut store, &[Val::FuncRef(None)], &mut results)?; in pass_funcref_in_and_out_of_wasm() 49 &[Val::FuncRef(Some(other_instance_func))], in pass_funcref_in_and_out_of_wasm() 72 func.call(&mut store, &[Val::FuncRef(Some(f))], &mut [Val::I32(0)]) in pass_funcref_in_and_out_of_wasm()
|
| H A D | linker.rs | 487 results[0] = Val::FuncRef(Some(a_func)); in linker_instantiate_with_concrete_func_refs() 492 results[0] = Val::FuncRef(Some(b_func)); in linker_instantiate_with_concrete_func_refs() 502 results[0] = Val::FuncRef(Some(c_func)); in linker_instantiate_with_concrete_func_refs() 638 Val::FuncRef(None), in linker_defines_global_subtype_const_ok() 669 Val::FuncRef(None), in linker_defines_global_subtype_const_err() 702 Val::FuncRef(None), in linker_defines_global_subtype_mut_err() 713 Val::FuncRef(None), in linker_defines_global_subtype_mut_err() 726 Val::FuncRef(None), in linker_defines_global_subtype_mut_err()
|
| H A D | externals.rs | 89 let store1val = Val::FuncRef(Some(Func::wrap(&mut store1, || {}))); in cross_store() 91 let store2val = Val::FuncRef(Some(Func::wrap(&mut store2, || {}))); in cross_store() 118 s1_f.call(&mut store1, &[Val::FuncRef(None)], &mut []) in cross_store() 122 s2_f.call(&mut store2, &[Val::FuncRef(None)], &mut []) in cross_store() 223 Val::FuncRef(None), in get_set_funcref_globals_via_api() 227 global.set(&mut store, Val::FuncRef(Some(f)))?; in get_set_funcref_globals_via_api() 236 Val::FuncRef(Some(f)), in get_set_funcref_globals_via_api()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | values.rs | 50 FuncRef(Option<Func>), enumerator 107 Val::FuncRef(None) in null_func_ref() 235 | (Val::FuncRef(_), _) in _matches_ty() 387 Val::FuncRef(f) => Some(Ref::Func(f)), in ref_() 499 Val::FuncRef(None) => Some(None), in funcref() 500 Val::FuncRef(Some(f)) => Some(Some(f)), in funcref() 524 Val::FuncRef(None) => true, in comes_from_same_store() 579 Ref::Func(f) => Val::FuncRef(f), in from() 659 Val::FuncRef(Some(val)) in from() 666 Val::FuncRef(val) in from() [all …]
|
| /wasmtime-44.0.1/cranelift/interpreter/src/ |
| H A D | environment.rs | 2 use cranelift_codegen::ir::{FuncRef, Function}; 55 func_ref: FuncRef, in get_from_func_ref() argument 64 fn get_function_name(func_ref: FuncRef, function: &Function) -> String { in get_function_name() argument
|
| H A D | state.rs | 8 ExternalName, FuncRef, Function, GlobalValue, LibCall, MemFlags, Signature, StackSlot, Type, 25 fn get_function(&self, func_ref: FuncRef) -> Option<&'a Function>; in get_function()
|
| /wasmtime-44.0.1/cranelift/reader/src/ |
| H A D | sourcemap.rs | 13 Block, Constant, DynamicStackSlot, FuncRef, GlobalValue, JumpTable, SigRef, StackSlot, Value, 57 pub fn contains_fn(&self, fn_: FuncRef) -> bool { in contains_fn() 110 "fn" => FuncRef::with_number(num).and_then(|fn_| { in lookup_str() 178 pub fn def_fn(&mut self, entity: FuncRef, loc: Location) -> ParseResult<()> { in def_fn() argument
|
| /wasmtime-44.0.1/cranelift/module/src/ |
| H A D | data_context.rs | 56 pub function_decls: PrimaryMap<ir::FuncRef, ModuleRelocTarget>, 60 pub function_relocs: Vec<(CodeOffset, ir::FuncRef)>, 136 pub fn import_function(&mut self, name: ModuleRelocTarget) -> ir::FuncRef { in import_function() argument 152 pub fn write_function_addr(&mut self, offset: CodeOffset, func: ir::FuncRef) { in write_function_addr() argument
|
| /wasmtime-44.0.1/crates/fuzzing/src/oracles/ |
| H A D | diff_wasmi.rs | 177 DiffValue::FuncRef { null } => { in from() 179 WasmiValue::default(wasmi::ValType::FuncRef) in from() 201 WasmiValue::FuncRef(f) => DiffValue::FuncRef { null: f.is_null() }, in from()
|
| H A D | diff_wasmtime.rs | 215 DiffValue::FuncRef { null } => { in from() 217 Val::FuncRef(None) in from() 248 Val::FuncRef(r) => DiffValue::FuncRef { null: r.is_none() }, in from()
|
| /wasmtime-44.0.1/crates/c-api/include/wasmtime/types/ |
| H A D | val.hh | 30 FuncRef, enumerator 45 X(FuncRef, "funcref", WASM_FUNCREF) \
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | val.rs | 87 Val::FuncRef(f) => wasm_val_t { in from_val() 115 Val::FuncRef(None) in val() 271 Val::FuncRef(func) => wasmtime_val_t { in from_val_unscoped() 321 crate::WASMTIME_FUNCREF => Val::FuncRef(self.of.funcref.as_wasmtime()), in to_val_unscoped()
|
| /wasmtime-44.0.1/crates/cranelift/src/func_environ/stack_switching/ |
| H A D | mod.rs | 13 ) -> wasmtime_environ::WasmResult<crate::ir::FuncRef> {
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/enabled/ |
| H A D | arrayref.rs | 178 Val::FuncRef(unsafe { in read_elem() 268 Val::FuncRef(f) => { in write_elem() 381 Val::FuncRef(f) => { in initialize_elem()
|