Lines Matching refs:DiffValue
11 pub enum DiffValue { enum
24 impl DiffValue { impl
27 DiffValue::I32(_) => DiffValueType::I32, in ty()
28 DiffValue::I64(_) => DiffValueType::I64, in ty()
29 DiffValue::F32(_) => DiffValueType::F32, in ty()
30 DiffValue::F64(_) => DiffValueType::F64, in ty()
31 DiffValue::V128(_) => DiffValueType::V128, in ty()
32 DiffValue::FuncRef { .. } => DiffValueType::FuncRef, in ty()
33 DiffValue::ExternRef { .. } => DiffValueType::ExternRef, in ty()
34 DiffValue::AnyRef { .. } => DiffValueType::AnyRef, in ty()
35 DiffValue::ExnRef { .. } => DiffValueType::ExnRef, in ty()
36 DiffValue::ContRef { .. } => DiffValueType::ContRef, in ty()
50 I32 => DiffValue::I32(biased_arbitrary_value(u, KNOWN_I32_VALUES)?), in arbitrary_of_type()
51 I64 => DiffValue::I64(biased_arbitrary_value(u, KNOWN_I64_VALUES)?), in arbitrary_of_type()
76 DiffValue::F32(bits) in arbitrary_of_type()
99 DiffValue::F64(bits) in arbitrary_of_type()
125 DiffValue::V128(vector) in arbitrary_of_type()
140 DiffValue::V128(u128::from_le_bytes(vector.try_into().unwrap())) in arbitrary_of_type()
151 DiffValue::V128(u128::from_le_bytes(vector.try_into().unwrap())) in arbitrary_of_type()
157 DiffValue::V128(u128::from_le_bytes(vector.try_into().unwrap())) in arbitrary_of_type()
162 DiffValue::F32(v) => v.to_le_bytes(), in arbitrary_of_type()
172 DiffValue::V128(u128::from_le_bytes(vector.try_into().unwrap())) in arbitrary_of_type()
177 DiffValue::F64(v) => v.to_le_bytes(), in arbitrary_of_type()
182 DiffValue::V128(u128::from_le_bytes(vector.try_into().unwrap())) in arbitrary_of_type()
190 FuncRef => DiffValue::FuncRef { null: true }, in arbitrary_of_type()
191 ExternRef => DiffValue::ExternRef { null: true }, in arbitrary_of_type()
192 AnyRef => DiffValue::AnyRef { null: true }, in arbitrary_of_type()
193 ExnRef => DiffValue::ExnRef { null: true }, in arbitrary_of_type()
194 ContRef => DiffValue::ContRef { null: true }, in arbitrary_of_type()
222 impl<'a> Arbitrary<'a> for DiffValue { implementation
225 DiffValue::arbitrary_of_type(u, ty) in arbitrary()
229 impl Hash for DiffValue { implementation
233 DiffValue::I32(n) => n.hash(state), in hash()
234 DiffValue::I64(n) => n.hash(state), in hash()
235 DiffValue::F32(n) => n.hash(state), in hash()
236 DiffValue::F64(n) => n.hash(state), in hash()
237 DiffValue::V128(n) => n.hash(state), in hash()
238 DiffValue::ExternRef { null } => null.hash(state), in hash()
239 DiffValue::FuncRef { null } => null.hash(state), in hash()
240 DiffValue::AnyRef { null } => null.hash(state), in hash()
241 DiffValue::ExnRef { null } => null.hash(state), in hash()
242 DiffValue::ContRef { null } => null.hash(state), in hash()
260 impl PartialEq for DiffValue { implementation