Make bitmap constants more explicit.
Test: build
Change-Id: Iea6844929f10fd08fe1290ab67473e9134a20d10
diff --git a/runtime/gc_root.h b/runtime/gc_root.h
index 32af62d..8d8c32c 100644
--- a/runtime/gc_root.h
+++ b/runtime/gc_root.h
@@ -94,13 +94,14 @@
// The precise flag ensures that more metadata is supplied. An example is vreg data for compiled
// method frames.
enum VisitRootFlags : uint8_t {
- kVisitRootFlagAllRoots = 0x1,
- kVisitRootFlagNewRoots = 0x2,
- kVisitRootFlagStartLoggingNewRoots = 0x4,
- kVisitRootFlagStopLoggingNewRoots = 0x8,
- kVisitRootFlagClearRootLog = 0x10,
- kVisitRootFlagClassLoader = 0x20,
- kVisitRootFlagPrecise = 0x80,
+ kVisitRootFlagAllRoots = (1 << 0),
+ kVisitRootFlagNewRoots = (1 << 1),
+ kVisitRootFlagStartLoggingNewRoots = (1 << 2),
+ kVisitRootFlagStopLoggingNewRoots = (1 << 3),
+ kVisitRootFlagClearRootLog = (1 << 4),
+ kVisitRootFlagClassLoader = (1 << 5),
+ // There is no (1 << 6).
+ kVisitRootFlagPrecise = (1 << 7),
};
class RootVisitor {