Home
last modified time | relevance | path

Searched refs:IndexType (Results 1 – 14 of 14) sorted by relevance

/wasmtime-44.0.1/crates/cranelift/src/translate/
H A Dheap.rs5 use wasmtime_environ::{IndexType, Memory};
53 IndexType::I32 => ir::types::I32, in index_type()
54 IndexType::I64 => ir::types::I64, in index_type()
/wasmtime-44.0.1/winch/codegen/src/codegen/
H A Denv.rs15 BuiltinFunctionIndex, DefinedFuncIndex, FuncIndex, FuncKey, GlobalIndex, IndexType, Memory,
51 IndexType::I32 => WasmValType::I32, in index_type()
52 IndexType::I64 => WasmValType::I64, in index_type()
79 IndexType::I32 => WasmValType::I32, in index_type()
80 IndexType::I64 => WasmValType::I64, in index_type()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/types/
H A Dmatching.rs4 EntityType, Global, IndexType, Memory, Table, Tag, TypeTrace, VMSharedTypeIndex, WasmHeapType,
358 fn match_index(expected: IndexType, actual: IndexType, desc: &str) -> Result<()> { in match_index() argument
364 let expected = if matches!(expected, IndexType::I64) { in match_index()
369 let actual = if matches!(actual, IndexType::I64) { in match_index()
/wasmtime-44.0.1/crates/environ/src/
H A Dtunables.rs2 use crate::{IndexType, Limits, Memory, TripleExt};
280 idx_type: IndexType::I32, in gc_heap_memory_type()
H A Dtypes.rs2092 pub enum IndexType { enum
2109 pub idx_type: IndexType,
2147 pub idx_type: IndexType,
2228 IndexType::I64 => in max_size_based_on_index_type()
2239 IndexType::I32 => WASM32_MAX_SIZE, in max_size_based_on_index_type()
2279 && self.idx_type == IndexType::I32 in can_elide_bounds_check()
2350 IndexType::I64 => true, in allow_growth_to()
2370 false => IndexType::I32, in from()
2371 true => IndexType::I64, in from()
2434 false => IndexType::I32, in convert_table_type()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/
H A Dallocator.rs586 fn get_index(val: &Val, ty: wasmtime_environ::IndexType) -> u64 { in get_index()
588 wasmtime_environ::IndexType::I32 => val.unwrap_i32().cast_unsigned().into(), in get_index()
589 wasmtime_environ::IndexType::I64 => val.unwrap_i64().cast_unsigned(), in get_index()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/memory/
H A Dmalloc.rs153 idx_type: wasmtime_environ::IndexType::I32,
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dtypes.rs11 EngineOrModuleTypeIndex, EntityType, Global, IndexType, Limits, Memory, ModuleTypes,
3097 idx_type: IndexType::I32, in new()
3120 idx_type: IndexType::I64, in new64()
3131 matches!(self.ty.idx_type, IndexType::I64) in is_64()
3214 idx_type: IndexType::I32, in default()
3310 true => IndexType::I64, in memory64()
3311 false => IndexType::I32, in memory64()
3460 matches!(self.ty.idx_type, IndexType::I64) in is_64()
/wasmtime-44.0.1/crates/environ/src/component/translate/
H A Dinline.rs49 use crate::{EntityType, IndexType};
1533 IndexType::I32 => false, in memory()
1534 IndexType::I64 => true, in memory()
1542 IndexType::I32 => false, in memory()
1543 IndexType::I64 => true, in memory()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dtable.rs17 FUNCREF_INIT_BIT, FUNCREF_MASK, IndexType, Trap, Tunables, WasmHeapTopType, WasmRefType,
461 (None, IndexType::I64) => usize::try_from(u64::MAX).ok(), in limit_new()
462 (None, IndexType::I32) => usize::try_from(u32::MAX).ok(), in limit_new()
H A Dcow.rs718 use wasmtime_environ::{IndexType, Limits, Memory};
757 idx_type: IndexType::I32, in dummy_memory()
/wasmtime-44.0.1/crates/environ/src/compile/
H A Dmodule_environ.rs9 EntityIndex, EntityType, FuncIndex, FuncKey, GlobalIndex, IndexType, InitMemory, MemoryIndex,
1034 (&[ConstOp::I32Const(offset)], IndexType::I32) => { in try_static_init()
1037 (&[ConstOp::I64Const(offset)], IndexType::I64) => Some(offset.cast_unsigned()), in try_static_init()
/wasmtime-44.0.1/crates/cranelift/src/
H A Dfunc_environ.rs31 GlobalConstValue, GlobalIndex, IndexType, Memory, MemoryIndex, Module, ModuleInternedTypeIndex,
766 index_type: IndexType, in cast_index_to_i64() argument
769 IndexType::I32 => pos.ins().uextend(I64, val), in cast_index_to_i64()
770 IndexType::I64 => val, in cast_index_to_i64()
785 index_type: IndexType, in convert_pointer_to_index_type() argument
4327 fn index_type_to_ir_type(index_type: IndexType) -> ir::Type { in index_type_to_ir_type()
4329 IndexType::I32 => I32, in index_type_to_ir_type()
4330 IndexType::I64 => I64, in index_type_to_ir_type()
/wasmtime-44.0.1/winch/codegen/src/
H A Dvisitor.rs31 FUNCREF_INIT_BIT, FuncIndex, GlobalIndex, IndexType, MemoryIndex, TableIndex, TypeIndex,
1738 (WasmValType::I64, IndexType::I64) => Ok(()), in visit_table_grow()
1739 (WasmValType::I64, IndexType::I32) => { in visit_table_grow()