-// static
-HType HType::FromRepresentation(Representation representation) {
- HType result = HType::Tagged();
- if (representation.IsSmi()) {
- result = HType::Smi();
- } else if (representation.IsDouble()) {
- result = HType::HeapNumber();
- } else if (representation.IsFloat32x4()) {
- result = HType::Float32x4();
- } else if (representation.IsFloat64x2()) {
- result = HType::Float64x2();
- } else if (representation.IsInt32x4()) {
- result = HType::Int32x4();
- }
- return result;
-}
-
-