| /wasmtime-44.0.1/winch/codegen/src/codegen/ |
| H A D | builtin.rs | 63 ptr_type: WasmValType, 102 WasmValType::I32 105 fn u8(&self) -> WasmValType { 106 WasmValType::I32 110 WasmValType::F32 114 WasmValType::F64 118 WasmValType::I64 122 WasmValType::V128 126 WasmValType::V128 130 WasmValType::V128 [all …]
|
| H A D | env.rs | 27 pub ty: WasmValType, 49 pub fn index_type(&self) -> WasmValType { in index_type() argument 51 IndexType::I32 => WasmValType::I32, in index_type() 52 IndexType::I64 => WasmValType::I64, in index_type() 77 pub fn index_type(&self) -> WasmValType { in index_type() argument 79 IndexType::I32 => WasmValType::I32, in index_type() 80 IndexType::I64 => WasmValType::I64, in index_type() 129 ptr_type: WasmValType, 142 .then(|| WasmValType::I64) in ptr_type_from_ptr_size() 154 ptr_type: WasmValType, in new() argument [all …]
|
| H A D | context.rs | 19 use wasmtime_environ::{VMOffsets, WasmHeapType, WasmValType}; 152 ty: WasmValType, in reg_for_type() argument 155 use WasmValType::*; in reg_for_type() 498 pub fn convert_op<F, M>(&mut self, masm: &mut M, dst_ty: WasmValType, emit: F) -> Result<()> in convert_op() argument 506 WasmValType::I32 => OperandSize::S32, in convert_op() 507 WasmValType::I64 => OperandSize::S64, in convert_op() 508 WasmValType::F32 => OperandSize::S32, in convert_op() 509 WasmValType::F64 => OperandSize::S64, in convert_op() 510 WasmValType::V128 => bail!(CodeGenError::unsupported_wasm_type()), in convert_op() 511 WasmValType::Ref(_) => bail!(CodeGenError::unsupported_wasm_type()), in convert_op() [all …]
|
| H A D | mod.rs | 28 WasmValType, 209 use WasmValType::*; in spill_register_arguments() 744 assert!(heap.index_type() == WasmValType::I32); in emit_compute_heap_address() 917 target_type: WasmValType, in emit_wasm_load() argument 956 WasmValType::I32 | WasmValType::I64 => self.context.any_gpr(self.masm)?, in emit_wasm_load() 957 WasmValType::F32 | WasmValType::F64 => self.context.any_fpr(self.masm)?, in emit_wasm_load() 958 WasmValType::V128 => self.context.reg_for_type(target_type, self.masm)?, in emit_wasm_load() 1494 .push(TypedReg::new(WasmValType::I64, addr.reg).into()); in emit_atomic_wait() 1546 .push(TypedReg::new(WasmValType::I64, addr.reg).into()); in emit_atomic_notify() 1583 .insert_many(defined_index_at, &[Val::reg(index_dst, WasmValType::I32)]); in prepare_builtin_defined_memory_arg() [all …]
|
| H A D | bounds.rs | 13 use wasmtime_environ::WasmValType; 235 assert!(index_typed.ty == WasmValType::I64); in load_heap_addr_unchecked()
|
| /wasmtime-44.0.1/winch/codegen/src/ |
| H A D | stack.rs | 4 use wasmtime_environ::WasmValType; 13 pub ty: WasmValType, 25 ty: WasmValType::I64, in i64() 33 ty: WasmValType::I32, in i32() 41 ty: WasmValType::F64, in f64() 49 ty: WasmValType::F32, in f32() 57 ty: WasmValType::V128, in v128() 75 pub ty: WasmValType, 82 pub ty: WasmValType, 301 pub fn ty(&self) -> WasmValType { in ty() argument [all …]
|
| H A D | visitor.rs | 32 WasmHeapType, WasmValType, 1026 WasmValType::F32, in visit_f32_convert_i32_u() 1044 WasmValType::F32, in visit_f32_convert_i64_u() 1062 WasmValType::F64, in visit_f64_convert_i32_u() 1080 WasmValType::F64, in visit_f64_convert_i64_u() 1604 use WasmValType::*; in visit_local_get() 1894 (WasmValType::I64, WasmValType::I64) => Ok(()), in visit_memory_grow() 1897 (WasmValType::I64, WasmValType::I32) => { in visit_memory_grow() 2273 WasmValType::I32, in visit_i32_load() 4683 WasmValType::I32 | WasmValType::F32 => OperandSize::S32, in try_from() [all …]
|
| /wasmtime-44.0.1/winch/codegen/src/abi/ |
| H A D | local.rs | 1 use wasmtime_environ::WasmValType; 35 pub ty: WasmValType, 43 pub fn new(ty: WasmValType, offset: u32) -> Self { in new() argument 54 ty: WasmValType::I32, in i32() 63 ty: WasmValType::I64, in i64() 70 pub fn stack_arg(ty: WasmValType, offset: u32) -> Self { in stack_arg() argument
|
| H A D | mod.rs | 55 use wasmtime_environ::{WasmFuncType, WasmValType}; 88 pub(crate) fn vmctx_types<A: ABI>() -> [WasmValType; 2] { in vmctx_types() 120 params: &[WasmValType], in sig_from() argument 121 returns: &[WasmValType], in sig_from() argument 144 fn sizeof(ty: &WasmValType) -> u8; in sizeof() 147 fn ptr_type() -> WasmValType { in ptr_type() 150 WasmValType::I64 in ptr_type() 160 ty: WasmValType, 169 ty: WasmValType, 311 returns: &[WasmValType], in from() argument [all …]
|
| /wasmtime-44.0.1/winch/codegen/src/isa/aarch64/ |
| H A D | abi.rs | 6 use wasmtime_environ::{WasmHeapType, WasmValType}; 77 params: &[WasmValType], in sig_from() argument 78 returns: &[WasmValType], in sig_from() argument 130 fn sizeof(ty: &WasmValType) -> u8 { in sizeof() 132 WasmValType::Ref(rt) => match rt.heap_type { in sizeof() 136 WasmValType::F64 | WasmValType::I64 => Self::word_bytes(), in sizeof() 137 WasmValType::F32 | WasmValType::I32 => Self::word_bytes() / 2, in sizeof() 145 wasm_arg: &WasmValType, in to_abi_operand() argument 152 ty @ (WasmValType::I32 | WasmValType::I64) => { in to_abi_operand() 156 ty @ (WasmValType::F32 | WasmValType::F64) => { in to_abi_operand() [all …]
|
| /wasmtime-44.0.1/crates/environ/src/component/ |
| H A D | intrinsic.rs | 85 pub const fn core_params(&self) -> &'static [$crate::WasmValType] { 94 pub const fn core_results(&self) -> &'static [$crate::WasmValType] { 135 (@core_type u8) => { $crate::WasmValType::I32 }; 136 (@core_type u16) => { $crate::WasmValType::I32 }; 137 (@core_type u32) => { $crate::WasmValType::I32 }; 138 (@core_type u64) => { $crate::WasmValType::I64 };
|
| /wasmtime-44.0.1/crates/environ/src/fact/ |
| H A D | signature.rs | 7 use crate::{WasmValType, prelude::*}; 40 fn val_type(&self, ty: &WasmValType) -> ValType { in val_type() 42 WasmValType::I32 => ValType::I32, in val_type() 43 WasmValType::I64 => ValType::I64, in val_type() 44 WasmValType::F32 => ValType::F32, in val_type() 45 WasmValType::F64 => ValType::F64, in val_type() 46 WasmValType::V128 => ValType::V128, in val_type() 47 WasmValType::Ref(_) => todo!("CM+GC"), in val_type()
|
| /wasmtime-44.0.1/winch/codegen/src/isa/x64/ |
| H A D | abi.rs | 9 use wasmtime_environ::{WasmHeapType, WasmValType}; 47 params: &[WasmValType], in sig_from() argument 48 returns: &[WasmValType], in sig_from() argument 115 fn sizeof(ty: &WasmValType) -> u8 { in sizeof() 117 WasmValType::Ref(rt) => match rt.heap_type { in sizeof() 121 WasmValType::F64 | WasmValType::I64 => Self::word_bytes(), in sizeof() 122 WasmValType::F32 | WasmValType::I32 => Self::word_bytes() / 2, in sizeof() 130 wasm_arg: &WasmValType, in to_abi_operand() argument 145 ty @ (WasmValType::I32 | WasmValType::I64) => ( in to_abi_operand() 151 ty @ (WasmValType::F32 | WasmValType::F64 | WasmValType::V128) => ( in to_abi_operand() [all …]
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | types.rs | 131 pub enum WasmValType { enum 172 WasmValType::I32 in trace() 173 | WasmValType::I64 in trace() 174 | WasmValType::F32 in trace() 175 | WasmValType::F64 in trace() 186 WasmValType::I32 in trace_mut() 187 | WasmValType::I64 in trace_mut() 195 impl WasmValType { implementation 220 WasmValType::Ref(r) => WasmValType::Ref(WasmRefType { in trampoline_type() 224 WasmValType::I32 in trampoline_type() [all …]
|
| H A D | gc.rs | 20 WasmStructType, WasmValType, error::OutOfMemory, prelude::*, 61 WasmValType::I32 | WasmValType::F32 | WasmValType::Ref(_) => 4, in byte_size_of_wasm_ty_in_gc_heap() 62 WasmValType::I64 | WasmValType::F64 => 8, in byte_size_of_wasm_ty_in_gc_heap() 63 WasmValType::V128 => 16, in byte_size_of_wasm_ty_in_gc_heap()
|
| /wasmtime-44.0.1/crates/environ/src/compile/ |
| H A D | frame_table.rs | 13 FuncKey, ModulePC, WasmHeapTopType, WasmValType, prelude::*, 46 impl From<WasmValType> for FrameValType { 47 fn from(ty: WasmValType) -> FrameValType { in from() 49 WasmValType::I32 => FrameValType::I32, in from() 50 WasmValType::I64 => FrameValType::I64, in from() 51 WasmValType::F32 => FrameValType::F32, in from() 52 WasmValType::F64 => FrameValType::F64, in from() 53 WasmValType::V128 => FrameValType::V128, in from() 54 WasmValType::Ref(r) => match r.heap_type.top() { in from()
|
| /wasmtime-44.0.1/crates/cranelift/src/ |
| H A D | lib.rs | 29 WasmHeapTopType, WasmHeapType, WasmValType, 123 ty: WasmValType, in unbarriered_load_type_at_offset() argument 133 fn value_type(isa: &dyn TargetIsa, ty: WasmValType) -> ir::types::Type { in value_type() 135 WasmValType::I32 => ir::types::I32, in value_type() 136 WasmValType::I64 => ir::types::I64, in value_type() 137 WasmValType::F32 => ir::types::F32, in value_type() 138 WasmValType::F64 => ir::types::F64, in value_type() 139 WasmValType::V128 => ir::types::I8X16, in value_type() 140 WasmValType::Ref(rt) => reference_type(rt.heap_type, isa.pointer_type()), in value_type() 204 let cvt = |ty: &WasmValType| ir::AbiParam::new(value_type(isa, *ty)); in wasm_call_signature()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/types/ |
| H A D | matching.rs | 5 WasmRefType, WasmSubType, WasmValType, 128 WasmValType::Ref(expected.ref_type), in table_ty() 129 WasmValType::Ref(actual.ref_type), in table_ty() 299 fn match_ty(engine: &Engine, expected: WasmValType, actual: WasmValType, desc: &str) -> Result<()> { in match_ty() argument 312 (WasmValType::Ref(actual), WasmValType::Ref(expected)) => { in match_ty() 319 fn equal_ty(expected: WasmValType, actual: WasmValType, desc: &str) -> Result<()> { in equal_ty() argument
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | vmcontext.rs | 559 wasm_ty: WasmValType, in from_val_raw() argument 565 WasmValType::I32 => *global.as_i32_mut() = raw.get_i32(), in from_val_raw() 569 WasmValType::V128 => global.set_u128(raw.get_v128()), in from_val_raw() 570 WasmValType::Ref(r) => match r.heap_type.top() { in from_val_raw() 599 wasm_ty: WasmValType, in to_val_raw() argument 603 WasmValType::I32 => ValRaw::i32(*self.as_i32()), in to_val_raw() 604 WasmValType::I64 => ValRaw::i64(*self.as_i64()), in to_val_raw() 605 WasmValType::F32 => ValRaw::f32(*self.as_f32_bits()), in to_val_raw() 606 WasmValType::F64 => ValRaw::f64(*self.as_f64_bits()), in to_val_raw() 607 WasmValType::V128 => ValRaw::v128(self.get_u128()), in to_val_raw() [all …]
|
| H A D | const_expr.rs | 124 wasmtime_environ::WasmValType::I32 => Val::I32(0), in struct_new_default() 125 wasmtime_environ::WasmValType::I64 => Val::I64(0), in struct_new_default() 126 wasmtime_environ::WasmValType::F32 => Val::F32(0.0f32.to_bits()), in struct_new_default() 127 wasmtime_environ::WasmValType::F64 => Val::F64(0.0f64.to_bits()), in struct_new_default() 128 wasmtime_environ::WasmValType::V128 => Val::V128(0u128.into()), in struct_new_default() 129 wasmtime_environ::WasmValType::Ref(r) => { in struct_new_default()
|
| /wasmtime-44.0.1/crates/cranelift/src/func_environ/gc/ |
| H A D | enabled.rs | 19 WasmRefType, WasmResult, WasmStorageType, WasmValType, wasm_unsupported, 169 WasmValType::I32 => builder.ins().load(ir::types::I32, flags, addr, 0), in read_field_at_addr() 170 WasmValType::I64 => builder.ins().load(ir::types::I64, flags, addr, 0), in read_field_at_addr() 174 WasmValType::Ref(r) => match r.heap_type.top() { in read_field_at_addr() 296 WasmStorageType::Val(WasmValType::Ref(r)) => { in write_field_at_addr() 328 WasmValType::I32 => cursor.ins().iconst(ir::types::I32, 0), in default_value() 329 WasmValType::I64 => cursor.ins().iconst(ir::types::I64, 0), in default_value() 330 WasmValType::F32 => cursor.ins().f32const(0.0), in default_value() 331 WasmValType::F64 => cursor.ins().f64const(0.0), in default_value() 332 WasmValType::V128 => { in default_value() [all …]
|
| /wasmtime-44.0.1/crates/cranelift/src/debug/transform/ |
| H A D | simulate.rs | 15 WasmValType, 181 WasmValType::I32 => wasm_types.i32, in resolve_var_type() 182 WasmValType::I64 => wasm_types.i64, in resolve_var_type() 183 WasmValType::F32 => wasm_types.f32, in resolve_var_type() 184 WasmValType::F64 => wasm_types.f64, in resolve_var_type()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | types.rs | 352 pub(crate) fn to_wasm_type(&self) -> WasmValType { in to_wasm_type() argument 354 Self::I32 => WasmValType::I32, in to_wasm_type() 355 Self::I64 => WasmValType::I64, in to_wasm_type() 356 Self::F32 => WasmValType::F32, in to_wasm_type() 357 Self::F64 => WasmValType::F64, in to_wasm_type() 358 Self::V128 => WasmValType::V128, in to_wasm_type() 366 WasmValType::I32 => Self::I32, in from_wasm_type() 367 WasmValType::I64 => Self::I64, in from_wasm_type() 368 WasmValType::F32 => Self::F32, in from_wasm_type() 369 WasmValType::F64 => Self::F64, in from_wasm_type() [all …]
|
| /wasmtime-44.0.1/winch/codegen/src/frame/ |
| H A D | mod.rs | 11 use wasmtime_environ::{TypeConvert, WasmValType}; 290 ) -> Result<(WasmValType, M::Address)> { in get_local_address() argument
|
| /wasmtime-44.0.1/crates/cranelift/src/func_environ/gc/enabled/ |
| H A D | drc.rs | 15 WasmHeapType, WasmRefType, WasmResult, WasmStorageType, WasmValType, drc::DrcTypeLayouts, 220 WasmStorageType::Val(WasmValType::Ref(r)) in init_field() 225 WasmStorageType::Val(WasmValType::Ref(r)) => { in init_field() 558 WasmStorageType::Val(WasmValType::I32), in alloc_exn() 568 WasmStorageType::Val(WasmValType::I32), in alloc_exn()
|