Home | History | Annotate | Download | only in runtime

Lines Matching full:primitive

26 #include "primitive.h"
32 Primitive::Type srcType, Primitive::Type dstType,
34 DCHECK(srcType != Primitive::kPrimNot && dstType != Primitive::kPrimNot);
40 case Primitive::kPrimBoolean: // Fall-through.
41 case Primitive::kPrimChar: // Fall-through.
42 case Primitive::kPrimByte:
45 case Primitive::kPrimShort:
46 if (srcType == Primitive::kPrimByte) {
51 case Primitive::kPrimInt:
52 if (srcType == Primitive::kPrimByte || srcType == Primitive::kPrimChar ||
53 srcType == Primitive::kPrimShort) {
58 case Primitive::kPrimLong:
59 if (srcType == Primitive::kPrimByte || srcType == Primitive::kPrimChar ||
60 srcType == Primitive::kPrimShort || srcType == Primitive::kPrimInt) {
65 case Primitive::kPrimFloat:
66 if (srcType == Primitive::kPrimByte || srcType == Primitive::kPrimChar ||
67 srcType == Primitive::kPrimShort || srcType == Primitive::kPrimInt) {
70 } else if (srcType == Primitive::kPrimLong) {
75 case Primitive::kPrimDouble:
76 if (srcType == Primitive::kPrimByte || srcType == Primitive::kPrimChar ||
77 srcType == Primitive::kPrimShort || srcType == Primitive::kPrimInt) {
80 } else if (srcType == Primitive::kPrimLong) {
83 } else if (srcType == Primitive::kPrimFloat) {
92 ThrowIllegalArgumentException(StringPrintf("Invalid primitive conversion from %s to %s",