summaryrefslogtreecommitdiff
path: root/runtime/mirror/class_flags.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/mirror/class_flags.h')
-rw-r--r--runtime/mirror/class_flags.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/mirror/class_flags.h b/runtime/mirror/class_flags.h
index 26a87c9546..b3d38b0ba8 100644
--- a/runtime/mirror/class_flags.h
+++ b/runtime/mirror/class_flags.h
@@ -61,6 +61,14 @@ static constexpr uint32_t kClassFlagPhantomReference = 0x00000400;
// Class is a record class. See doc at java.lang.Class#isRecord().
static constexpr uint32_t kClassFlagRecord = 0x00000800;
+// Class is a primitive array class.
+static constexpr uint32_t kClassFlagPrimitiveArray = 0x00001000;
+
+// NOTE: The most significant 2 bits are used to store the component size shift
+// for arrays (both primitive and object). See Primitive::ComponentSizeShift()
+// for size shift of different types.
+static constexpr uint32_t kArrayComponentSizeShiftShift = 30;
+
// Combination of flags to figure out if the class is either the weak/soft/phantom/finalizer
// reference class.
static constexpr uint32_t kClassFlagReference =