Lines Matching refs:DiffValue

1 use crate::generators::{Config, DiffValue, DiffValueType};
166 arguments: &[DiffValue], in evaluate() argument
168 ) -> Result<Option<Vec<DiffValue>>> { in evaluate() argument
181 DiffValue::I32(n) => v8::Number::new(&mut scope, n.into()).into(), in evaluate()
182 DiffValue::F32(n) => v8::Number::new(&mut scope, f32::from_bits(n).into()).into(), in evaluate()
183 DiffValue::F64(n) => v8::Number::new(&mut scope, f64::from_bits(n)).into(), in evaluate()
184 DiffValue::I64(n) => v8::BigInt::new_from_i64(&mut scope, n).into(), in evaluate()
185 DiffValue::FuncRef { null } | DiffValue::ExternRef { null } => { in evaluate()
190 DiffValue::V128(_) => return Ok(None), in evaluate()
191 DiffValue::AnyRef { .. } => unimplemented!(), in evaluate()
192 DiffValue::ExnRef { .. } => unimplemented!(), in evaluate()
193 DiffValue::ContRef { .. } => unimplemented!(), in evaluate()
229 fn get_global(&mut self, global_name: &str, ty: DiffValueType) -> Option<DiffValue> { in get_global() argument
298 ) -> DiffValue { in get_diff_value() argument
300 DiffValueType::I32 => DiffValue::I32(val.to_int32(scope).unwrap().value()), in get_diff_value()
304 DiffValue::I64(val) in get_diff_value()
307 DiffValue::F32((val.to_number(scope).unwrap().value() as f32).to_bits()) in get_diff_value()
309 DiffValueType::F64 => DiffValue::F64(val.to_number(scope).unwrap().value().to_bits()), in get_diff_value()
310 DiffValueType::FuncRef => DiffValue::FuncRef { in get_diff_value()
313 DiffValueType::ExternRef => DiffValue::ExternRef { in get_diff_value()