Home
last modified time | relevance | path

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

/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/
H A Dvalues.rs102 ty: InterfaceType, in lift() argument
118 InterfaceType::Own(_) | InterfaceType::Borrow(_) => { in lift()
243 InterfaceType::Own(_) | InterfaceType::Borrow(_) => { in load()
360 ty: InterfaceType, in lower() argument
414 (InterfaceType::Borrow(_) | InterfaceType::Own(_), Val::Resource(value)) => { in lower()
417 (InterfaceType::Borrow(_) | InterfaceType::Own(_), _) => unexpected(ty, self), in lower()
519 ty: InterfaceType, in store() argument
559 (InterfaceType::Borrow(_) | InterfaceType::Own(_), Val::Resource(value)) => { in store()
562 (InterfaceType::Borrow(_) | InterfaceType::Own(_), _) => unexpected(ty, self), in store()
1036 InterfaceType::U8, in load_variant()
[all …]
H A Dtypes.rs127 (InterfaceType::Bool, InterfaceType::Bool) => true, in interface_types_equal()
129 (InterfaceType::U8, InterfaceType::U8) => true, in interface_types_equal()
131 (InterfaceType::U16, InterfaceType::U16) => true, in interface_types_equal()
133 (InterfaceType::U32, InterfaceType::U32) => true, in interface_types_equal()
135 (InterfaceType::U64, InterfaceType::U64) => true, in interface_types_equal()
137 (InterfaceType::S8, InterfaceType::S8) => true, in interface_types_equal()
139 (InterfaceType::S16, InterfaceType::S16) => true, in interface_types_equal()
141 (InterfaceType::S32, InterfaceType::S32) => true, in interface_types_equal()
143 (InterfaceType::S64, InterfaceType::S64) => true, in interface_types_equal()
149 (InterfaceType::String, InterfaceType::String) => true, in interface_types_equal()
[all …]
H A Dconcurrent_disabled.rs35 _ty: InterfaceType, in lower_error_context_to_index() argument
49 _ty: InterfaceType, in linear_lift_from_flat() argument
57 _ty: InterfaceType, in linear_lift_from_memory() argument
79 _ty: InterfaceType, in linear_lift_from_flat() argument
87 _ty: InterfaceType, in linear_lift_from_memory() argument
98 _ty: InterfaceType, in linear_lower_to_flat() argument
107 _ty: InterfaceType, in linear_lower_to_memory() argument
129 _ty: InterfaceType, in linear_lift_from_flat() argument
137 _ty: InterfaceType, in linear_lift_from_memory() argument
148 _ty: InterfaceType, in linear_lower_to_flat() argument
[all …]
H A Dfunc.rs172 Params::typecheck(&InterfaceType::Tuple(ty.params), &cx) in typecheck()
174 Return::typecheck(&InterfaceType::Tuple(ty.results), &cx) in typecheck()
583 InterfaceType, in call_raw() argument
724 params_ty: InterfaceType, in lower_args() argument
728 InterfaceType::Tuple(i) => &cx.types[i], in lower_args()
764 results_ty: InterfaceType, in lift_results() argument
769 InterfaceType::Tuple(i) => &cx.types[i], in lift_results()
825 lower: impl FnOnce(&mut LowerContext<T>, InterfaceType) -> Result<()>, in with_lower_context()
836 let param_ty = InterfaceType::Tuple(cx.types[ty].params); in with_lower_context()
850 lift: impl FnOnce(&mut LiftContext, InterfaceType) -> Result<R>, in with_lift_context()
[all …]
H A Dmod.rs166 pub use wasmtime_environ::component::{CanonicalAbiInfo, ComponentTypes, InterfaceType};
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/concurrent/
H A Dfuture_stream_any.rs148 InterfaceType::Future(_) => Ok(()), in typecheck()
158 ty: InterfaceType, in linear_lower_to_flat() argument
168 ty: InterfaceType, in linear_lower_to_memory() argument
179 ty: InterfaceType, in linear_lift_from_flat() argument
188 ty: InterfaceType, in linear_lift_from_memory() argument
318 InterfaceType::Stream(_) => Ok(()), in typecheck()
328 ty: InterfaceType, in linear_lower_to_flat() argument
338 ty: InterfaceType, in linear_lower_to_memory() argument
349 ty: InterfaceType, in linear_lift_from_flat() argument
358 ty: InterfaceType, in linear_lift_from_memory() argument
[all …]
H A Dfutures_and_streams.rs1391 ty: InterfaceType, in lift_index_to_future() argument
1423 ty: InterfaceType, in lower_future_to_index() argument
1467 ty: InterfaceType, in linear_lower_to_flat() argument
1476 ty: InterfaceType, in linear_lower_to_memory() argument
1491 ty: InterfaceType, in linear_lift_from_flat() argument
1500 ty: InterfaceType, in linear_lift_from_memory() argument
1776 ty: InterfaceType, in lift_index_to_stream() argument
1800 ty: InterfaceType, in lower_stream_to_index() argument
1844 ty: InterfaceType, in linear_lower_to_flat() argument
1853 ty: InterfaceType, in linear_lower_to_memory() argument
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/func/
H A Dtyped.rs320 ty: InterfaceType, in lower_args() argument
349 InterfaceType, in prepare_call() argument
485 ty: InterfaceType, in lower_stack_args() argument
502 ty: InterfaceType, in lower_heap_args() argument
1895 ty: InterfaceType, in lower_list() argument
1931 elem: InterfaceType,
2347 ty: &InterfaceType, in typecheck_tuple() argument
2373 ty: &InterfaceType, in typecheck_record() argument
2407 ty: &InterfaceType, in typecheck_variant() argument
2453 ty: &InterfaceType, in typecheck_enum() argument
[all …]
H A Dhost.rs26 CanonicalAbiInfo, InterfaceType, MAX_FLAT_PARAMS, MAX_FLAT_RESULTS, OptionsIndex, TypeFuncIndex,
630 P::typecheck(&InterfaceType::Tuple(ty.params), types) in typecheck()
632 R::typecheck(&InterfaceType::Tuple(ty.results), types) in typecheck()
642 let ty = InterfaceType::Tuple(cx.types[ty].params); in lift_params()
665 let ty = InterfaceType::Tuple(fty.results); in lower_result()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/resources/
H A Dany.rs22 use wasmtime_environ::component::{CanonicalAbiInfo, InterfaceType};
228 InterfaceType::Own(t) => { in lower_to_index()
235 InterfaceType::Borrow(t) => { in lower_to_index()
248 InterfaceType::Own(t) => { in lift_from_index()
258 InterfaceType::Borrow(t) => { in lift_from_index()
280 InterfaceType::Own(_) | InterfaceType::Borrow(_) => Ok(()), in typecheck()
290 ty: InterfaceType, in linear_lower_to_flat() argument
294 .linear_lower_to_flat(cx, InterfaceType::U32, dst) in linear_lower_to_flat()
300 ty: InterfaceType, in linear_lower_to_memory() argument
311 ty: InterfaceType, in linear_lift_from_flat() argument
[all …]
H A Dhost.rs11 use wasmtime_environ::component::{CanonicalAbiInfo, InterfaceType};
176 InterfaceType::Own(t) => { in lower_to_index()
209 InterfaceType::Borrow(t) => { in lower_to_index()
257 InterfaceType::Own(t) => { in lift_from_index()
271 InterfaceType::Borrow(t) => { in lift_from_index()
320 InterfaceType::Own(t) | InterfaceType::Borrow(t) => *t, in typecheck()
339 ty: InterfaceType, in linear_lower_to_flat() argument
343 .linear_lower_to_flat(cx, InterfaceType::U32, dst) in linear_lower_to_flat()
349 ty: InterfaceType, in linear_lower_to_memory() argument
364 ty: InterfaceType, in linear_lift_from_flat() argument
[all …]
H A Dhost_dynamic.rs9 use wasmtime_environ::component::{CanonicalAbiInfo, InterfaceType};
150 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> { in typecheck() argument
159 ty: InterfaceType, in linear_lower_to_flat() argument
168 ty: InterfaceType, in linear_lower_to_memory() argument
178 ty: InterfaceType, in linear_lift_from_flat() argument
187 ty: InterfaceType, in linear_lift_from_memory() argument
H A Dhost_static.rs19 use wasmtime_environ::component::{CanonicalAbiInfo, InterfaceType};
222 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> { in typecheck() argument
231 ty: InterfaceType, in linear_lower_to_flat() argument
240 ty: InterfaceType, in linear_lower_to_memory() argument
250 ty: InterfaceType, in linear_lift_from_flat() argument
259 ty: InterfaceType, in linear_lift_from_memory() argument
/wasmtime-44.0.1/crates/environ/src/component/
H A Dtypes_builder.rs437 ) -> Result<InterfaceType> { in defined_type() argument
486 ) -> Result<InterfaceType> { in valtype() argument
590 element: InterfaceType, in new_fixed_length_list_type() argument
851 InterfaceType::U8 in type_information()
852 | InterfaceType::S8 in type_information()
853 | InterfaceType::Bool in type_information()
854 | InterfaceType::U16 in type_information()
855 | InterfaceType::S16 in type_information()
856 | InterfaceType::U32 in type_information()
857 | InterfaceType::S32 in type_information()
[all …]
H A Dtypes.rs349 InterfaceType::U8 | InterfaceType::S8 | InterfaceType::Bool => { in canonical_abi()
353 InterfaceType::U16 | InterfaceType::S16 => &CanonicalAbiInfo::SCALAR2, in canonical_abi()
355 InterfaceType::U32 in canonical_abi()
365 InterfaceType::U64 | InterfaceType::S64 | InterfaceType::Float64 => { in canonical_abi()
369 InterfaceType::String | InterfaceType::List(_) | InterfaceType::Map(_) => { in canonical_abi()
460 Interface(InterfaceType),
582 pub enum InterfaceType { enum
975 pub ty: InterfaceType,
1071 pub ty: InterfaceType,
1195 pub key: InterfaceType,
[all …]
H A Dintrinsic.rs103 pub const fn component_params(&self) -> &'static [$crate::component::InterfaceType] {
112 pub const fn component_results(&self) -> &'static [$crate::component::InterfaceType] {
140 (@component_type u8) => { $crate::component::InterfaceType::U8 };
141 (@component_type u16) => { $crate::component::InterfaceType::U16 };
142 (@component_type u32) => { $crate::component::InterfaceType::U32 };
143 (@component_type u64) => { $crate::component::InterfaceType::U64 };
H A Dtranslate.rs1667 fn ty_eq(a: &InterfaceType, b: &wasmparser::component_types::ComponentValType) -> bool { in check_unsafe_intrinsics_import() argument
1670 (InterfaceType::U8, C::Primitive(P::U8)) => true, in check_unsafe_intrinsics_import()
1671 (InterfaceType::U8, _) => false, in check_unsafe_intrinsics_import()
1673 (InterfaceType::U16, C::Primitive(P::U16)) => true, in check_unsafe_intrinsics_import()
1674 (InterfaceType::U16, _) => false, in check_unsafe_intrinsics_import()
1676 (InterfaceType::U32, C::Primitive(P::U32)) => true, in check_unsafe_intrinsics_import()
1677 (InterfaceType::U32, _) => false, in check_unsafe_intrinsics_import()
1679 (InterfaceType::U64, C::Primitive(P::U64)) => true, in check_unsafe_intrinsics_import()
1680 (InterfaceType::U64, _) => false, in check_unsafe_intrinsics_import()
1687 expected: impl ExactSizeIterator<Item = &'a InterfaceType>, in check_unsafe_intrinsics_import()
H A Ddfg.rs518 pub payload_type: Option<InterfaceType>,
525 pub payload_type: InterfaceType,
/wasmtime-44.0.1/crates/test-util/src/
H A Dcomponent.rs4 CanonicalAbiInfo, InstanceType, InterfaceType, LiftContext, LowerContext,
60 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> {
69 ty: InterfaceType,
75 …fn linear_lower_to_memory<U>(&self, cx: &mut LowerContext<'_, U>, ty: InterfaceType, offset: usize…
81 …fn linear_lift_from_flat(cx: &mut LiftContext<'_>, ty: InterfaceType, src: &Self::Lower) -> Result…
85 …fn linear_lift_from_memory(cx: &mut LiftContext<'_>, ty: InterfaceType, bytes: &[u8]) -> Result<Se…
/wasmtime-44.0.1/crates/environ/src/fact/
H A Dtrampoline.rs1081 src_ty: &InterfaceType, in translate() argument
1083 dst_ty: &InterfaceType, in translate() argument
1126 InterfaceType::Bool in translate()
1127 | InterfaceType::U8 in translate()
1128 | InterfaceType::S8 in translate()
1129 | InterfaceType::U16 in translate()
1130 | InterfaceType::S16 in translate()
1131 | InterfaceType::U32 in translate()
1132 | InterfaceType::S32 in translate()
1167 InterfaceType::Option(_) | InterfaceType::Result(_) => 2, in translate()
[all …]
H A Dsignature.rs4 ComponentTypesBuilder, InterfaceType, MAX_FLAT_ASYNC_PARAMS, MAX_FLAT_PARAMS, MAX_FLAT_RESULTS,
106 tys: impl IntoIterator<Item = InterfaceType>, in flatten_lowering_types()
118 tys: impl IntoIterator<Item = InterfaceType>, in flatten_lifting_types()
193 tys: impl IntoIterator<Item = InterfaceType>, in flatten_types()
207 pub(super) fn align(&self, opts: &LinearMemoryOptions, ty: &InterfaceType) -> u32 { in align()
216 pub(super) fn size_align(&self, opts: &LinearMemoryOptions, ty: &InterfaceType) -> (u32, u32) { in size_align()
/wasmtime-44.0.1/crates/component-macro/src/
H A Dcomponent.rs414 ty: &#internal::InterfaceType, in expand_record_for_component_type()
490 ty: #internal::InterfaceType, in expand_record()
502 ty: #internal::InterfaceType, in expand_record()
581 ty: #internal::InterfaceType, in expand_variant()
594 ty: #internal::InterfaceType, in expand_variant()
648 ty: #internal::InterfaceType, in expand_enum()
664 ty: #internal::InterfaceType, in expand_enum()
1473 _ty: #internal::InterfaceType, in expand_flags()
1489 _ty: #internal::InterfaceType, in expand_flags()
1508 _ty: #internal::InterfaceType, in expand_flags()
[all …]
/wasmtime-44.0.1/crates/environ/src/component/translate/
H A Dinline.rs800 let InterfaceType::Stream(ty) = in initializer() localVariable
815 let InterfaceType::Stream(ty) = in initializer() localVariable
835 let InterfaceType::Stream(ty) = in initializer() localVariable
855 let InterfaceType::Stream(ty) = in initializer() localVariable
871 let InterfaceType::Stream(ty) = in initializer() localVariable
887 let InterfaceType::Stream(ty) = in initializer() localVariable
902 let InterfaceType::Stream(ty) = in initializer() localVariable
917 let InterfaceType::Future(ty) = in initializer() localVariable
932 let InterfaceType::Future(ty) = in initializer() localVariable
952 let InterfaceType::Future(ty) = in initializer() localVariable
[all …]
/wasmtime-44.0.1/crates/cranelift/src/compiler/
H A Dcomponent.rs873 payload @ (InterfaceType::S8 in flat_stream_element_info()
874 | InterfaceType::U8 in flat_stream_element_info()
875 | InterfaceType::S16 in flat_stream_element_info()
876 | InterfaceType::U16 in flat_stream_element_info()
877 | InterfaceType::S32 in flat_stream_element_info()
878 | InterfaceType::U32 in flat_stream_element_info()
879 | InterfaceType::S64 in flat_stream_element_info()
880 | InterfaceType::U64 in flat_stream_element_info()
881 | InterfaceType::Float32 in flat_stream_element_info()
882 | InterfaceType::Float64), in flat_stream_element_info()
/wasmtime-44.0.1/crates/environ/src/
H A Dfact.rs23 Adapter, AdapterOptions as AdapterOptionsDfg, ComponentTypesBuilder, FlatType, InterfaceType,
220 ty: InterfaceType,
904 ty: &InterfaceType, in flat_types() argument