Lines Matching refs:Primitive
122 Primitive::Type srcType, Primitive::Type dstType,
124 CHECK(srcType != Primitive::kPrimNot && dstType != Primitive::kPrimNot);
126 case Primitive::kPrimBoolean:
127 if (srcType == Primitive::kPrimBoolean) {
132 case Primitive::kPrimChar:
133 if (srcType == Primitive::kPrimChar) {
138 case Primitive::kPrimByte:
139 if (srcType == Primitive::kPrimByte) {
144 case Primitive::kPrimShort:
145 if (srcType == Primitive::kPrimByte || srcType == Primitive::kPrimShort) {
150 case Primitive::kPrimInt:
151 if (srcType == Primitive::kPrimByte || srcType == Primitive::kPrimChar ||
152 srcType == Primitive::kPrimShort || srcType == Primitive::kPrimInt) {
157 case Primitive::kPrimLong:
158 if (srcType == Primitive::kPrimByte || srcType == Primitive::kPrimChar ||
159 srcType == Primitive::kPrimShort || srcType == Primitive::kPrimInt) {
162 } else if (srcType == Primitive::kPrimLong) {
167 case Primitive::kPrimFloat:
168 if (srcType == Primitive::kPrimByte || srcType == Primitive::kPrimChar ||
169 srcType == Primitive::kPrimShort || srcType == Primitive::kPrimInt) {
172 } else if (srcType == Primitive::kPrimLong) {
175 } else if (srcType == Primitive::kPrimFloat) {
180 case Primitive::kPrimDouble:
181 if (srcType == Primitive::kPrimByte || srcType == Primitive::kPrimChar ||
182 srcType == Primitive::kPrimShort || srcType == Primitive::kPrimInt) {
185 } else if (srcType == Primitive::kPrimLong) {
188 } else if (srcType == Primitive::kPrimFloat) {
191 } else if (srcType == Primitive::kPrimDouble) {
201 StringPrintf("Invalid primitive conversion from %s to %s",
213 mirror::Object* BoxPrimitive(Primitive::Type src_class, const JValue& value) {
214 if (src_class == Primitive::kPrimNot) {
220 case Primitive::kPrimBoolean:
223 case Primitive::kPrimByte:
226 case Primitive::kPrimChar:
229 case Primitive::kPrimDouble:
232 case Primitive::kPrimFloat:
235 case Primitive::kPrimInt:
238 case Primitive::kPrimLong:
241 case Primitive::kPrimShort:
244 case Primitive::kPrimVoid:
258 if (src_class == Primitive::kPrimDouble || src_class == Primitive::kPrimLong) {
305 if (UNLIKELY(dst_class->GetPrimitiveType() == Primitive::kPrimVoid)) {
319 StringPrintf("Expected to unbox a '%s' primitive type but was returned null",