summaryrefslogtreecommitdiff
path: root/libartbase/base/globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'libartbase/base/globals.h')
-rw-r--r--libartbase/base/globals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libartbase/base/globals.h b/libartbase/base/globals.h
index 69d1a64a3b..39e0c509cd 100644
--- a/libartbase/base/globals.h
+++ b/libartbase/base/globals.h
@@ -38,6 +38,9 @@ static constexpr size_t kStackAlignment = 16;
// compile-time constant so the compiler can generate better code.
static constexpr int kPageSize = 4096;
+// Size of Dex virtual registers.
+static constexpr size_t kVRegSize = 4;
+
// Returns whether the given memory offset can be used for generating
// an implicit null check.
static inline bool CanDoImplicitNullCheckOn(uintptr_t offset) {