Home
last modified time | relevance | path

Searched refs:typecheck (Results 1 – 25 of 38) sorted by relevance

12

/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/resources/
H A Dhost_dynamic.rs75 fn typecheck(ty: ResourceType) -> Option<u32> { in typecheck() method
150 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> { in typecheck() method
151 HostResource::<Dynamic, u32>::typecheck(ty, types) in typecheck()
H A Dhost_static.rs149 fn typecheck(ty: ResourceType) -> Option<()> { in typecheck() method
222 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> { in typecheck() method
223 HostResource::<Static<T>, ()>::typecheck(ty, types) in typecheck()
H A Dhost.rs34 fn typecheck(ty: ResourceType) -> Option<D>; in typecheck() method
177 match T::typecheck(cx.resource_type(t)) { in lower_to_index()
210 match T::typecheck(cx.resource_type(t)) { in lower_to_index()
277 let ty = T::typecheck(cx.resource_type(ty)).unwrap(); in lift_from_index()
318 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> { in typecheck() function
323 if T::typecheck(types.resource_type(resource)).is_none() { in typecheck()
H A Dany.rs104 let ty = T::typecheck(ty).ok_or_else(|| crate::format_err!("resource type mismatch"))?; in try_into_host_resource()
278 fn typecheck(ty: &InterfaceType, _types: &InstanceType<'_>) -> Result<()> { in typecheck() method
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/concurrent/
H A Dfuture_stream_any.rs146 fn typecheck(ty: &InterfaceType, _types: &InstanceType<'_>) -> Result<()> { in typecheck() method
316 fn typecheck(ty: &InterfaceType, _types: &InstanceType<'_>) -> Result<()> { in typecheck() method
371 typecheck: fn(Option<&InterfaceType>, &InstanceType<'_>) -> Result<()>,
418 typecheck: types::typecheck_payload::<P>, in new_host()
437 Self::Host { typecheck, .. } => { in typecheck_guest()
438 typecheck(payload, types).context("future payload types differ") in typecheck_guest()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/func/
H A Dtyped.rs220 Params::typecheck(store.engine(), ty.params(), TypeCheckPosition::Param) in debug_typecheck()
222 Results::typecheck(store.engine(), ty.results(), TypeCheckPosition::Result) in debug_typecheck()
248 fn typecheck(engine: &Engine, actual: ValType, position: TypeCheckPosition) -> Result<()> { in typecheck() method
627 fn typecheck( in typecheck() method
653 fn typecheck( in typecheck() function
658 <(T,) as WasmParams>::typecheck(engine, params, position) in typecheck()
683 fn typecheck(
694 $t::typecheck(_engine, t, _position)?
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/func/
H A Dhost.rs44 typecheck: fn(TypeFuncIndex, &InstanceType<'_>) -> Result<()>, field
87 typecheck: F::typecheck, in new()
243 pub fn typecheck(&self, ty: TypeFuncIndex, types: &InstanceType<'_>) -> Result<()> { in typecheck() method
244 (self.typecheck)(ty, types) in typecheck()
294 fn typecheck(ty: TypeFuncIndex, types: &InstanceType<'_>) -> Result<()>; in typecheck() method
625 fn typecheck(ty: TypeFuncIndex, types: &InstanceType<'_>) -> Result<()> { in typecheck() function
630 P::typecheck(&InterfaceType::Tuple(ty.params), types) in typecheck()
632 R::typecheck(&InterfaceType::Tuple(ty.results), types) in typecheck()
708 fn typecheck(ty: TypeFuncIndex, types: &InstanceType<'_>) -> Result<()> { in typecheck() function
H A Dtyped.rs749 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()>; in typecheck() method
965 <$b as ComponentType>::typecheck(ty, types)
1834 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> { in typecheck() function
2081 <[T] as ComponentType>::typecheck(ty, types) in typecheck()
2137 TryHashMap::<K, V>::typecheck(ty, types) in typecheck()
2239 K::typecheck(&map_ty.key, types)?; in typecheck()
2240 V::typecheck(&map_ty.value, types)?; in typecheck()
2684 Some(ty) => T::typecheck(ty, types)?, in typecheck()
2689 Some(ty) => E::typecheck(ty, types)?, in typecheck()
3045 fn typecheck(
[all …]
/wasmtime-44.0.1/crates/test-util/src/
H A Dcomponent.rs60 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> {
61 <$b as ComponentType>::typecheck(ty, types)
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/
H A Dconcurrent_disabled.rs71 fn typecheck(_ty: &InterfaceType, _types: &InstanceType<'_>) -> Result<()> { in typecheck() method
121 fn typecheck(_ty: &InterfaceType, _types: &InstanceType<'_>) -> Result<()> { in typecheck() method
H A Dfunc.rs156 self.typecheck::<Params, Return>(store, instance)?; in _typed()
160 fn typecheck<Params, Return>( in typecheck() method
172 Params::typecheck(&InterfaceType::Tuple(ty.params), &cx) in typecheck()
174 Return::typecheck(&InterfaceType::Tuple(ty.results), &cx) in typecheck()
H A Dlinker.rs163 fn typecheck<'a>(&'a self, component: &'a Component) -> Result<TypeChecker<'a>> { in typecheck() method
186 let cx = self.typecheck(&component)?; in substituted_component_type()
215 let cx = self.typecheck(&component)?; in instantiate_pre()
H A Dtypes.rs580 Some(a) => T::typecheck(a, types), in typecheck_payload()
968 pub fn typecheck<Params, Return>(&self, cx: &InstanceType) -> crate::Result<()> in typecheck() method
974 Params::typecheck(&InterfaceType::Tuple(ty.params), cx)?; in typecheck()
975 Return::typecheck(&InterfaceType::Tuple(ty.results), cx)?; in typecheck()
H A Dmatching.rs174 actual.typecheck(expected, &instance_type) in func()
/wasmtime-44.0.1/crates/component-macro/src/
H A Dcomponent.rs351 typecheck: TokenStream, in expand_record_for_component_type()
413 fn typecheck( in expand_record_for_component_type()
417 #internal::#typecheck(ty, types, &[#typecheck_argument]) in expand_record_for_component_type()
939 Ok(quote!((#name, <#ty as #wt::component::ComponentType>::typecheck),)) in expand_record()
974 quote!((#name, Some(<#ty as #wt::component::ComponentType>::typecheck)),), in expand_variant()
1026 fn typecheck( in expand_variant()
1087 fn typecheck( in expand_enum()
/wasmtime-44.0.1/crates/component-macro/tests/expanded/
H A Dsmoke-default.rs124 func.typecheck::<(), ()>(&_instance_type), in new()
H A Dfunction-new.rs124 func.typecheck::<(), ()>(&_instance_type), in new()
H A Dfunction-new_concurrent.rs124 func.typecheck::<(), ()>(&_instance_type), in new()
H A Dfunction-new_async.rs124 func.typecheck::<(), ()>(&_instance_type), in new()
H A Dsmoke-default_async.rs124 func.typecheck::<(), ()>(&_instance_type), in new()
H A Dsmoke-default_tracing_async.rs124 func.typecheck::<(), ()>(&_instance_type), in new()
H A Dfunction-new_tracing_async.rs124 func.typecheck::<(), ()>(&_instance_type), in new()
H A Dsmoke-default_concurrent.rs124 func.typecheck::<(), ()>(&_instance_type), in new()
H A Dworlds-with-types_concurrent.rs149 func.typecheck::<(), ((T, U, R),)>(&_instance_type), in new()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dinstance.rs213 typecheck(module, imports, |cx, ty, item| { in typecheck_externs()
847 typecheck(module, &items, |cx, ty, item| cx.definition(ty, &item.ty()))?; in new()
1028 fn typecheck<I>( in typecheck() function

12