Home | History | Annotate | Download | only in optimizing

Lines Matching full:primitive

59 static bool IsNarrowingIntegralConversion(Primitive::Type from, Primitive::Type to) {
61 case Primitive::kPrimLong:
62 return to == Primitive::kPrimByte || to == Primitive::kPrimShort
63 || to == Primitive::kPrimChar || to == Primitive::kPrimInt;
64 case Primitive::kPrimInt:
65 return to == Primitive::kPrimByte || to == Primitive::kPrimShort
66 || to == Primitive::kPrimChar;
67 case Primitive::kPrimChar:
68 case Primitive::kPrimShort:
69 return to == Primitive::kPrimByte;
78 static Primitive::Type Narrowest(Primitive::Type type1, Primitive::Type type2) {
79 return Primitive::ComponentSize(type1) <= Primitive::ComponentSize(type2) ? type1 : type2;
418 Primitive::Type type) {
427 if ((type == Primitive::kPrimInt && 0 <= value && value < 31) ||
428 (type == Primitive::kPrimLong && 0 <= value && value < 63)) {
448 Primitive::Type from,
449 Primitive::Type to) {
557 Primitive::Type from = conversion->GetInputType();
558 Primitive::Type to = conversion->GetResultType();
585 Primitive::Type type = condition->InputAt(0)->GetType();
602 Primitive::Type type,
633 if (type != Primitive::kPrimInt && type != Primitive::kPrimLong) {
654 Primitive::Type type,
753 Primitive::Type type,
755 const int64_t min = Primitive::MinValueOfIntegralType(type);
756 const int64_t max = Primitive::MaxValueOfIntegralType(type);
779 Primitive::Type type,
781 Primitive::MinValueOfIntegralType(type);
782 int64_t max = Primitive::MaxValueOfIntegralType(type);
832 Primitive::Type type) {
833 if (type == Primitive::kPrimInt) {
836 DCHECK_EQ(type, Primitive::kPrimLong);
967 Primitive::PrettyDescriptor(info->type);
971 Primitive::PrettyDescriptor(info->type);
975 Primitive::PrettyDescriptor(info->type);