Lines Matching refs:Primitive
22 #include "primitive.h"
269 Primitive::Type GetPrimitiveType() const {
270 DCHECK_EQ(sizeof(Primitive::Type), sizeof(int32_t));
271 return static_cast<Primitive::Type>(
275 void SetPrimitiveType(Primitive::Type new_type) {
276 DCHECK_EQ(sizeof(Primitive::Type), sizeof(int32_t));
280 // Returns true if the class is a primitive type.
282 return GetPrimitiveType() != Primitive::kPrimNot;
286 return GetPrimitiveType() == Primitive::kPrimBoolean;
290 return GetPrimitiveType() == Primitive::kPrimByte;
294 return GetPrimitiveType() == Primitive::kPrimChar;
298 return GetPrimitiveType() == Primitive::kPrimShort;
302 return GetPrimitiveType() == Primitive::kPrimInt;
306 return GetPrimitiveType() == Primitive::kPrimLong;
310 return GetPrimitiveType() == Primitive::kPrimFloat;
314 return GetPrimitiveType() == Primitive::kPrimDouble;
318 return GetPrimitiveType() == Primitive::kPrimVoid;
359 return Primitive::ComponentSize(GetComponentType()->GetPrimitiveType());
448 // to themselves. Classes for primitive types may not assign to each other.
775 // runtime such as arrays and primitive classes).
812 // The superclass, or NULL if this is java.lang.Object, an interface or primitive type.
856 // Primitive type value, or Primitive::kPrimNot (0); set for generated primitive classes.
857 Primitive::Type primitive_type_;