summaryrefslogtreecommitdiff
path: root/compiler/optimizing/intrinsic_objects.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2023-11-20 11:00:15 +0100
committer VladimĂ­r Marko <vmarko@google.com> 2023-11-20 12:04:25 +0000
commitd840ff0ff0fc409c3d2fef2a4d516551ed4c322b (patch)
treefa369a2a00821ecd19fc350291bcec99b646c3ea /compiler/optimizing/intrinsic_objects.h
parent4f2fcccce50f229cb2b00cc07c040473a59c120b (diff)
Clean up after putting boxed caches to boot image.
Clean up after https://android-review.googlesource.com/2824676 . Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: Ic5ae98148499b8195669c7c81e7bffef9c8c9aa2
Diffstat (limited to 'compiler/optimizing/intrinsic_objects.h')
-rw-r--r--compiler/optimizing/intrinsic_objects.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/optimizing/intrinsic_objects.h b/compiler/optimizing/intrinsic_objects.h
index 61f4825224..c9ae449467 100644
--- a/compiler/optimizing/intrinsic_objects.h
+++ b/compiler/optimizing/intrinsic_objects.h
@@ -41,7 +41,7 @@ template <class T> class ObjectArray;
V(Character, 0, 127, DataType::Type::kUint16, kShortCacheLastIndex) \
V(Integer, -128, 127, DataType::Type::kInt32, kCharacterCacheLastIndex)
-#define DEFINE_BOXED_CONSTANTS(name, low, high, primitive_type, start_index) \
+#define DEFINE_BOXED_CONSTANTS(name, low, high, unused, start_index) \
static constexpr size_t k ##name ##CacheLastIndex = start_index + (high - low + 1); \
static constexpr size_t k ##name ##CacheFirstIndex = start_index;
BOXED_TYPES(DEFINE_BOXED_CONSTANTS)
@@ -72,7 +72,7 @@ class IntrinsicObjects {
}
// Helpers returning addresses of objects, suitable for embedding in generated code.
-#define DEFINE_BOXED_ACCESSES(name, _, __, ___, start_index) \
+#define DEFINE_BOXED_ACCESSES(name, unused1, unused2, unused3, start_index) \
static ObjPtr<mirror::Object> Get ##name ##ValueOfObject( \
ObjPtr<mirror::ObjectArray<mirror::Object>> boot_image_live_objects, \
uint32_t index) REQUIRES_SHARED(Locks::mutator_lock_) { \
@@ -90,7 +90,7 @@ class IntrinsicObjects {
ObjPtr<mirror::ObjectArray<mirror::Object>> boot_image_live_objects, size_t start_index)
REQUIRES_SHARED(Locks::mutator_lock_);
- static size_t GetNumberOfIntrinsicObjects() {
+ static constexpr size_t GetNumberOfIntrinsicObjects() {
return kNumberOfBoxedCaches;
}