summaryrefslogtreecommitdiff
path: root/compiler/optimizing/intrinsic_objects.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2023-11-10 09:41:33 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2023-11-16 12:14:25 +0000
commitfe307811eea419ac99148a824b7e02db378625a3 (patch)
tree19766ef079f8144a2bda08f55cff2e6aeb93dc50 /compiler/optimizing/intrinsic_objects.cc
parent6ad23882ac8b455c4b6068c37d1e5ebbc5aaa42f (diff)
Harcode IntegerCache range.
Let JIT assume these ranges. They are checked at AOT time when generating the boot image and when compiling applications. Test: test.py Change-Id: Ib2240d150bab366a3c17e0015503f728a98ae2ea
Diffstat (limited to 'compiler/optimizing/intrinsic_objects.cc')
-rw-r--r--compiler/optimizing/intrinsic_objects.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/intrinsic_objects.cc b/compiler/optimizing/intrinsic_objects.cc
index d9f54429e2..d7042d22c8 100644
--- a/compiler/optimizing/intrinsic_objects.cc
+++ b/compiler/optimizing/intrinsic_objects.cc
@@ -20,6 +20,7 @@
#include "base/casts.h"
#include "base/logging.h"
#include "image.h"
+#include "intrinsics.h"
#include "obj_ptr-inl.h"
#include "well_known_classes.h"
@@ -36,6 +37,7 @@ ObjPtr<mirror::ObjectArray<mirror::Object>> IntrinsicObjects::LookupIntegerCache
ObjPtr<mirror::ObjectArray<mirror::Object>>::DownCast(
cache_field->GetObject(integer_cache_class));
CHECK(integer_cache != nullptr);
+ DCHECK(IntrinsicVisitor::CheckIntegerCacheFields(integer_cache));
return integer_cache;
}